From b3b2ba3789b1311b5a0531992ea0a71fa2dbef7f Mon Sep 17 00:00:00 2001 From: qugalet Date: Sat, 7 Dec 2024 22:11:22 +0200 Subject: [PATCH] =?UTF-8?q?changes=20from=20claymore=20on=20=D1=81=D1=83?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0,=207=20=D0=B3=D1=80=D1=83=D0=B4=D0=BD?= =?UTF-8?q?=D1=8F=202024=2022:11:22=20+0200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- after/ftdetect/go.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/after/ftdetect/go.lua b/after/ftdetect/go.lua index 1b3eb0a..8c4e0c8 100644 --- a/after/ftdetect/go.lua +++ b/after/ftdetect/go.lua @@ -2,6 +2,12 @@ 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 = { "*.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,