rd is a weird choice, I don't like it
This commit is contained in:
parent
fb55938e6b
commit
0d1875284e
1 changed files with 4 additions and 4 deletions
|
|
@ -497,20 +497,20 @@ require('lazy').setup({
|
|||
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
||||
|
||||
-- Find references for the word under your cursor.
|
||||
map('<leader>rr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
|
||||
map('<leader>gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
|
||||
|
||||
-- Jump to the implementation of the word under your cursor.
|
||||
-- Useful when your language has ways of declaring types without an actual implementation.
|
||||
map('<leader>ri', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
|
||||
map('<leader>gi', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
|
||||
|
||||
-- Jump to the definition of the word under your cursor.
|
||||
-- This is where a variable was first declared, or where a function is defined, etc.
|
||||
-- To jump back, press <C-t>.
|
||||
map('<leader>rd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
|
||||
map('<leader>gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
|
||||
|
||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||
-- For example, in C this would take you to the header.
|
||||
map('<leader>rD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
map('<leader>gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
|
||||
-- Fuzzy find all the symbols in your current document.
|
||||
-- Symbols are things like variables, functions, types, etc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue