mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
feat: add snakeskin_ls server configuration (#3286)
* feat: add snakeskin_ls server configuration * fix: add npx for command --------- Co-authored-by: Maksim Sinelnikov <sinelnikovweb@yandex-team.ru>
This commit is contained in:
parent
2a6f00ff66
commit
0bec0a500e
1 changed files with 19 additions and 0 deletions
19
lua/lspconfig/server_configurations/snakeskin_ls.lua
Normal file
19
lua/lspconfig/server_configurations/snakeskin_ls.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local util = require 'lspconfig.util'
|
||||
|
||||
return {
|
||||
default_config = {
|
||||
cmd = { 'npx', '@snakeskin/cli', 'lsp', '--stdio' },
|
||||
filetypes = { 'ss' },
|
||||
root_dir = util.root_pattern 'package.json',
|
||||
},
|
||||
docs = {
|
||||
description = [[
|
||||
https://www.npmjs.com/package/@snakeskin/cli
|
||||
|
||||
`snakeskin cli` can be installed via `npm`:
|
||||
```sh
|
||||
npm install -g @snakeskin/cli
|
||||
```
|
||||
]],
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue