aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorPloum <1233155+ploum@users.noreply.github.com>2023-11-14 11:56:50 +0100
committerGitHub <noreply@github.com>2023-11-14 02:56:50 -0800
commit5b45efbee6ebb64269469b636baac5248e83421f (patch)
tree5af8d80b27ae4003b8d58a2f44b5b3e7b4c49f48 /src/nvim/options.lua
parent582d7f47905d82f315dc852a9d2937cd5b655e55 (diff)
downloadrneovim-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.lua2
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|.