about summary refs log tree commit diff
path: root/fnl/nvrc/colors.fnl
blob: 1cba72cc0b9bb9a4c14abafdb75282a8affbbbde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(import-macros {: setv!} :nvrc.macro.set)

(local colors {:bg "#292929"
               :light_bg "#383838"
               :graphite "#7d7d7d"
               :red "#ff668c"
               :yellow "#fac661"
               :green "#a8d2a9"
               :accent "#c2d6f0"})


(lambda colors.apply [colorscheme]
  (import-macros {: highlight!} :nvrc.macro.color)

  (vim.cmd (.. "colorscheme " colorscheme))

  ; Statusline
  (highlight! :StatusLineNC {:fg (. colors :graphite) :bg (. colors :bg) :underline true})
  (highlight! :StatusLineAccent {:fg (. colors :accent) :bg (. colors :light_bg)})
  (highlight! :StatusLineAccentBold {:fg (. colors :accent) :bg (. colors :light_bg) :bold true})

  ; LSP
  (highlight! :DiagnosticSignError {:fg (. colors :red) :bg (. colors :light_bg)})
  (highlight! :DiagnosticSignWarn {:fg (. colors :yellow) :bg (. colors :light_bg)})
  (highlight! :DiagnosticSignInfo {:fg (. colors :green) :bg (. colors :light_bg)})
  (highlight! :DiagnosticSignHint {:fg (. colors :graphite) :bg (. colors :light_bg)}))

colors