diff --git a/.config/nvim/lua/config/maps.lua b/.config/nvim/lua/config/maps.lua index 408966d..cca056a 100644 --- a/.config/nvim/lua/config/maps.lua +++ b/.config/nvim/lua/config/maps.lua @@ -31,6 +31,8 @@ Map('n', 'K', vim.lsp.buf.hover, { desc = 'symbol hover' }) Map('n', '', vim.lsp.buf.rename, { desc = 'rename symbol' }) Map('n', 'lm', vim.diagnostic.open_float, { desc = 'view line\'s diagnostic messages' }) Map('n', 'q', vim.lsp.buf.code_action, { desc = 'view quickfix list' }) +Map('n', 'gd', vim.lsp.buf.definition, { desc = "Go to the definition" }) +Map('n', 'gr', vim.lsp.buf.references, { desc = "Go to the reference" }) -- smart tabulation Map('i', '', function()