mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 14:28:18 +02:00
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:
parent
7f05b92f63
commit
a54fab3c6a
4 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
1
ftplugin/less.lua
Symbolic link
1
ftplugin/less.lua
Symbolic link
|
@ -0,0 +1 @@
|
|||
css.lua
|
1
ftplugin/sass.lua
Symbolic link
1
ftplugin/sass.lua
Symbolic link
|
@ -0,0 +1 @@
|
|||
css.lua
|
1
ftplugin/scss.lua
Symbolic link
1
ftplugin/scss.lua
Symbolic link
|
@ -0,0 +1 @@
|
|||
css.lua
|
Loading…
Add table
Add a link
Reference in a new issue