1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 10:24:47 +01:00

NVIM: Improved hover and preview handeling

This commit is contained in:
2026-03-24 10:36:55 +01:00
parent b077e877f5
commit 5a0286c68b
2 changed files with 10 additions and 1 deletions

View File

@@ -6,6 +6,15 @@ return {
require("goto-preview").setup({
border = "rounded",
preview_window_title = { enable = true, position = "center" },
post_open_hook = function(bufnr, winid)
local close = function()
require("goto-preview").close_all_win()
end
vim.keymap.set("n", "<c-h>", close, { buffer = bufnr, silent = true })
vim.keymap.set("n", "q", close, { buffer = bufnr, silent = true })
end,
})
end,
}