feat(nvim): add templ, htmx and tailwind lsp

nixos
Moritz Böhme 2024-01-16 12:46:09 +01:00
parent f79dec2ebf
commit cb881fbbc8
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 13 additions and 0 deletions

View File

@ -130,12 +130,25 @@ local servers = {
"nil_ls", "nil_ls",
"nixd", "nixd",
"ruff_lsp", "ruff_lsp",
"templ",
"typst_lsp", "typst_lsp",
} }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
lspconfig_setup(lsp, {}) lspconfig_setup(lsp, {})
end 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", { lspconfig_setup("pylsp", {
settings = { settings = {
pylsp = { pylsp = {