Skip to content

Commit

Permalink
feat: add css-variables-language-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogin Farrer committed Mar 2, 2024
1 parent 9553725 commit e2b8ded
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lua/lspconfig/server_configurations/css-variables.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'css-variables-language-server', '--stdio' },
filetypes = { 'css', 'scss', 'less' },
root_dir = util.root_pattern('package.json', '.git'),
},
docs = {
description = [[
https://github.com/vunguyentuan/vscode-css-variables/tree/master/packages/css-variables-language-server
CSS variables autocompletion and go-to-definition
`css-variables-language-server` can be installed via `npm`:
```sh
npm i -g css-variables-language-server
```
```
]],
default_config = {
root_dir = [[root_pattern("package.json", ".git") or bufdir]],
},
},
}

0 comments on commit e2b8ded

Please sign in to comment.