From 641b5b9afc5f9b164c0c7ee23b522a68eb0e17ca Mon Sep 17 00:00:00 2001 From: qugalet Date: Fri, 6 Dec 2024 16:09:47 +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=2016:09:47=20+0200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- after/ftplugin/go.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/after/ftplugin/go.lua b/after/ftplugin/go.lua index e69de29..1b3eb0a 100644 --- a/after/ftplugin/go.lua +++ b/after/ftplugin/go.lua @@ -0,0 +1,8 @@ +vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { + pattern = { "*.gohtml", "*.go.html" }, + callback = function() vim.opt_local.filetype = "gohtmltmpl" end, +}) +vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { + pattern = { "*.gotmpl", "*.go.tmpl" }, + callback = function() vim.opt_local.filetype = "gotexttmpl" end, +})