Automatic Loading on Save
- Dominant language
- Lua
- Stars
- 80
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
One feature I think would be useful (but not sure if it's possible to implement within Lua/the Neovim API) would be functionality to automatically trigger the bacon_load function when the relevant bacon-locations file is updated. While directly triggering it on file save is trivial, the issue is the variable time between save and the bacon location file getting updated (due to compile time, tests running, linters, etc).
My current hacky solution in my own config is just to trigger the function half a second after a file save (with a rust filetype), but that only works when the checking time is short enough, so would be an unsuitable solution for large projects.
An ideal solution could be watching the bacon locations file for updates, then triggering bacon_load, but to the best of my understanding, that would be OS dependent.
Any thoughts?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.