Skip to content

Commit

Permalink
Add code_action() keybinding to README
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
isti115 authored Apr 18, 2021
1 parent 5029746 commit 43848c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 43848c6

Please sign in to comment.