diff --git a/nvim/lua/plugs/rustaceanvim.lua b/nvim/lua/plugs/rustaceanvim.lua index 0148623..79b26bc 100644 --- a/nvim/lua/plugs/rustaceanvim.lua +++ b/nvim/lua/plugs/rustaceanvim.lua @@ -25,6 +25,29 @@ return { end, }) end + + require("utils").add_keymaps({ + n = { + ["gd"] = { + cmd = function() + vim.lsp.buf.definition() + end, + opts = { + noremap = true, + silent = true + } + }, + ["gD"] = { + cmd = function() + vim.lsp.buf.declaration() + end, + opts = { + noremap = true, + silent = true + } + }, + } + }) end, } }