about summary refs log tree commit diff
path: root/fnl/nvrc/colors.fnl
blob: 898ed9252702232931548eeedd77d6b3361fc9f7 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
(import-macros {: setv!} :nvrc.macro.set)

(local colors {:bg "#151515"
               :light_bg "#303030"
               :graphite "#888888"
               :fg "#cbc0ab"
               :red "#cf6a4c"
               :yellow "#dcb66a"
               :green "#99ad6a"
               :skyblue "#8fbfdc"
               :accent "#dfa358"
               :selection "#f0a0c0"})


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

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

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

  ; LSP
  (highlight! :DiagnosticError {:fg (. colors :red)})
  (highlight! :DiagnosticWarn {:fg (. colors :yellow)})
  (highlight! :DiagnosticInfo {:fg (. colors :green)})
  (highlight! :DiagnosticHint {:fg (. colors :graphite)})

  (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)})

  (highlight! :LeapMatch {:fg (. colors :selection) :underline true :bold true :nocombine true})
  (highlight! :LeapLabelPrimary {:fg :black :bg (. colors :selection) :bold true})
  (highlight! :LeapLabelSecondary {:fg :black :bg (. colors :accent) :bold true}))

colors