aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorIstván Donkó <istvan.donko@gmail.com>2021-04-18 16:50:48 +0200
committerGitHub <noreply@github.com>2021-04-18 16:50:48 +0200
commit43848c6cb25449887648381e34651a9890eef7e3 (patch)
tree35f6a3c6cd8e8ce7a013211e917b3e000542dfb3 /README.md
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar.gz
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar.bz2
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar.lz
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar.xz
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.tar.zst
nvim-lspconfig-43848c6cb25449887648381e34651a9890eef7e3.zip
Add `code_action()` keybinding to README
This was something that I have only recently discovered and works very well with at least `hls` and `vuels`. It believes that this repository is a very defining starting point for many neovim users, especially since release 0.5 is coming up soon, so it would be helpful to more prominently display this awesome feature!
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 163eeb42..a66b9073 100644
--- a/README.md
+++ b/README.md
@@ -186,6 +186,7 @@ local on_attach = function(client, bufnr)
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)