feat(nvim): new extra: hover.nvim

This commit is contained in:
Sergio Laín 2024-05-25 13:57:42 +02:00
parent 628487ab5a
commit 5cad7735c5
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B
2 changed files with 23 additions and 0 deletions

View file

@ -300,6 +300,7 @@
<summary><b>📜 LSP</b></summary>
- [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)
- [Wansmer/symbol-usage.nvim](https://dotfyle.com/plugins/Wansmer/symbol-usage.nvim)
- [aznhe21/actions-preview.nvim](https://dotfyle.com/plugins/aznhe21/actions-preview.nvim)

View 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" },
},
}