From b9ddf4c727b7a8ecc84f505a79152adc9a857df5 Mon Sep 17 00:00:00 2001 From: CPea Date: Sat, 6 Apr 2024 21:54:29 +0700 Subject: [PATCH] fix(rust): `gd` as go to definition key --- lua/pea/config/rustacean.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/pea/config/rustacean.lua b/lua/pea/config/rustacean.lua index 0ca4c26..be97513 100644 --- a/lua/pea/config/rustacean.lua +++ b/lua/pea/config/rustacean.lua @@ -3,5 +3,10 @@ return function() tools = { executor = "toggleterm", }, + server = { + on_attach = function() + vim.keymap.set("n", "gd", vim.lsp.buf.definition) + end, + }, } end