⚙️ config(nvim): update persisted config due to recent breaking changes

This commit is contained in:
Sergio Laín 2024-08-09 12:29:14 +02:00
parent 1a2aa13814
commit 7ce2fa14bc
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -1,8 +1,5 @@
local group = vim.api.nvim_create_augroup("PersistedHooks", {})
vim.api.nvim_create_autocmd({ "User" }, {
pattern = "PersistedTelescopeLoadPre",
group = group,
callback = function(session)
-- Save the currently loaded session using a global variable
require("persisted").save({ session = vim.g.persisted_loaded_session })
@ -36,8 +33,7 @@ return {
end)
require("persisted").setup({
use_git_branch = true,
autoload = false,
should_autosave = function()
should_save = function()
if vim.bo.filetype == "dashboard" then
return false
end