From 5cad7735c5363a106a2b723b9d7f0587d48c17d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 25 May 2024 13:57:42 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20new=20extra:=20hover.?= =?UTF-8?q?nvim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/.github/README.md | 1 + .../nvim/lua/plugins/extras/editor/hover.lua | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/editor/hover.lua 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" }, + }, +}