[nvim] Déplace le raccourci pour les déclarations
This commit is contained in:
parent
b3e2aeb85f
commit
1624e59c27
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ map('n', '<Leader>nv', ':Telescope find_files cwd=~/.config/nvim<Enter>
|
|||
map('n', '<Leader>nc', ':Telescope find_files cwd=~/.config<Enter>', options)
|
||||
|
||||
map('n', '<Leader>gd', ':Telescope lsp_definitions<Enter>', options)
|
||||
map('n', '<Leader>gD', ':Telescope lsp_declaration<Enter>', options)
|
||||
map('n', '<Leader>gr', ':Telescope lsp_references<Enter>', options)
|
||||
map('n', '<Leader>gs', ':Telescope lsp_workspace_symbols<Enter>', options)
|
||||
map('n', '<Leader>gS', ':Telescope lsp_dynamic_workspace_symbols<Enter>', options)
|
||||
|
@ -69,7 +70,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
|
||||
vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts)
|
||||
--vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts)
|
||||
vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts)
|
||||
--vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts)
|
||||
vim.keymap.set('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<cr>', opts)
|
||||
vim.keymap.set('n', 'go', '<cmd>lua vim.lsp.buf.type_definition()<cr>', opts)
|
||||
--vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
|
||||
|
|
Loading…
Reference in a new issue