Now, cssls and autocomplete now works with css scss sass files (#846)

* Now, cssls and autocomplete now works with css scss sass files

* Now, cssls and autocomplete now works with css scss sass files
This commit is contained in:
Resat Kubilay Kandemir 2021-07-12 14:56:39 +10:00 committed by GitHub
parent 7f05b92f63
commit a54fab3c6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,6 @@
if not require("lv-utils").check_lsp_client_active "cssls" then
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
-- npm install -g vscode-css-languageserver-bin
require("lspconfig").cssls.setup {
cmd = {
@ -7,6 +9,7 @@ if not require("lv-utils").check_lsp_client_active "cssls" then
"--stdio",
},
on_attach = require("lsp").common_on_attach,
capabilities = capabilities,
}
end