natecraddock / workspaces.nvim

a simple plugin to manage workspace directories in neovim
MIT License
309 stars 15 forks source link

Add buffer delete to session switching example #32

Closed caerphoto closed 7 months ago

caerphoto commented 7 months ago

The existing example in README under the 'Load a saved session' example does not delete existing buffers when opening a new workspace, meaning they get added to the newly opened session.

The deletion code is from your Reddit comment here: https://www.reddit.com/r/neovim/comments/sg10tj/comment/huut0g8/

natecraddock commented 7 months ago

Thanks! This is a good idea to add