trunk
trunk copied to clipboard
Trunk does not detect changes if files saved with neovim
Trunk does not detect file changes with neovim. Upon saving the file in neovim on version (0.6.1 and 0.7 nightly both using the --clean flag) no changes are detected by trunk
on the other hand with vim changes are detected there is probably a difference on how files are written to disc in both
though trunk should detect any change that happens to a file.
Reproduce:
- Install Trunk:
cargo install trunk - Install neovim (
brew install neovim, ...) - create a trunk project
- open
nvimand a file:e ./src/main.rs - save the file
:w
Expected:
Trunk sees any kind of file change.
Infos:
trunk --version
trunk 0.14.0
rustc --version
rustc 1.58.0 (02072b482 2022-01-11)
this is happening because of the backupcopy option in neovim
non the less i think since the file is still written there should be changes detected
if any maintainer disagrees feel free to close since i found a solution for myself
To save anyone else time because the problem still exists in 2023.
Yes, neovim and watch aren't working well but setting nobackupcopy is a solution.
I created a local .vimrc in the tree with the line set nobackupcopy and now trunk is notified when a file within the directory being watched is modified by neovim.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.