about summary refs log tree commit diff
path: root/fnl/nvrc/colors.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-16 08:54:25 +0900
committersefidel <contact@sefidel.net>2022-02-16 17:16:41 +0900
commit2fb74089d3515077395299bce9df32e9e989a8ac (patch)
treeb7e8064cff1c687a11788ab96f96cbcf6d3c88fa /fnl/nvrc/colors.fnl
parent6b4cacae7b9c435666c2ec399261f6504336bdce (diff)
downloadnvimrc-2fb74089d3515077395299bce9df32e9e989a8ac.tar.gz
nvimrc-2fb74089d3515077395299bce9df32e9e989a8ac.zip
rel: v0.1
- Disable lazy-loading plugins
- Add more useful plugins
- Fix bar from loading slowly
- Add support for neomutt
- Change keybinds
- Add Editorconfig
Diffstat (limited to 'fnl/nvrc/colors.fnl')
-rw-r--r--fnl/nvrc/colors.fnl42
1 files changed, 18 insertions, 24 deletions
diff --git a/fnl/nvrc/colors.fnl b/fnl/nvrc/colors.fnl
index 854b79f..7750814 100644
--- a/fnl/nvrc/colors.fnl
+++ b/fnl/nvrc/colors.fnl
@@ -5,8 +5,10 @@
                :black "#181818"
                :black2 "#101010"
                :bblack "#252525"
-               :grey "#888888"
+               :dgrey "#333333"
+               :mgrey "#444444"
                :grey2 "#666666"
+               :grey "#888888"
                :bgrey "#999999"
                :red "#cf6a4c"
                :orange "#fabb6e"
@@ -16,12 +18,12 @@
                :skyblue "#8fbfdc"
                :blue "#8197bf"
                :violet "#c6b6ee"
-               :magenta "#f0a0c0"
-               :sign "#333333"})
+               :magenta "#f0a0c0"})
 
-(fn colors.apply []
+
+(lambda colors.apply [colorscheme]
   (local {: highlight} (require :nvrc.macro.color))
-  (vim.cmd "colorscheme jellybeans")
+  (vim.cmd (.. "colorscheme " colorscheme))
 
   ; Buffer
   (highlight :EndOfBuffer {:fg (. colors :bg)})
@@ -31,7 +33,7 @@
   ; Pmenu
   (highlight :Pmenu {:bg (. colors :bblack)})
   (highlight :PmenuSbar {:bg (. colors :bblack)})
-  (highlight :PmenuSel {:fg (. colors :orange) :bg (. colors :sign)})
+  (highlight :PmenuSel {:fg (. colors :orange) :bg (. colors :dgrey)})
   (highlight :PmenuThumb {:bg (. colors :skyblue)})
   (highlight :CmpItemAbbr {:fg (. colors :fg)})
   (highlight :CmpItemAbbrMatch {:fg (. colors :fg)})
@@ -41,16 +43,19 @@
   ; Misc
   (highlight :StatusLine {:bg (. colors :black)})
   (highlight :StatusLineNC {:fg (. colors :grey) :bg (. colors :black) :underline true})
+  (highlight :TabLine {:fg (. colors :fg) :bg (. colors :mgrey)})
+  (highlight :TabLineFill {:fg (. colors :fg) :bg (. colors :bg)})
+  (highlight :TabLineSel {:fg (. colors :fg) :bg (. colors :grey2)})
   (highlight :LineNr {:fg (. colors :grey)})
   (highlight :NvimInternalError {:fg (. colors :red)})
   (highlight :VertSplit {:fg (. colors :grey2)})
 
-  ; Gitsigns
-  (highlight :DiffAdd {:fg (. colors :green) :bg (. colors :sign)})
-  (highlight :DiffChange {:fg (. colors :yellow) :bg (. colors :sign)})
-  (highlight :DiffChangeDelete {:fg (. colors :red) :bg (. colors :sign)})
-  (highlight :DiffModified {:fg (. colors :red) :bg (. colors :sign)})
-  (highlight :DiffDelete {:fg (. colors :red) :bg (. colors :sign)})
+  ; Gitdgreys
+  (highlight :DiffAdd {:fg (. colors :green) :bg (. colors :dgrey)})
+  (highlight :DiffChange {:fg (. colors :yellow) :bg (. colors :dgrey)})
+  (highlight :DiffChangeDelete {:fg (. colors :red) :bg (. colors :dgrey)})
+  (highlight :DiffModified {:fg (. colors :red) :bg (. colors :dgrey)})
+  (highlight :DiffDelete {:fg (. colors :red) :bg (. colors :dgrey)})
 
   ; Nvimtree
   (highlight :NvimTreeNormal {:bg (. colors :black)})
@@ -65,17 +70,6 @@
   (highlight :NvimTreeFolderIcon {:fg (. colors :skyblue)})
   (highlight :NvimTreeFolderName {:fg (. colors :skyblue)})
   (highlight :NvimTreeOpenedFolderName {:fg (. colors :magenta)})
-  (highlight :NvimTreeEndOfBuffer {:fg (. colors :black2)})
-
-  ; Telescope
-  (highlight :TelescopeBorder {:fg (. colors :fg)})
-  (highlight :TelescopePromptBorder {:fg (. colors :fg)})
-  (highlight :TelescopePromptNormal {:fg (. colors :fg)})
-  (highlight :TelescopePromptPrefix {:fg (. colors :red)})
-  (highlight :TelescopeNormal {:bg :NONE})
-  (highlight :TelescopePreviewTitle {:fg (. colors :nvimbg) :bg (. colors :green)})
-  (highlight :TelescopePromptTitle {:fg (. colors :nvimbg) :bg (. colors :red)})
-  (highlight :TelescopeResultsTitle {:fg (. colors :nvimbg) :bg (. colors :skyblue)})
-  (highlight :TelescopeSelection {:link :Search}))
+  (highlight :NvimTreeEndOfBuffer {:fg (. colors :black2)}))
 
 colors