mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-31 08:04:53 +02:00
Check lsp client is active for all language files (#790)
This commit is contained in:
parent
9233611bdc
commit
53fed9d655
33 changed files with 412 additions and 291 deletions
|
@ -1,10 +1,13 @@
|
|||
-- npm install -g vscode-css-languageserver-bin
|
||||
require("lspconfig").cssls.setup {
|
||||
cmd = {
|
||||
"node",
|
||||
DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js",
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
}
|
||||
if not require("lv-utils").check_lsp_client_active "cssls" then
|
||||
-- npm install -g vscode-css-languageserver-bin
|
||||
require("lspconfig").cssls.setup {
|
||||
cmd = {
|
||||
"node",
|
||||
DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js",
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
}
|
||||
end
|
||||
|
||||
vim.cmd "setl ts=2 sw=2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue