diff options
| author | William Boman <william@redwill.se> | 2022-02-02 01:31:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-01 16:31:47 -0800 |
| commit | ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24 (patch) | |
| tree | 1ede3443fadce921a517e1e2a28165a3bffcb29c /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar.gz nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar.bz2 nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar.lz nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar.xz nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.tar.zst nvim-lspconfig-ffae5ffd89a53e14cfbec43da0eb43e3ba5c3a24.zip | |
feat: add salt_ls (#1696)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/salt_ls.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/salt_ls.lua b/lua/lspconfig/server_configurations/salt_ls.lua new file mode 100644 index 00000000..65d1d322 --- /dev/null +++ b/lua/lspconfig/server_configurations/salt_ls.lua @@ -0,0 +1,24 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'salt_lsp_server' }, + filetypes = { 'sls' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +Language server for Salt configuration files. +https://github.com/dcermak/salt-lsp + +The language server can be installed with `pip`: +```sh +pip install salt-lsp +``` + ]], + default_config = { + root_dir = [[root_pattern('.git')]], + }, + }, +} |
