Add go html template support, finally

This commit is contained in:
Pablu
2026-01-21 23:12:17 +01:00
parent eba4afff84
commit d9485a9253
6 changed files with 32 additions and 17 deletions

View File

@@ -17,6 +17,16 @@ require("lazy").setup("plugins")
vim.o.number = true
vim.o.relativenumber = true
vim.filetype.add({
extension = {
gotmpl = 'gotmpl',
},
pattern = {
[".*%.gohtml"] = "gotmpl",
[".*%.gotmpl"] = "gotmpl"
}
})
-- Panes
vim.cmd.set("splitright")
vim.keymap.set("n", "<leader>/", function()