aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/lua/custom/plugins
diff options
context:
space:
mode:
authorLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2023-11-17 09:07:30 +0000
committerLibravatar Arnold Sommerfeld <sommerfeld@strisemarx.com>2023-11-17 09:07:30 +0000
commit1016572b0122643a7546f549e5fb6ea2f61f76b6 (patch)
tree80aed35869f1b21fef70f535408475f7707388b0 /home/.config/nvim/lua/custom/plugins
parent0548dd3272bb8a9e68365d05ccf9b0272e84f836 (diff)
downloaddotfiles-1016572b0122643a7546f549e5fb6ea2f61f76b6.tar.gz
dotfiles-1016572b0122643a7546f549e5fb6ea2f61f76b6.tar.bz2
dotfiles-1016572b0122643a7546f549e5fb6ea2f61f76b6.zip
[nvim] Fix hover.nvim config
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins')
-rw-r--r--home/.config/nvim/lua/custom/plugins/init.lua26
1 files changed, 15 insertions, 11 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/init.lua b/home/.config/nvim/lua/custom/plugins/init.lua
index b5a2225..1a789be 100644
--- a/home/.config/nvim/lua/custom/plugins/init.lua
+++ b/home/.config/nvim/lua/custom/plugins/init.lua
@@ -48,17 +48,21 @@ return {
},
{
"lewis6991/hover.nvim",
- keys = { { "K", require "hover".hover }, { "gK", require "hover"
- .hover_select }, { "gh", require "hover".hover },
- { "gH", require "hover".hover_select } },
- opts = {
- init = function()
- require("hover.providers.lsp")
- require('hover.providers.gh')
- require('hover.providers.man')
- -- require('hover.providers.dictionary')
- end,
- },
+ config = function()
+ require("hover").setup {
+ init = function()
+ require("hover.providers.lsp")
+ require('hover.providers.gh')
+ require('hover.providers.man')
+ -- require('hover.providers.dictionary')
+ end,
+ }
+
+ vim.keymap.set("n", "K", require("hover").hover, { desc = "hover.nvim" })
+ vim.keymap.set("n", "gh", require("hover").hover, { desc = "hover.nvim" })
+ vim.keymap.set("n", "gK", require("hover").hover_select,
+ { desc = "hover.nvim (select)" })
+ end
},
{ 'akinsho/git-conflict.nvim', config = true },
{