mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
23 lines
598 B
Lua
23 lines
598 B
Lua
-- CSS + Less + SASS Language Server
|
|
require("lspconfig").cssls.setup({
|
|
cmd = { "vscode-css-language-server", "--stdio" },
|
|
filetypes = { "css", "scss", "less" },
|
|
-- root_dir = root_pattern("package.json", ".git") or bufdir,
|
|
settings = {
|
|
css = {
|
|
validate = true,
|
|
},
|
|
less = {
|
|
validate = true,
|
|
},
|
|
scss = {
|
|
validate = true,
|
|
},
|
|
},
|
|
single_file_support = true,
|
|
capabilities = CAPABILITIES,
|
|
on_attach = function(client, bufnr)
|
|
if client.server_capabilities.documentSymbolProvider then require("nvim-navic").attach(client, bufnr) end
|
|
end,
|
|
})
|