nvim/lua/plugins/hover.lua

24 lines
642 B
Lua
Raw Permalink Normal View History

2023-08-28 10:28:15 +00:00
return {
2024-03-15 14:15:26 +00:00
"lewis6991/hover.nvim",
config = function()
require("hover").setup({
2024-03-15 14:15:26 +00:00
init = function()
require("hover.providers.lsp")
require("hover.providers.gh")
require("hover.providers.man")
2024-03-15 14:15:26 +00:00
end,
preview_opts = {
border = nil,
2024-03-15 14:15:26 +00:00
},
-- Whether the contents of a currently open hover window should be moved
-- to a :h preview-window when pressing the hover keymap.
preview_window = false,
title = true,
})
2023-08-28 10:28:15 +00:00
2024-03-15 14:15:26 +00:00
-- Setup keymaps
vim.keymap.set("n", "K", require("hover").hover, { desc = "hover.nvim" })
vim.keymap.set("n", "gK", require("hover").hover_select, { desc = "hover.nvim (select)" })
end,
2023-08-28 10:28:15 +00:00
}