From 43848c6cb25449887648381e34651a9890eef7e3 Mon Sep 17 00:00:00 2001 From: István Donkó Date: Sun, 18 Apr 2021 16:50:48 +0200 Subject: 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! --- README.md | 1 + 1 file changed, 1 insertion(+) 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', 'wl', 'lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))', opts) buf_set_keymap('n', 'D', 'lua vim.lsp.buf.type_definition()', opts) buf_set_keymap('n', 'rn', 'lua vim.lsp.buf.rename()', opts) + buf_set_keymap('n', 'ca', 'lua vim.lsp.buf.code_action()', opts) buf_set_keymap('n', 'gr', 'lua vim.lsp.buf.references()', opts) buf_set_keymap('n', 'e', 'lua vim.lsp.diagnostic.show_line_diagnostics()', opts) buf_set_keymap('n', '[d', 'lua vim.lsp.diagnostic.goto_prev()', opts) -- cgit v1.2.3-70-g09d2