aboutsummaryrefslogtreecommitdiffstats
path: root/after/ftplugin/rust.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/rust.lua')
-rw-r--r--after/ftplugin/rust.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/after/ftplugin/rust.lua b/after/ftplugin/rust.lua
index df6dc7b..8d34f5e 100644
--- a/after/ftplugin/rust.lua
+++ b/after/ftplugin/rust.lua
@@ -8,3 +8,11 @@ vim.keymap.set(
end,
{ silent = true, buffer = bufnr }
)
+vim.keymap.set(
+ "n",
+ "K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
+ function()
+ vim.cmd.RustLsp({ 'hover', 'actions' })
+ end,
+ { silent = true, buffer = bufnr }
+)