mirror of
https://github.com/sadan4/nvim.git
synced 2025-01-18 03:03:29 -05:00
23 lines
483 B
Lua
23 lines
483 B
Lua
require("hover").setup({
|
|
init = function()
|
|
require("hover.providers.diagnostic")
|
|
require("hover.providers.lsp")
|
|
end,
|
|
preview_opts = {
|
|
border = "rounded",
|
|
},
|
|
preview_window = false,
|
|
title = true,
|
|
mouse_providers = {
|
|
"Diagnostics",
|
|
"LSP",
|
|
},
|
|
mouse_delay = 0,
|
|
})
|
|
local h = require("hover")
|
|
vim.keymap.set("n", "K", h.hover)
|
|
vim.keymap.set("n", "gK", h.hover_select)
|
|
vim.keymap.set("n", "<RightMouse>", h.hover_mouse, {
|
|
noremap = true,
|
|
})
|
|
vim.o.mousemoveevent = true
|