neovim conf part 5
This commit is contained in:
parent
d6c19e2e92
commit
d8c82c966b
4 changed files with 124 additions and 22 deletions
|
@ -7,6 +7,21 @@ return {
|
|||
---@type AutoSession.Config
|
||||
opts = {
|
||||
suppressed_dirs = { '~/', '~/Downloads', '/' },
|
||||
pre_restore_cmds = {
|
||||
-- might not be necessary, but save current harpoon data when we're about to restore a session
|
||||
function() require('harpoon'):sync() end,
|
||||
},
|
||||
post_restore_cmds = {
|
||||
function()
|
||||
-- vim.notify('calling harpoon sync after restore')
|
||||
local harpoon = require('harpoon')
|
||||
local hdata = require('harpoon.data')
|
||||
|
||||
-- this is the only way i found to force harpoon to reread data from the disk rather
|
||||
-- than using what's in memory
|
||||
require('harpoon').data = hdata.Data:new(harpoon.config)
|
||||
end,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue