⚙️ config(nvim): update persisted config due to recent breaking changes
This commit is contained in:
parent
1a2aa13814
commit
7ce2fa14bc
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue