From 287b7d3b79a5fb1c0e0c74eb4f8f539dcf353c85 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 13 Aug 2023 01:24:16 +0900 Subject: feat(colors): add palette switcher --- fnl/nvrc/colors.fnl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fnl/nvrc/colors.fnl') diff --git a/fnl/nvrc/colors.fnl b/fnl/nvrc/colors.fnl index 70c57e3..fa341b1 100644 --- a/fnl/nvrc/colors.fnl +++ b/fnl/nvrc/colors.fnl @@ -16,6 +16,11 @@ (lambda colors.apply [colorscheme] (import-macros {: highlight!} :nvrc.macro.color) + (vim.api.nvim_create_user_command :SwitchPalette + (fn [opts] + ((. (require :nvrc.colors) :apply) (. opts.fargs 1))) + {:nargs 1}) + (setv! jellybeans_overrides {:background {:ctermbg :NONE :256ctermbg :NONE :guibg :NONE}}) (vim.cmd (.. "colorscheme " colorscheme)) -- cgit 1.4.1