Salt Language Server Protocol Server
This is a Hackweek project of Cédric Bosdonnat and
Dan Čermák that reached an early prototype
state. However, we never really managed to handle Jinja2 templating in sls
files (see salt-lsp#31
) which
is a requirement for this project to be even remotely useful.
Unfortunately neither of the two original authors currently have the time to keep this project alive. If you wish to help out, please open an issue or send a pull request fixing the existing bugs/shortcomings.
As of now, here be 🐉.
Install the dependencies:
$ poetry install
Create the completion classes once:
$ poetry run dump_state_name_completions
Start the server:
$ poetry run salt_lsp_server --tcp
Install the server:
$ poetry build
$ pip install --user --force-reinstall dist/salt_lsp-0.0.1*whl
yarn install
You should install salt-mode so
that sls
files are registered to the salt major mode. The language server must
be installed on your system so that the clients can launch it.
clients/emacs/salt-lsp.el
lsp
via M-x lsp
(add-to-list 'eglot-server-programs '(salt-mode . ("python3" "-m" "salt_lsp")))
M-x eglot