Skip to content
Discussion options

You must be logged in to vote

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,
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZingyAwesome
Comment options

Answer selected by ZingyAwesome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants