Skip to content

Commit

Permalink
fix(rust): gd as go to definition key
Browse files Browse the repository at this point in the history
  • Loading branch information
cpea2506 committed Apr 6, 2024
1 parent 65dbc32 commit 71559e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/pea/config/rustacean.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ return function()
tools = {
executor = "toggleterm",
},
server = {
on_attach = function()
-- repair the functionality of go to definition.
vim.keymap.set("n", "gd", vim.lsp.buf.definition)
end,
},
}
end

0 comments on commit 71559e9

Please sign in to comment.