Skip to content

Commit db8a586

Browse files
committed
neovim/init: enable preventJunkFiles by default
1 parent abd9176 commit db8a586

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/neovim/init/basic.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ in {
5555

5656
preventJunkFiles = mkOption {
5757
type = bool;
58-
default = false;
59-
description = "Prevent swapfile and backupfile from being created";
58+
default = true;
59+
example = false;
60+
description = ''
61+
Prevent swapfile and backupfile from being created.
62+
63+
`false` is the default Neovim behaviour. If you wish to create
64+
backup and swapfiles, set this option to `false`.
65+
'';
6066
};
6167

6268
bell = mkOption {

0 commit comments

Comments
 (0)