Commit Graph
96 Commits
Author SHA1 Message Date
Toni MüllerandGitHub a9d9bce391 fix: disabling autosave wouldn't work (#28) 2023-07-04 08:13:07 +03:00
github-actions[bot] d97f914e94 chore(doc): auto-generate vimdoc 2023-07-03 14:30:31 +00:00
Toni MüllerandGitHub f134f34512 feat!: Replace callbacks with autocommand events (#25) 2023-07-03 17:29:54 +03:00
github-actions[bot] 19bd29c150 chore(doc): auto-generate vimdoc 2023-04-30 13:43:55 +00:00
okuuvaandGitHub 04fc40162c ci: fix panvimdoc version pinning (#24) 2023-04-30 16:31:20 +03:00
okuuvaandGitHub 5e961d1e0d ci: add vimdoc auto-generation workflow (#23)
vimdoc should update on every commit to `main`. This way the "Last change" info in vimdoc actually shows when the code was last changed even if the source file for help didn't change.

Other notable changes:
- Made README.md panvimdoc compatible
  - Got rid of `<details>` and `<summary>` tags in installation instructions
  - Made title, description and badges markdown only features (not included in vimdoc)
- Tweaked README.md appearance
  - Raised all heading levels by one
  - Updated description
  - Added license badge
  - Removed customisations from badges
    - Left style as For the Badge though
- Added initial vimdoc, locally generated with panvimdoc

Closes #10.
2023-04-30 16:25:05 +03:00
okuuvaandGitHub 4101eedc7e ci: fix stylua workflow (#22)
Workflow was broken for everybody except me since pull_request trigger
only works properly if every contributor has write access to the repo.
With fork based workflow prevalent in Github the trigger to use is
pull_request_target where the config and access token comes from main
branch instead of the PR itself.

Other notable changes:
- Only run checks if lua files change
- Run even if PR targets some branch other than main
2023-04-30 11:25:13 +03:00
okuuvaandGitHub 0c2c857de7 ci: add pr lint workflow (#21)
Closes #19.
2023-04-30 11:18:08 +03:00
okuuvaandGitHub c6acc92785 ci: add stylua GitHub action (#20)
Closes #7.
2023-04-29 16:23:11 +03:00
Toni MüllerandGitHub 42d1342b9e feature: Add logger for debugging (#18) 2023-04-25 11:33:25 +03:00
Toni MüllerandGitHub 55e8731d53 refactor!: Assert condition before setting timers (#16)
This solves #12

See #16 for more details.
2023-04-17 21:45:44 +03:00
okuuvaandGitHub 1fe7f6243f docs: add note about conventional commits to readme (#14) 2023-03-28 10:24:02 +03:00
Toni MüllerandGitHub a5e39553c5 feat: add defer_save, cancel_save, immediate_save trigger options (#11)
Fixes #8
2023-03-28 10:11:00 +03:00
Oula Kuuvaandokuuva 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 Kuuvaandokuuva 14bc188b5e style: update stylua.toml and .editorconfig
Made stylua.toml use two spaces as indentation since that seems to be
the most common convention in lua. Rest of the settings are kept in
Stylua defaults but made explicit.

Also updated .editorconfig to match config in stylua.toml.
2023-03-21 08:57:03 +02:00
Oula Kuuvaandokuuva 57cdc6f0d1 docs: add installation instructions for lazy.nvim 2023-03-20 21:34:35 +02:00
Oula Kuuvaandokuuva b4772196c1 docs: add contributing section to readme 2023-03-20 21:34:35 +02:00
Oula Kuuvaandokuuva e09d121ff2 docs: point links to this repo
Also added acknowledgement to Pocco81's work on the original plugin.
2023-03-20 21:34:35 +02:00
Oula Kuuvaandokuuva ecde274050 docs: drop breaking change notification
Ancient news, doesn't affect this repo.
2023-03-20 21:34:35 +02:00
Oula Kuuva 9d1c250bd2 fix: callbacks
Manually picked from https://github.com/Pocco81/auto-save.nvim/pull/67/,
namely 6203ae6d23625b93e563b8893cefb99e55ecb06f.
2023-02-12 18:31:27 +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ńskiandOula Kuuva 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
nmetandokuuva 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 Kuuvaandokuuva 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
Pocco81andGitHub 979b6c82f6 Merge pull request #47 from nvim-zh/new
fix #46 and format
2022-11-01 14:12:23 -05: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 fd65d8c924 docs: updated default conf 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
Pocco81andGitHub 6c26967070 Merge pull request #36 from charludo/main
docs: disclaimer about name change to README
2022-08-03 07:25:20 -05:00
charludoandGitHub 69a0ebb850 Update README.md 2022-08-02 11:21:10 +02:00
charludoandGitHub b9fac4628d Update README.md 2022-08-02 11:20:49 +02:00
Pocco81 ba4be14b1f updated default cleaning_interval 2022-07-31 00:52:21 -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
Pocco81 8df684bcb3 doc: documented vim.g.autosave_state 2021-11-02 19:21:31 -05:00
Pocco81 e68e2c3e23 feat #18: global var to check for current state 2021-11-02 19:14:10 -05:00
Pocco81 6af27430c4 Merge branch 'main' into dev 2021-09-23 18:09:46 -05:00
Pocco81andGitHub 30daa86222 Merge pull request #13 from sakkke/add-filename-is-not
feat: add `filename_is_not` condition
2021-09-23 18:09:13 -05:00
sakkke 268069b1a5 add filename_is_not condition 2021-09-23 12:44:11 +09:00
Pocco81 49bcafa1db instantiat test var 2021-09-19 20:47:25 -05:00
Pocco81 17ed19f56a fix #11: write all buffers appropriately 2021-09-18 17:06:24 -05:00
Pocco81 b1df927abe added recommendations 2021-07-31 12:58:49 -05:00
Pocco81andGitHub 7ae42195e5 Merge pull request #9 from refractalize/better-events-default
Better events default
2021-07-18 19:22:47 -05:00
Tim Macfarlane b175066b66 Add TextChanged to default_events. 2021-07-18 19:38:10 +02:00
Pocco81 a1aa1de7f6 fix: updated doc for missmmatching default debounce_delay value 2021-07-17 11:31:25 -05:00