pocco81 / auto-save.nvim

🧶 Automatically save your changes in NeoVim
GNU General Public License v3.0
654 stars 67 forks source link

Error when switch project with `neovim-project-manager` #53

Open LintaoAmons opened 2 years ago

LintaoAmons commented 2 years ago

When I switch project using neovim-project-manager this error popup.

Error executing vim.schedule lua callback: .../pack/packer/start/auto-save.nvim/lua/auto-save/init.lua:27: Invalid buffer id: 8
stack traceback:
        [C]: in function 'nvim_buf_set_var'
        .../pack/packer/start/auto-save.nvim/lua/auto-save/init.lua:27: in function 'set_buf_var'
        .../pack/packer/start/auto-save.nvim/lua/auto-save/init.lua:44: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
XXiaoA commented 2 years ago

Just try my fork

HymanZHAN commented 1 year ago

Should already be fixed by this PR https://github.com/Pocco81/auto-save.nvim/commit/419ff6047d2299bfb3fe09317d501185ffecb337 Please update the plugin and see if your problem persists. 🤗