Skip to content

Commit

Permalink
Add visual for code action
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Apr 15, 2023
1 parent 29121c6 commit 0c8e028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local function setup_lsp_keymaps(_, buffer)
vim.keymap.set('n', 'gd', telescope_builin.lsp_definitions, { noremap = true, buffer = buffer, desc = 'Go to definition' })
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { noremap = true, buffer = buffer, desc = 'Go to declaration' })
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, { noremap = true, buffer = buffer, desc = 'Go to implementation' })
vim.keymap.set('n', 'ga', vim.lsp.buf.code_action, { noremap = true, buffer = buffer, desc = 'Code action' })
vim.keymap.set({'n', 'v'}, 'ga', vim.lsp.buf.code_action, { noremap = true, buffer = buffer, desc = 'Code action' })
vim.keymap.set('n', 'gr', telescope_builin.lsp_references, { noremap = true, buffer = buffer, desc = 'Go to reference' })
vim.keymap.set('n', 'go', telescope_builin.lsp_workspace_symbols, { noremap = true, buffer = buffer, desc = 'Go to workspace symbol' })
vim.keymap.set('n', 'gO', telescope_builin.lsp_document_symbols, { noremap = true, buffer = buffer, desc = 'Go to document symbol' })
Expand Down

0 comments on commit 0c8e028

Please sign in to comment.