From 930e407017177f82be07ca2c53ee363058b0dc8d Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Tue, 13 Aug 2024 12:55:08 +0200 Subject: [PATCH] Add some go stuff. --- lua/plugins/templ.lua | 18 ++++++++++++++++++ lua/plugins/treesitter.lua | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/templ.lua 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, }, },