From f759b25fc3b990821a3808a504224034b087fd52 Mon Sep 17 00:00:00 2001 From: qugalet Date: Fri, 6 Dec 2024 15:55:51 +0200 Subject: [PATCH] =?UTF-8?q?changes=20from=20claymore=20on=20=D0=BF'=D1=8F?= =?UTF-8?q?=D1=82=D0=BD=D0=B8=D1=86=D1=8F,=206=20=D0=B3=D1=80=D1=83=D0=B4?= =?UTF-8?q?=D0=BD=D1=8F=202024=2015:55:51=20+0200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/qvim/set.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/qvim/set.lua b/lua/qvim/set.lua index 020235c..f28d7ce 100644 --- a/lua/qvim/set.lua +++ b/lua/qvim/set.lua @@ -27,3 +27,15 @@ vim.opt.updatetime = 50 -- vim.opt.colorcolumn = "80" vim.opt.clipboard = "unnamedplus" + + +function DetectGoHtmlTmpl() + if expand('%:e') == "html" && search("{{") != 0 + setfiletype gohtmltmpl + endif +endfunction + +augroup filetypedetect + " gohtmltmpl + au BufRead,BufNewFile *.html call DetectGoHtmlTmpl() +augroup END