aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lspconfig.txt
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2021-04-18 17:12:45 +0000
committerGithub Actions <actions@github>2021-04-18 17:12:45 +0000
commit620920bfa5c80c803cdb7dec63f346544726b729 (patch)
tree6a1fd9076d40f7ca5835580de3bda6353ea583f1 /doc/lspconfig.txt
parentMerge pull request #852 from Isti115/patch-1 (diff)
downloadnvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar.gz
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar.bz2
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar.lz
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar.xz
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.tar.zst
nvim-lspconfig-620920bfa5c80c803cdb7dec63f346544726b729.zip
[docgen] Update README.md
skip-checks: true
Diffstat (limited to 'doc/lspconfig.txt')
-rw-r--r--doc/lspconfig.txt3
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)