Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 71559e9

Browse files
committed
fix(rust): gd as go to definition key
1 parent 65dbc32 commit 71559e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/pea/config/rustacean.lua

+6
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ return function()
33
tools = {
44
executor = "toggleterm",
55
},
6+
server = {
7+
on_attach = function()
8+
-- repair the functionality of go to definition.
9+
vim.keymap.set("n", "gd", vim.lsp.buf.definition)
10+
end,
11+
},
612
}
713
end

0 commit comments

Comments
 (0)