From 6d0d36165e6556b705170ed77fe8fadfb72527d4 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:33:04 -0400 Subject: [PATCH] use opt instead of bo for undofile i saw this in an example and it seems like it might be more appropriate --- modules/common/neovim/config/misc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/common/neovim/config/misc.nix b/modules/common/neovim/config/misc.nix index 81ef9f4..28d695b 100644 --- a/modules/common/neovim/config/misc.nix +++ b/modules/common/neovim/config/misc.nix @@ -57,8 +57,8 @@ # Better backup, swap and undo storage vim.o.backup = true; # Easier to recover and more secure - vim.bo.swapfile = false; # Instead of swaps, create backups - vim.bo.undofile = true; # Keeps undos after quit + vim.opt.undofile = true; # Keeps undos after quit + vim.opt.swapfile = false; # Instead of swaps, create backups vim.o.backupdir = dsl.rawLua ''vim.fn.expand("~/.local/state/nvim/backup//")''; vim.o.undodir = dsl.rawLua ''vim.fn.expand("~/.local/state/nvim/undo//")'';