diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-08 02:49:49 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-08 02:49:49 +0100 |
commit | 86fc163e549d78136855ac2b45e91ffb2f43affc (patch) | |
tree | 20fab78a2ff2635af5ac95f2b2a11d9d07ace0e1 /fnl/config/colorscheme.fnl | |
parent | 0d7f782cb4e68cff000beb00e8ab64308a66f3f0 (diff) |
Refactor config loading
Diffstat (limited to 'fnl/config/colorscheme.fnl')
-rw-r--r-- | fnl/config/colorscheme.fnl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/fnl/config/colorscheme.fnl b/fnl/config/colorscheme.fnl index 8c27ca4..83175c2 100644 --- a/fnl/config/colorscheme.fnl +++ b/fnl/config/colorscheme.fnl @@ -1,9 +1,16 @@ ;; Load neovim colorscheme. -(module config.colorscheme {autoload {util config.util}}) (local colorscheme :no-clown-fiesta) -(def- opts {:styles {:type {:bold true}}}) +(local opts {:styles {:type {:bold true}}}) -(util.setup :no-clown-fiesta opts) -(vim.cmd (.. "colorscheme " colorscheme)) +(fn setup [] + (let [plugin (require colorscheme)] + (plugin.setup opts) + (vim.cmd (.. "colorscheme " colorscheme)))) + +{1 :aktersnurra/no-clown-fiesta.nvim + :lazy false + :priority 1000 + :config (fn [] + (setup))} |