diff --git a/plugin/lsp.lua b/plugin/lsp.lua index c36aeb8..b62a2af 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -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' })