From 1624e59c2788740ad5b4a451f49fa862a6f5eb7e Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 31 Oct 2024 13:59:50 +0100 Subject: [PATCH] =?UTF-8?q?[nvim]=20D=C3=A9place=20le=20raccourci=20pour?= =?UTF-8?q?=20les=20d=C3=A9clarations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 8900be9..20cd57c 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -29,6 +29,7 @@ map('n', 'nv', ':Telescope find_files cwd=~/.config/nvim map('n', 'nc', ':Telescope find_files cwd=~/.config', options) map('n', 'gd', ':Telescope lsp_definitions', options) +map('n', 'gD', ':Telescope lsp_declaration', options) map('n', 'gr', ':Telescope lsp_references', options) map('n', 'gs', ':Telescope lsp_workspace_symbols', options) map('n', 'gS', ':Telescope lsp_dynamic_workspace_symbols', options) @@ -69,7 +70,7 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', 'K', 'lua vim.lsp.buf.hover()', opts) --vim.keymap.set('n', 'gd', 'lua vim.lsp.buf.definition()', opts) - vim.keymap.set('n', 'gD', 'lua vim.lsp.buf.declaration()', opts) + --vim.keymap.set('n', 'gD', 'lua vim.lsp.buf.declaration()', opts) vim.keymap.set('n', 'gi', 'lua vim.lsp.buf.implementation()', opts) vim.keymap.set('n', 'go', 'lua vim.lsp.buf.type_definition()', opts) --vim.keymap.set('n', 'gr', 'lua vim.lsp.buf.references()', opts)