From 7019e4e9029f6a2c7672bfe8b2d5caa7558abfbf Mon Sep 17 00:00:00 2001 From: doryan Date: Mon, 23 Dec 2024 01:03:36 +0400 Subject: [PATCH] feat: remove rustaceanvim bind for hover actions --- lua/mappings.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index 97ee0fe..e47ab00 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -1,7 +1,5 @@ local map = vim.keymap.set - - map("n", ";", ":", { desc = "CMD enter command mode" }) map("i", "", "", { desc = "move left" }) @@ -27,7 +25,6 @@ map("n", "", "DapToggleBreakpoint") map("n", "mk", "RustLsp moveItem upcr>") map("n", "m,", "RustLsp moveItem down") map("n", "rs", "RustLsp run") -map("n", "hh", "RustLsp hover actions") map("n", "ca", "RustLsp codeAction") map("n", "", "w!") map("i", "", "w!") @@ -52,3 +49,9 @@ map("n", "an", "set norelativenumber") map("n", "tt", "ToggleTerm") map("n", "", "foldopen") map("n", "", "foldclose") + +map("n", "hh", require("hover").hover, {desc = "hover.nvim"}) +map("n", "hs", require("hover").hover_select, {desc = "hover.nvim (select)"}) +map("n", "", function() require("hover").hover_switch("previous") end, {desc = "hover.nvim (previous source)"}) +map("n", "", function() require("hover").hover_switch("next") end, {desc = "hover.nvim (next source)"}) +