How to disable saving picker history? #2783
Answered
by
drowning-cat
ZingyAwesome
asked this question in
Q&A
|
I just noticed that snacks has been saving all my picker history to various .history and .sqlite3 files in |
Answered by
drowning-cat
Mar 25, 2026
Replies: 1 comment 1 reply
|
It sounds both like paranoia and a reasonable request at the same time. I think disabling the autocmd should be enough, but I strongly encourage you to test it: vim.api.nvim_create_autocmd("VimEnter", {
group = vim.api.nvim_create_augroup("no_picker_hist", { clear = true }),
callback = function()
require("snacks.picker.util.history") -- Preload file
vim.api.nvim_clear_autocmds({ group = "snacks_history" })
end,
}) |
1 reply
Answer selected by
ZingyAwesome
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It sounds both like paranoia and a reasonable request at the same time.
I think disabling the autocmd should be enough, but I strongly encourage you to test it: