diff --git a/nvim/lua/plugins/templ.lua b/nvim/lua/plugins/templ.lua new file mode 100644 index 0000000..9e56205 --- /dev/null +++ b/nvim/lua/plugins/templ.lua @@ -0,0 +1,25 @@ +return { + -- 1. Vim syntax plugin for Templ files + { + "joerdav/templ.vim", + ft = "templ", + }, + + -- 2. Tree-sitter support + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + vim.list_extend(opts.ensure_installed, { "templ" }) + end, + }, + + -- 3. LSP configuration + { + "neovim/nvim-lspconfig", + opts = { + servers = { + templ = {}, -- templ LSP config with default options + }, + }, + }, +}