Skip to content

Commit f6dafcf

Browse files
committed
feat(utility): add hover.nvim
1 parent aabcbf1 commit f6dafcf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# hover.nvim
2+
3+
Hover plugin framework for Neovim
4+
5+
**Repository:** <https://github.com/lewis6991/hover.nvim>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
return {
2+
"lewis6991/hover.nvim",
3+
lazy = true,
4+
specs = {
5+
{
6+
"AstroNvim/astrocore",
7+
opts = {
8+
options = { opt = { mousemoveevent = true } },
9+
mappings = {
10+
n = {
11+
K = { function() require("hover").hover() end, desc = "Hover cursor" },
12+
gK = { function() require("hover").hover_select() end, desc = "Hover selection" },
13+
["]h"] = { function() require("hover").hover_switch "next" end, desc = "Next hover source" },
14+
["[h"] = { function() require("hover").hover_switch "previous" end, desc = "Previous hover source" },
15+
["<MouseMove>"] = { function() require("hover").hover_mouse() end, desc = "Hover mouse" },
16+
},
17+
},
18+
},
19+
},
20+
{
21+
"AstroNvim/astrolsp",
22+
opts = { mappings = { n = { K = false } } },
23+
},
24+
},
25+
opts = {
26+
init = function() require "hover.providers.lsp" end,
27+
},
28+
}

0 commit comments

Comments
 (0)