templ
This commit is contained in:
parent
3176f4411f
commit
02f089e0a7
1 changed files with 25 additions and 0 deletions
25
nvim/lua/plugins/templ.lua
Normal file
25
nvim/lua/plugins/templ.lua
Normal file
|
|
@ -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
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue