From e47fa485563a8a806c52f66a18471bbf012ac5c1 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Thu, 24 Oct 2024 06:53:08 -0500 Subject: add stuff --- fnl/opt.fnl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fnl/opt.fnl') diff --git a/fnl/opt.fnl b/fnl/opt.fnl index e28645c..8b8981c 100644 --- a/fnl/opt.fnl +++ b/fnl/opt.fnl @@ -11,3 +11,10 @@ (tset vim.opt :termguicolors true) ;--vim.opt.fillchars = { eob = ""} (vim.cmd (.. "colorscheme " _G.settings.colorscheme)) + +(when (= (vim.fn.has :persistent_undo) 1) + (local target_path (vim.fn.expand "~/.undodir")) + (when (not= (vim.fn.isdirectory target_path) 1) + (vim.fn.mkdir target_path :p 0777)) + (tset vim.o :undodir target_path) + (tset vim.o :undofile true)) -- cgit v1.2.3