feat: ts lsp & css lsp

This commit is contained in:
kossLAN 2024-11-08 15:03:50 -05:00
parent 46c3141542
commit c4de9207c0
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
4 changed files with 34 additions and 0 deletions

15
nvim/ftplugin/css.lua Normal file
View file

@ -0,0 +1,15 @@
-- Exit if the language server isn't available
if vim.fn.executable('vscode-css-language-server') ~= 1 then
return
end
local root_files = {
'.git',
}
vim.lsp.start {
name = 'cssls',
cmd = { 'vscode-css-language-server', '--stdio' },
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
capabilities = require('user.lsp').make_client_capabilities(),
}