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

NVIM: Split opts and config for lazy plugins

This commit is contained in:
2026-03-26 07:53:23 +01:00
parent 3c3cfd333d
commit d1e73e1c7d
25 changed files with 341 additions and 388 deletions

View File

@@ -46,19 +46,17 @@ return {
desc = "LSP: close all preview windows",
},
},
config = function()
require("goto-preview").setup({
border = "rounded",
preview_window_title = { enable = true, position = "center" },
opts = {
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
post_open_hook = function(bufnr, _)
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,
vim.keymap.set("n", "<c-h>", close, { buffer = bufnr, silent = true })
vim.keymap.set("n", "q", close, { buffer = bufnr, silent = true })
end,
},
}