We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b407d commit ade31c3Copy full SHA for ade31c3
init.lua
@@ -429,7 +429,9 @@ local on_attach = function(_, bufnr)
429
end
430
431
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
432
- nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
+ nmap('<leader>ca', function()
433
+ vim.lsp.buf.code_action { context = { only = { 'quickfix', 'refactor', 'source' } } }
434
+ end, '[C]ode [A]ction')
435
436
nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
437
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
0 commit comments