From 1016572b0122643a7546f549e5fb6ea2f61f76b6 Mon Sep 17 00:00:00 2001 From: Arnold Sommerfeld Date: Fri, 17 Nov 2023 09:07:30 +0000 Subject: [nvim] Fix hover.nvim config --- home/.config/nvim/lua/custom/plugins/init.lua | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'home/.config/nvim/lua/custom/plugins') 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 }, { -- cgit v1.2.3-70-g09d2