feat(nvim): add templ, htmx and tailwind lsp
This commit is contained in:
parent
f79dec2ebf
commit
cb881fbbc8
1 changed files with 13 additions and 0 deletions
|
@ -130,12 +130,25 @@ local servers = {
|
|||
"nil_ls",
|
||||
"nixd",
|
||||
"ruff_lsp",
|
||||
"templ",
|
||||
"typst_lsp",
|
||||
}
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig_setup(lsp, {})
|
||||
end
|
||||
|
||||
-- Add templ filetype
|
||||
vim.filetype.add({ extension = { templ = "templ" } })
|
||||
|
||||
lspconfig_setup("htmx", {
|
||||
filetypes = { "html", "templ" },
|
||||
})
|
||||
|
||||
lspconfig_setup("tailwindcss", {
|
||||
filetypes = { "templ", "astro", "javascript", "typescript", "react" },
|
||||
init_options = { userLanguages = { templ = "html" } },
|
||||
})
|
||||
|
||||
lspconfig_setup("pylsp", {
|
||||
settings = {
|
||||
pylsp = {
|
||||
|
|
Loading…
Reference in a new issue