diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-04-09 13:20:54 -0700 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-04-09 13:29:17 -0700 |
| commit | 82474594e68e60393fe08803b779f68c5b0e1e4a (patch) | |
| tree | 2aea7472fd0e2760534b06de6d070397c911e430 /README.md | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar.gz nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar.bz2 nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar.lz nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar.xz nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.tar.zst nvim-lspconfig-82474594e68e60393fe08803b779f68c5b0e1e4a.zip | |
docs: update
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -32,7 +32,16 @@ any directory containing ".git", "setup.py", "setup.cfg", "pyproject.toml", or "requirements.txt") 5. See [Keybindings and completion](#Keybindings-and-completion) for mapping useful functions and enabling omnifunc completion -6. Try `:LspInfo` to see the status of active and configured language servers. + +## Built-in commands + +* `:LspInfo` shows the status of active and configured language servers. + +The following support tab-completion for all arguments: + +* `:LspStart <config_name>` Start the requested server name. Will only succesfully start if the command detects a root directory matching the current config. Pass `autostart = false` to your `.setup{}` call for a language server if you would like to launch clients solely with this command. +* `:LspStop <client_id>` Defaults to stopping all buffer clients. +* `:LspRestart <client_id>` Defaults to restarting all buffer clients. ## Usage @@ -223,13 +232,6 @@ Please see the [wiki](https://github.com/neovim/nvim-lspconfig/wiki) for additio and more. -## Manually starting (or restarting) language servers - -If you would like to manually managing starting language servers, but still have new buffers within a root directory autoattach -to running servers, pass `autostart = false` to your `.setup{}` call for a language server and call -`:lua require('lspconfig').language_server_name.autostart()`. - -This function can also be used to restart a workspace after stopping a language server with `:lua vim.lsp.stop_client(client_id)`. ## setup() function |
