(nvim) configure cssls and css_variables
This commit is contained in:
parent
d7c5d44ef4
commit
2925f73722
1 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue