Add some go stuff.

This commit is contained in:
Sebastian Bugge 2024-08-13 12:55:08 +02:00
parent fb625a268f
commit 930e407017
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691
2 changed files with 19 additions and 1 deletions

18
lua/plugins/templ.lua Normal file
View file

@ -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" },
},
},
}

View file

@ -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,
},
},