use opt instead of bo for undofile

i saw this in an example and it seems like it
might be more appropriate
This commit is contained in:
Noah Masur 2024-07-02 09:33:04 -04:00
parent b4470727e5
commit 6d0d36165e
No known key found for this signature in database

View File

@ -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//")'';