8 Commits

Author SHA1 Message Date
Folke Lemaitre
7bb575517c
feat!: opts.need specifieds how many buffers should be open for saving. Replaces save_empty. Closes #19 2024-07-06 21:41:58 +02:00
Folke Lemaitre
eb5622edae
feat!: removed opts.options. Use vim.o.sessionoptions instead. 2024-07-06 21:22:40 +02:00
Aaron
a2fd3d9965
fix: remove expand() as stdpath() expands itself (#50) 2024-06-12 05:53:08 +02:00
Roeeeee
3d443bd0a7
feat(persistence): add pre- and post- load hooks (#24)
* Add optional hook typings to config object

* Add optional hooks conditional calls

* Add hooks description to main readme
2024-05-16 19:03:16 +02:00
Folke Lemaitre
e9afeaf3a7
feat: don't save the session when no files are open (save_empty = false) 2023-10-13 07:57:09 +02:00
Iron-E
f4bb0c5641
feat(persistence): pre_save option to call before saving (#22)
* feat(persistence): `pre_save` option to call before saving

This commit adds the `pre_save` option, which is a `fun()|nil` that will
be called (if present) before saving the current session. Use cases
include filtering buffers, executing `User` autocmds, etc.

* docs: `pre_save` option
2023-02-28 10:05:58 +01:00
Folke Lemaitre
c304745096
feat!: save sessions in state instead of config 2023-01-04 13:52:49 +01:00
Folke Lemaitre
a39f3f10c8
feat: added config options 2021-07-12 10:47:09 +02:00