30 Commits

Author SHA1 Message Date
Toni Müller
f8e3ac2857 chore: Deprecate unneeded utils, don't print enable/disable msg (#60) 2024-12-04 08:17:34 +02:00
Toni Müller
95544f7467 chore!: fix cancel_deferred_save event typo (#58)
Copied over from https://github.com/okuuva/auto-save.nvim/pull/48

---------

Co-authored-by: Sergey Kochetkov <skoch13@pm.me>
2024-10-09 13:06:36 +02:00
Toni Müller
1747cf21c6 feat!: Remove deprecated execution message (#54)
This removes the execution message and adds a comment to the README on
how to readd them via Autocommands.

Also I implemented a function to handle breaking changes. It can later
be used for https://github.com/okuuva/auto-save.nvim/pull/48

This merges in a feature branch. I would like to collect all potential
breaking changes there until we can release it all together in a version
1.0.0

---------

Co-authored-by: okuuva <okuuva@users.noreply.github.com>
2024-05-18 08:46:46 +03:00
Toni Müller
fddbf38851 feat: GH-44 lock marks when saving (#53)
Use `lockmarks` in write command to keep `[` and `]` marks after saving.

Thanks @simonmandlik

---------

Co-authored-by: okuuva <okuuva@users.noreply.github.com>
2024-04-25 08:34:17 +02:00
Toni Müller
6971ddca43 fix: GH-49 Abort save if buffer is invalid or unloaded (#52) 2024-04-08 15:03:27 +03:00
Toni Müller
b23f238128 feat: GH-45 Add events when enabling/disabling the plugin (#46) 2024-02-27 09:27:10 +02:00
Toni Müller
723168365b feat: GH-40 Add pattern to trigger_events (#42) 2023-11-08 09:30:21 +01:00
Toni Müller
48f69fb61d fix: Empty trigger_events crash the plugin (#33) 2023-07-21 08:33:55 +02:00
Toni Müller
db206fda28 fix: [#30] Don't turn autosave on before reading user config (#32) 2023-07-21 08:32:46 +02:00
Toni Müller
c7427f4d78 feat: [#15] Implement config option for noautocmd (#31) 2023-07-21 08:32:24 +02:00
Toni Müller
cb3b5f57ae fix: dim would not get applied when lazy loading plugin (#27) 2023-07-05 08:07:30 +02:00
Toni Müller
a9d9bce391 fix: disabling autosave wouldn't work (#28) 2023-07-04 08:13:07 +03:00
Toni Müller
f134f34512 feat!: Replace callbacks with autocommand events (#25) 2023-07-03 17:29:54 +03:00
Toni Müller
42d1342b9e feature: Add logger for debugging (#18) 2023-04-25 11:33:25 +03:00
Toni Müller
55e8731d53 refactor!: Assert condition before setting timers (#16)
This solves #12

See #16 for more details.
2023-04-17 21:45:44 +03:00
Toni Müller
a5e39553c5 feat: add defer_save, cancel_save, immediate_save trigger options (#11)
Fixes #8
2023-03-28 10:11:00 +03:00
Oula Kuuva
343bbfa98a style: autoformat all the things
Namely: applied stylua to the whole repo and ran marksman on README.md.
2023-03-21 08:57:03 +02:00
Oula Kuuva
376dd62508 refactor: define echo_execution_message before using 2023-02-12 18:27:36 +02:00
Oula Kuuva
7fbfd81eea style: apply stylua 2023-02-12 18:19:13 +02:00
Jakub Łuczyński
4db41a2155 feat: allow to disable execution_message
Squashed changes from https://github.com/Pocco81/auto-save.nvim/pull/50
Got too hairy for a GH noob like me to fix properly.
2023-02-12 18:18:09 +02:00
nmet
492bab0c47 Fix debounce_delay option not being read
When this file is loaded, `cnf` has default options
2023-02-12 18:00:58 +02:00
Oula Kuuva
fc7c13d755 style: add and apply stylua config
Made it compatible with the .editorconfig already present and didn't
introduce any bells and whistles beyond that. Fixed the typo in
.editorconfig indent_style while I was at it.
2023-02-12 17:39:05 +02:00
XXiaoA
38ff59e8af refactor: remove verbose code 2022-08-21 22:15:01 +08:00
XXiaoA
419ff6047d fix #46 and format 2022-08-12 12:19:15 +08:00
Pocco81
2c7a294334 fix: #34 2022-08-06 17:16:01 -05:00
Pocco81
1d2c03cbd0 fix: use object as config handler 2022-08-06 17:16:01 -05:00
Pocco81
d37a766858 fix: #34 - match against any pattern more than once if VimEnter and ColorScheme) 2022-08-06 17:16:01 -05:00
Pocco81
6cbadbd385 fix: #34 (needs testing) 2022-08-06 17:16:01 -05:00
Pocco81
6ebf09ac62 fix: ASToggle command 2022-07-31 00:49:15 -05:00
Pocco81
0288839edd BREAKING CHANGES: plugin rewrite 2022-07-31 00:27:43 -05:00