diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-02-17 08:13:19 -0800 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-02-17 08:13:19 -0800 |
| commit | b45e230e9abc878e53fe57db7d7e2a4707643f83 (patch) | |
| tree | fcd6543af7b84e895d63f61c3e2074fd99beb99a /README.md | |
| parent | Add option to disable autostart (diff) | |
| download | nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar.gz nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar.bz2 nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar.lz nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar.xz nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.tar.zst nvim-lspconfig-b45e230e9abc878e53fe57db7d7e2a4707643f83.zip | |
rename launch -> autostart, add documentation
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
