mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 10:24:47 +01:00
21 lines
598 B
Lua
21 lines
598 B
Lua
return {
|
|
-- preview definitions using floating windows
|
|
"rmagatti/goto-preview",
|
|
dependencies = "rmagatti/logger.nvim",
|
|
config = function()
|
|
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,
|
|
}
|