feat!(lsp): change code action biding from ca to a

This commit is contained in:
Fabrice Mouhartem 2024-10-22 14:18:43 +02:00
parent 7e6d4ae3c0
commit 5a4b907f6e
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -15,7 +15,7 @@ local on_attach = function(_, bufnr)
end end
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction') nmap('<leader>c', vim.lsp.buf.code_action, '[C]ode action') -- NOTE: to see if ca is needed
nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
@ -44,8 +44,8 @@ end
-- document existing key chains -- document existing key chains
require('which-key').add { require('which-key').add {
{ "<leader>c", group = "[C]ode" }, -- { "<leader>c", group = "[C]ode" },
{ "<leader>c_", hidden = true }, -- { "<leader>c_", hidden = true },
{ "<leader>d", group = "[D]ocument" }, { "<leader>d", group = "[D]ocument" },
{ "<leader>d_", hidden = true }, { "<leader>d_", hidden = true },
{ "<leader>g", group = "[G]it" }, { "<leader>g", group = "[G]it" },