Skip to content

Commit

Permalink
feat(persisted): update for recent code rewrite
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Aug 12, 2024
1 parent 59c4e48 commit 4d847ee
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lua/modules/configs/editor/persisted.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
return function()
require("persisted").setup({
save_dir = vim.fn.expand(vim.fn.stdpath("data") .. "/sessions/"),
silent = true,
autosave = true,
autostart = true,
autoload = false,
follow_cwd = true,
use_git_branch = true,
should_autosave = function()
if vim.bo.filetype == "alpha" then
return false
end
return true
should_save = function()
return vim.bo.filetype == "alpha" and false or true
end,
telescope = { reset_prompt_after_deletion = true },
})
end

0 comments on commit 4d847ee

Please sign in to comment.