diff --git a/.config/nvim/.github/README.md b/.config/nvim/.github/README.md index e1e77a76..227a7a41 100644 --- a/.config/nvim/.github/README.md +++ b/.config/nvim/.github/README.md @@ -300,6 +300,7 @@ 📜 LSP - [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) diff --git a/.config/nvim/lua/plugins/extras/editor/hover.lua b/.config/nvim/lua/plugins/extras/editor/hover.lua new file mode 100644 index 00000000..2bd9fa36 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/editor/hover.lua @@ -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" }, + }, +}