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

This commit is contained in:
Moritz Böhme 2024-01-16 12:46:09 +01:00
parent f79dec2ebf
commit cb881fbbc8
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -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 = {