diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lspconfig.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index f300e70f..32fe577b 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -48,7 +48,7 @@ omnifunc completion * `: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. +* `: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. Defaults to all servers matching current buffer filetype. * `:LspStop <client_id>` Defaults to stopping all buffer clients. * `:LspRestart <client_id>` Defaults to restarting all buffer clients. ============================================================================== @@ -217,6 +217,7 @@ omnicomplete to use the lsp.omnifunc. See `:help lsp` for more details buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts) buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts) buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts) + buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts) buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts) buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts) |
