From db8a586b7ed5a59995e13e5dab63b39a204946a3 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 19 Jan 2025 13:21:51 +0300 Subject: [PATCH] neovim/init: enable `preventJunkFiles` by default --- modules/neovim/init/basic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/neovim/init/basic.nix b/modules/neovim/init/basic.nix index 532ebcea..b4677de9 100644 --- a/modules/neovim/init/basic.nix +++ b/modules/neovim/init/basic.nix @@ -55,8 +55,14 @@ in { preventJunkFiles = mkOption { type = bool; - default = false; - description = "Prevent swapfile and backupfile from being created"; + default = true; + example = false; + description = '' + Prevent swapfile and backupfile from being created. + + `false` is the default Neovim behaviour. If you wish to create + backup and swapfiles, set this option to `false`. + ''; }; bell = mkOption {