✨ feat(nvim): new extra: hover.nvim
This commit is contained in:
parent
628487ab5a
commit
5cad7735c5
2 changed files with 23 additions and 0 deletions
1
.config/nvim/.github/README.md
vendored
1
.config/nvim/.github/README.md
vendored
|
@ -300,6 +300,7 @@
|
||||||
<summary><b>📜 LSP</b></summary>
|
<summary><b>📜 LSP</b></summary>
|
||||||
|
|
||||||
- [j-hui/fidget.nvim](https://dotfyle.com/plugins/j-hui/fidget.nvim)
|
- [j-hui/fidget.nvim](https://dotfyle.com/plugins/j-hui/fidget.nvim)
|
||||||
|
- [lewis6991/hover.nvim](https://dotfyle.com/plugins/lewis6991/hover.nvim)
|
||||||
- [antosha417/nvim-lsp-file-operations](https://github.com/antosha417/nvim-lsp-file-operations)
|
- [antosha417/nvim-lsp-file-operations](https://github.com/antosha417/nvim-lsp-file-operations)
|
||||||
- [Wansmer/symbol-usage.nvim](https://dotfyle.com/plugins/Wansmer/symbol-usage.nvim)
|
- [Wansmer/symbol-usage.nvim](https://dotfyle.com/plugins/Wansmer/symbol-usage.nvim)
|
||||||
- [aznhe21/actions-preview.nvim](https://dotfyle.com/plugins/aznhe21/actions-preview.nvim)
|
- [aznhe21/actions-preview.nvim](https://dotfyle.com/plugins/aznhe21/actions-preview.nvim)
|
||||||
|
|
22
.config/nvim/lua/plugins/extras/editor/hover.lua
Normal file
22
.config/nvim/lua/plugins/extras/editor/hover.lua
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
return {
|
||||||
|
"lewis6991/hover.nvim",
|
||||||
|
init = function()
|
||||||
|
require("hover.providers.lsp")
|
||||||
|
require("hover.providers.gh")
|
||||||
|
require("hover.providers.gh_user")
|
||||||
|
require("hover.providers.jira")
|
||||||
|
require("hover.providers.dap")
|
||||||
|
require("hover.providers.man")
|
||||||
|
require("hover.providers.dictionary")
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
preview_opts = {
|
||||||
|
border = "rounded",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "K", function() require("hover").hover() end, desc = "Hover" },
|
||||||
|
{ "gk", function() require("hover").hover_select() end, desc = "Hover Select" },
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue