(nvim) configure cssls and css_variables

This commit is contained in:
juancwu 2026-01-29 08:25:45 -05:00
commit 2925f73722

View file

@ -112,6 +112,8 @@ return {
}, },
}, },
}, },
cssls = {},
css_variables = {},
tailwindcss = { tailwindcss = {
filetypes = { filetypes = {
"templ", "templ",
@ -136,7 +138,7 @@ return {
local profiles = { local profiles = {
base = { "yamlfmt" }, base = { "yamlfmt" },
lua = { "lua_ls", "stylua" }, lua = { "lua_ls", "stylua" },
web = { "ts_ls", "tailwindcss", "biome", "intelephense", "templ" }, web = { "ts_ls", "tailwindcss", "biome", "intelephense", "templ", "cssls", "css_variables" },
go = { "gopls", "goimports" }, go = { "gopls", "goimports" },
rust = { "rust_analyzer" }, rust = { "rust_analyzer" },
zig = { "zls" }, zig = { "zls" },
@ -148,7 +150,12 @@ return {
local tools = profiles[profile_name] local tools = profiles[profile_name]
if not tools then if not tools then
print("Profile '" .. profile_name .. "' not found. Available: " .. table.concat(vim.tbl_keys(profiles), ", ")) print(
"Profile '"
.. profile_name
.. "' not found. Available: "
.. table.concat(vim.tbl_keys(profiles), ", ")
)
return return
end end