-
I don't want to see previewer window when search for files, but still want to keep it in git status or grep search...etc. How to achieve that? And one issue with picker previewer I think, currently I have an autocmd to jump into last position Autocmd jump to last position: vim.api.nvim_create_autocmd("BufReadPost", {
group = vim.api.nvim_create_augroup("auto-last-position", { clear = true }),
callback = function(args)
local position = vim.api.nvim_buf_get_mark(args.buf, [["]])
local winid = vim.fn.bufwinid(args.buf)
pcall(vim.api.nvim_win_set_cursor, winid, position)
end,
desc = "Auto jump to last position",
}) |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Jan 17, 2025
Replies: 1 comment
-
opts.picker.sources.files.layout.preview = false |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tknightz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
opts.picker.sources.files.layout.preview = false