Key bindings for buffer nav and m-Enter for code actions

This commit is contained in:
Alexander Gehrke 2025-09-19 14:56:24 +02:00
parent 1bb84ebd6d
commit 6e92e847a3
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,7 @@ local on_attach = function(args)
{ '<Leader>D', vim.lsp.buf.type_definition, "Go to type definition" },
{ '<Leader>rn', vim.lsp.buf.rename, "Rename" },
{ '<M-x>', vim.lsp.buf.code_action, "Code action" },
{ '<M-return>', vim.lsp.buf.code_action, "Code action" },
{ '<M-s>', vim.lsp.codelens.run, "Run code lens" },
{ 'gr', function() require('telescope.builtin').lsp_references() end,"Go to references" },
{ '<M-e>', vim.diagnostic.open_float, "Open diagnostics" },