aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-02-17 08:13:50 -0800
committerGitHub <noreply@github.com>2021-02-17 08:13:50 -0800
commit383a86c75bb674373938d93dadf29dbb93c2f512 (patch)
treed55df35f6c75f33b538f6c1ea3aa70c9c1b0fdd5 /README.md
parent[docgen] Update CONFIG.md (diff)
parentrename launch -> autostart, add documentation (diff)
downloadnvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar.gz
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar.bz2
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar.lz
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar.xz
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.tar.zst
nvim-lspconfig-383a86c75bb674373938d93dadf29dbb93c2f512.zip
Merge pull request #738 from mjlbach/fix_autostart
rename launch -> autostart, add documentation
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 746a9c95..69cba650 100644
--- a/README.md
+++ b/README.md
@@ -211,6 +211,14 @@ 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.launch()`.
+
+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
Only the following arguments can be passed to the setup function:
@@ -255,6 +263,10 @@ lspconfig.SERVER.setup{config}
May be empty.
Server may specify a default value.
+ {autostart}
+ Whether to automatically start a language server when a matching filetype is detected.
+ Defaults to true.
+
{log_level}
controls the level of logs to show from window/logMessage notifications. Defaults to
vim.lsp.protocol.MessageType.Warning instead of