diff options
author | amelia squires <[email protected]> | 2024-12-02 15:00:06 -0600 |
---|---|---|
committer | amelia squires <[email protected]> | 2024-12-02 15:00:06 -0600 |
commit | 27bdad73f556e309ef7426d8c2f875088b9772a9 (patch) | |
tree | c878cd074267b6789d28e0a6d5526affe0d95c2a /fnl/opt.fnl | |
parent | f343b6021c3fd58bde0bad35e75fb16451990ba1 (diff) |
lots of stuff + work on settings ui
Diffstat (limited to 'fnl/opt.fnl')
-rw-r--r-- | fnl/opt.fnl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/fnl/opt.fnl b/fnl/opt.fnl index 17e4e0d..663fdee 100644 --- a/fnl/opt.fnl +++ b/fnl/opt.fnl @@ -11,13 +11,17 @@ (tset vim.opt :termguicolors true) ;--vim.opt.fillchars = { eob = ""} +(local color_change (fn [] + (vim.api.nvim_set_hl 0 :Normal {:bg :none}) + (vim.api.nvim_set_hl 0 :EndOfBuffer {:bg :none}) + (vim.api.nvim_set_hl 0 :NormalFloat {:bg :none}) + (vim.api.nvim_set_hl 0 :FloatBorder {:bg :none}))) + (when (= _G.settings.trans "enable") (vim.api.nvim_create_autocmd "Colorscheme" { :pattern :* - :callback (fn [] - (vim.api.nvim_set_hl 0 :Normal {:bg :none}) - (vim.api.nvim_set_hl 0 :NormalFloat {:bg :none}) - (vim.api.nvim_set_hl 0 :FloatBorder {:bg :none}))})) + :callback color_change}) + (color_change)) (vim.cmd (.. "colorscheme " _G.settings.colorscheme)) @@ -27,3 +31,6 @@ (vim.fn.mkdir target_path :p 0777)) (tset vim.o :undodir target_path) (tset vim.o :undofile true)) + +(when (not= _G.settings.layout "") + ((require (.. :layouts. _G.settings.layout)))) |