diff options
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/opt.fnl | 7 | ||||
-rw-r--r-- | fnl/plugins/bufresize.fnl | 1 | ||||
-rw-r--r-- | fnl/plugins/gitsigns.fnl | 1 | ||||
-rw-r--r-- | fnl/plugins/startup.fnl | 2 |
4 files changed, 11 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)) diff --git a/fnl/plugins/bufresize.fnl b/fnl/plugins/bufresize.fnl new file mode 100644 index 0000000..e495e26 --- /dev/null +++ b/fnl/plugins/bufresize.fnl @@ -0,0 +1 @@ +((. (require :bufresize) :setup)) diff --git a/fnl/plugins/gitsigns.fnl b/fnl/plugins/gitsigns.fnl new file mode 100644 index 0000000..9810906 --- /dev/null +++ b/fnl/plugins/gitsigns.fnl @@ -0,0 +1 @@ +((. (require :gitsigns) :setup)) diff --git a/fnl/plugins/startup.fnl b/fnl/plugins/startup.fnl new file mode 100644 index 0000000..dc601a4 --- /dev/null +++ b/fnl/plugins/startup.fnl @@ -0,0 +1,2 @@ +((. (require :startup) :setup) { + :theme :evil}) |