diff options
author | Ploum <1233155+ploum@users.noreply.github.com> | 2023-11-14 11:56:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 02:56:50 -0800 |
commit | 5b45efbee6ebb64269469b636baac5248e83421f (patch) | |
tree | 5af8d80b27ae4003b8d58a2f44b5b3e7b4c49f48 /src/nvim/options.lua | |
parent | 582d7f47905d82f315dc852a9d2937cd5b655e55 (diff) | |
download | rneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.gz rneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.bz2 rneovim-5b45efbee6ebb64269469b636baac5248e83421f.zip |
fix(defaults): set 'fsync' #26034
Problem:
'nofsync' may lose data if the system has a hard shutdown. #9888
Solution:
Change default to 'fsync'. This may be revisited in the future when
'nofsync' can be made safer.
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 56ecf26fdf..373dc3c460 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -3307,7 +3307,7 @@ return { }, { abbreviation = 'fs', - defaults = { if_true = false }, + defaults = { if_true = true }, desc = [=[ When on, the OS function fsync() will be called after saving a file (|:write|, |writefile()|, …), |swap-file|, |undo-persistence| and |shada-file|. |