diff options
| author | Maxim Sinelnikov <67955139+sinelnikov-web@users.noreply.github.com> | 2024-08-29 11:27:21 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-29 14:27:21 +0800 |
| commit | 0bec0a500e01c2b26f74620b29014ed1a9445d3f (patch) | |
| tree | 8f96d5e473709d0818f9783e7bc1c82320d3a36d /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar.gz nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar.bz2 nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar.lz nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar.xz nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.tar.zst nvim-lspconfig-0bec0a500e01c2b26f74620b29014ed1a9445d3f.zip | |
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>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/snakeskin_ls.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/snakeskin_ls.lua b/lua/lspconfig/server_configurations/snakeskin_ls.lua new file mode 100644 index 00000000..d63b22a0 --- /dev/null +++ b/lua/lspconfig/server_configurations/snakeskin_ls.lua @@ -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 +``` +]], + }, +} |
