how to remap default gx and gr to <leader>gx <leader>gr #1458
-
Contributing guidelines
Module(s)mini.operators QuestionReally like the functions provided in mini.operators. Could someone give an example how to remap default |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Here is how I remap built-in The |
Beta Was this translation helpful? Give feedback.
-
thank you! |
Beta Was this translation helpful? Give feedback.
Here is how I remap built-in
gx
.The
gr
mapping for "go to reference" may vary for you. Chances are, you mean map tovim.lsp.buf.references()
which can be done as a usual mapping. I prefer something like this:vim.keymap.set('n', '<Leader>gr', '<Cmd>lua vim.lsp.buf.references()<CR>', { desc = 'References' })
.