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:
Maxim Sinelnikov 2024-08-29 11:27:21 +05:00 committed by GitHub
parent 2a6f00ff66
commit 0bec0a500e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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
```
]],
},
}