about summary refs log tree commit diff
path: root/fnl/nvrc/colors.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/nvrc/colors.fnl')
-rw-r--r--fnl/nvrc/colors.fnl5
1 files changed, 5 insertions, 0 deletions
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))