diff --git a/lua/plugins/templ.lua b/lua/plugins/templ.lua new file mode 100644 index 0000000..777d271 --- /dev/null +++ b/lua/plugins/templ.lua @@ -0,0 +1,18 @@ +vim.filetype.add({ extension = { templ = "templ" } }) +return { + { + "neovim/nvim-lspconfig", + opts = { + servers = { + templ = {}, + htmx = {}, + }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { "go", "templ" }, + }, + }, +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 5476e32..852593f 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -2,7 +2,7 @@ return { { "nvim-treesitter/nvim-treesitter", opts = { - ensure_installed = { "python", "lua", "rust", "perl", "typescript", "javascript" }, + ensure_installed = { "python", "lua", "rust", "perl", "typescript", "javascript", "go" }, auto_install = true, }, },