diff options
author | amelia squires <[email protected]> | 2024-10-24 06:53:08 -0500 |
---|---|---|
committer | amelia squires <[email protected]> | 2024-10-24 06:53:08 -0500 |
commit | e47fa485563a8a806c52f66a18471bbf012ac5c1 (patch) | |
tree | 2e56afccd9c2dd25549a99c5d3ad1a6316331f75 /fnl/opt.fnl | |
parent | 128bb9acbce77e20473857345b0956739e8b6fca (diff) |
add stuff
Diffstat (limited to 'fnl/opt.fnl')
-rw-r--r-- | fnl/opt.fnl | 7 |
1 files changed, 7 insertions, 0 deletions
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)) |