From 02f089e0a7f260724e2f96a262e71c4bfa86ac8c Mon Sep 17 00:00:00 2001 From: tavo Date: Tue, 26 Aug 2025 23:57:25 -0600 Subject: [PATCH] templ --- nvim/lua/plugins/templ.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nvim/lua/plugins/templ.lua 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 + }, + }, + }, +}