diff options
| author | 2026-05-13 13:43:13 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:13 +0100 | |
| commit | 80753ca5c819ea498a16844ecfb52c46eb0aa036 (patch) | |
| tree | 68716f3fca9b77929deaab2239296b98df1b7e20 /dot_config | |
| parent | 2c51bc501958441e11eb1bdb91e8ed2d99e9203f (diff) | |
| download | dotfiles-80753ca5c819ea498a16844ecfb52c46eb0aa036.tar.gz dotfiles-80753ca5c819ea498a16844ecfb52c46eb0aa036.tar.bz2 dotfiles-80753ca5c819ea498a16844ecfb52c46eb0aa036.zip | |
fix(nvim): drop overseer task-bundle integration from auto-session
overseer.nvim removed save/load_task_bundle in the "task bundles get the
axe" refactor, which caused auto-session to error on every session restore:
/lua/plugins/session.lua:27: attempt to call field 'load_task_bundle'
(a nil value)
Remove the pre_save/pre_restore/post_restore hooks that called the removed
API. DAP breakpoint save/restore via save_extra_data is preserved.
Diffstat (limited to 'dot_config')
| -rw-r--r-- | dot_config/nvim/lua/plugins/session.lua | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/dot_config/nvim/lua/plugins/session.lua b/dot_config/nvim/lua/plugins/session.lua index a094727..30d5767 100644 --- a/dot_config/nvim/lua/plugins/session.lua +++ b/dot_config/nvim/lua/plugins/session.lua @@ -1,35 +1,9 @@ -local function get_cwd_as_name() - local dir = vim.fn.getcwd(0) - return dir:gsub("[^A-Za-z0-9]", "_") -end -local overseer = require("overseer") +-- overseer.nvim removed task bundles (commit "refactor!: task bundles get +-- the axe"), so auto-session no longer persists tasks. Only DAP breakpoints +-- are preserved across sessions below. require("auto-session").setup({ use_git_branch = true, - pre_save_cmds = { - function() - overseer.save_task_bundle( - get_cwd_as_name(), - nil, - { on_conflict = "overwrite" } - ) - end, - }, - pre_restore_cmds = { - function() - for _, task in ipairs(overseer.list_tasks({})) do - task:dispose(true) - end - end, - }, - post_restore_cmds = { - function() - overseer.load_task_bundle( - get_cwd_as_name(), - { ignore_missing = true, autostart = false } - ) - end, - }, save_extra_data = function(_) local ok, breakpoints = pcall(require, "dap.breakpoints") if not ok or not breakpoints then |
