about summary refs log tree commit diff
path: root/fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-13 01:24:16 +0900
committersefidel <contact@sefidel.net>2023-08-13 01:24:23 +0900
commit287b7d3b79a5fb1c0e0c74eb4f8f539dcf353c85 (patch)
tree00d42e72c44430b3052ed0b34f6ec419658404f8 /fnl
parent7559586b90ca100abb607b2f0aa68beb420665b4 (diff)
downloadnvimrc-287b7d3b79a5fb1c0e0c74eb4f8f539dcf353c85.tar.gz
nvimrc-287b7d3b79a5fb1c0e0c74eb4f8f539dcf353c85.zip
feat(colors): add palette switcher
Diffstat (limited to 'fnl')
-rw-r--r--fnl/nvrc/colors.fnl5
-rw-r--r--fnl/nvrc/pack.fnl1
2 files changed, 6 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))
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index a934b71..68961e9 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -5,6 +5,7 @@
 (pack! :rktjmp/hotpot.nvim)
 
 (pack! :nanotech/jellybeans.vim {:config "require('nvrc.colors').apply('jellybeans')"})
+(pack! :kvrohit/rasmus.nvim)
 (pack! :nvim-treesitter/nvim-treesitter {:req :treesitter
                                          :requires [(pack :nvim-treesitter/nvim-treesitter-refactor {:after :nvim-treesitter})
                                                     (pack :nvim-treesitter/nvim-treesitter-textobjects {:after :nvim-treesitter})]})