aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-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 },
{