about summary refs log tree commit diff
path: root/fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-03 23:09:07 +0900
committersefidel <contact@sefidel.net>2022-03-03 23:09:07 +0900
commitf99b5f7613c0f43fe9b4f4e174a43ad4c6ec1279 (patch)
tree98a2c57ebc7e8d7a524db339dd662a24971b62bb /fnl
parent909cce24a63be445a642171bb807faa1aff21a0a (diff)
downloadnvimrc-f99b5f7613c0f43fe9b4f4e174a43ad4c6ec1279.tar.gz
nvimrc-f99b5f7613c0f43fe9b4f4e174a43ad4c6ec1279.zip
feat(colors): jellybeans-nvim -> gruvbox-material
Diffstat (limited to 'fnl')
-rw-r--r--fnl/nvrc/colors.fnl49
-rw-r--r--fnl/nvrc/pack.fnl3
-rw-r--r--fnl/nvrc/packs/treesitter.fnl6
3 files changed, 30 insertions, 28 deletions
diff --git a/fnl/nvrc/colors.fnl b/fnl/nvrc/colors.fnl
index b080a5f..9ba8742 100644
--- a/fnl/nvrc/colors.fnl
+++ b/fnl/nvrc/colors.fnl
@@ -1,28 +1,31 @@
-(local colors {:bg "#151515"
-               :bar "#202020"
-               :fg "#cbc0ab"
-               :white "#e8e8d3"
-               :black "#181818"
-               :black2 "#101010"
-               :bblack "#252525"
-               :dgrey "#333333"
-               :mgrey "#444444"
-               :grey2 "#666666"
-               :grey "#888888"
-               :bgrey "#999999"
-               :red "#cf6a4c"
-               :orange "#fabb6e"
-               :yellow "#fad07a"
-               :lyellow "#ffe2a9"
-               :green "#99ad6a"
-               :skyblue "#8fbfdc"
-               :blue "#8197bf"
-               :violet "#c6b6ee"
-               :magenta "#f0a0c0"})
+(import-macros {: setv!} :nvrc.macro.set)
+
+(local colors {:bg "#1d2021"
+               :bar "#32302f"
+               :fg "#d4be98"
+               :white "#e4be98"
+               :black "#1d2021"
+               :bblack "#3c3836"
+               :dgrey "#282828"
+               :mgrey "#504945"
+               :grey "#928374"
+               :red "#ea6962"
+               :orange "#e79a42"
+               :yellow "#d8a657"
+               :green "#a9b665"
+               :skyblue "#89b482"
+               :blue "#7daea3"
+               :violet "#d3869b"})
 
 
 (lambda colors.apply [colorscheme]
   (import-macros {: highlight! : link!} :nvrc.macro.color)
+
+  ; FIXME: introduces unused variables when using other themes
+  (setv! background :dark)
+  (setv! gruvbox_material_background :hard)
+  (setv! gruvbox_material_sign_column_background :none)
+  (setv! gruvbox_material_menu_selection_background :aqua)
   (vim.cmd (.. "colorscheme " colorscheme))
 
   ; Statusline
@@ -36,7 +39,7 @@
   (highlight! :StatusLineCmdLineAccent {:fg (. colors :green) :bg (. colors :bar)})
   (highlight! :StatusLineTerminalAccent {:fg (. colors :skyblue) :bg (. colors :bar)})
   (highlight! :StatusLineFile {:fg (. colors :orange) :bg (. colors :bar) :bold true})
-  (highlight! :StatusLineFileData {:fg (. colors :magenta) :bg (. colors :bar) :bold true})
+  (highlight! :StatusLineFileData {:fg (. colors :violet) :bg (. colors :bar) :bold true})
 
   ; Buffer
   (highlight! :EndOfBuffer {:fg (. colors :bar)})
@@ -82,7 +85,7 @@
   ; Misc
   (highlight! :TabLine {:fg (. colors :fg) :bg (. colors :mgrey)})
   (highlight! :TabLineFill {:fg (. colors :fg) :bg (. colors :bar)})
-  (highlight! :TabLineSel {:fg (. colors :fg) :bg (. colors :grey2)})
+  (highlight! :TabLineSel {:fg (. colors :fg) :bg (. colors :dgrey)})
   (highlight! :LineNr {:fg (. colors :grey)})
   (highlight! :NvimInternalError {:fg (. colors :red)})
   (highlight! :VertSplit {:fg (. colors :grey2)}))
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index 61dd2d8..a5be0d4 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -4,8 +4,7 @@
 (pack! :rktjmp/hotpot.nvim)
 (pack! :lewis6991/impatient.nvim)
 
-(pack! :metalelf0/jellybeans-nvim {:config "require('nvrc.colors').apply('jellybeans-nvim')"
-                                   :requires [(pack :rktjmp/lush.nvim)]})
+(pack! :sainnhe/gruvbox-material {:config "require('nvrc.colors').apply('gruvbox-material')"})
 (pack! :nvim-treesitter/nvim-treesitter {:req :treesitter
                                          :requires [(pack :p00f/nvim-ts-rainbow {:after :nvim-treesitter})
                                                     (pack :nvim-treesitter/nvim-treesitter-refactor {:after :nvim-treesitter})
diff --git a/fnl/nvrc/packs/treesitter.fnl b/fnl/nvrc/packs/treesitter.fnl
index 5ffd1fa..caa3648 100644
--- a/fnl/nvrc/packs/treesitter.fnl
+++ b/fnl/nvrc/packs/treesitter.fnl
@@ -8,10 +8,10 @@
                   :extended_mode true
                   :max_file_lines 2000
                   :disable [:c :cpp]
-                  :colors [(. colors :skyblue)
+                  :colors [(. colors :green)
+                           (. colors :skyblue)
                            (. colors :blue)
-                           (. colors :violet)
-                           (. colors :magenta)]}
+                           (. colors :violet)]}
         :incremental_selection {:enable true
                                 :keymaps {:init_selection :gnn
                                           :node_incremental :grn