diff --git a/nvim/init.lua b/nvim/init.lua index bb8c4dd..75808f7 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -522,6 +522,10 @@ require('lazy').setup({ gofumpt = true, }, + html = {}, + + templ = {}, + -- Some languages (like typescript) have entire language plugins that can be useful: -- https://github.com/pmizio/typescript-tools.nvim -- @@ -608,6 +612,7 @@ require('lazy').setup({ formatters_by_ft = { go = { 'goimports', 'gofumpt' }, lua = { 'stylua' }, + templ = { 'templ' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- @@ -817,7 +822,7 @@ require('lazy').setup({ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', opts = { - ensure_installed = { 'bash', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc', 'sql', 'go', 'typescript', 'javascript' }, + ensure_installed = { 'bash', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc', 'sql', 'go', 'templ', 'typescript', 'javascript' }, -- Autoinstall languages that are not installed auto_install = true, highlight = {