mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 07:35:38 +00:00
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:
parent
b4470727e5
commit
6d0d36165e
@ -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//")'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user