(import-macros {: setv!} :nvrc.macro.set) (local colors {:bg "#151515" :light_bg "#333333" :graphite "#888888" :fg "#e8e8d3" :red "#cf6a4c" :yellow "#fad07a" :green "#99ad6a" :accent "#8fbfdc"}) (lambda colors.apply [colorscheme] (import-macros {: highlight!} :nvrc.macro.color) (vim.cmd (.. "colorscheme " colorscheme)) ; Statusline (highlight! :StatusLine {:fg (. colors :fg) :bg (. colors :light_bg)}) (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! :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)})) colors