From 86fc163e549d78136855ac2b45e91ffb2f43affc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 8 Jan 2023 02:49:49 +0100 Subject: Refactor config loading --- fnl/config/colorscheme.fnl | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'fnl/config/colorscheme.fnl') 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))} -- cgit v1.2.3-70-g09d2