This commit is contained in:
elkowar 2021-04-30 16:41:57 +02:00
parent c7566e0f7d
commit af044d5adf
2 changed files with 26 additions and 16 deletions

View file

@ -112,20 +112,28 @@
:scroll_down "<C-d>"}}) :scroll_down "<C-d>"}})
(utils.highlight "LspFloatWinNormal" {:bg colors.dark0_hard}) (utils.highlight [ "LspFloatWinNormal" ] {:bg colors.dark0_hard})
(utils.highlight "LspFloatWinBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) (utils.highlight [ "LspFloatWinBorder"
(utils.highlight "LspSagaHoverBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) "LspSagaHoverBorder"
(utils.highlight "LspSagaRenameBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) "LspSagaRenameBorder"
(utils.highlight "LspSagaSignatureHelpBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) "LspSagaSignatureHelpBorder"
(utils.highlight "LspSagaCodeActionBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) "LspSagaCodeActionBorder"
(utils.highlight "LspSagaDefPreviewBorder" {:bg colors.dark0_hard :fg colors.dark0_hard}) "LspSagaDefPreviewBorder"
"LspSagaDiagnosticBorder"]
{ :bg colors.dark0_hard :fg colors.dark0_hard})
(utils.highlight "LspSagaCodeActionTitle" {:fg colors.bright_aqua}) (utils.highlight [ "LspSagaDiagnosticTruncateLine"
(utils.highlight "LspSagaBorderTitle" {:fg colors.bright_aqua}) "LspSagaDocTruncateLine"
(utils.highlight "LspSagaCodeActionContent" {:fg colors.bright_aqua}) "LspSagaShTruncateLine"]
(utils.highlight "LspSagaFinderSelection" {:fg colors.bright_aqua}) { :bg "NONE" :fg colors.dark0})
(utils.highlight "LspSagaDiagnosticHeader" {:fg colors.bright_aqua})
(utils.highlight "TargetWord" {:fg colors.bright_aqua}) (utils.highlight [ "TargetWord"
"LspSagaCodeActionTitle"
"LspSagaBorderTitle"
"LspSagaCodeActionContent"
"LspSagaFinderSelection"
"LspSagaDiagnosticHeader"]
{ :fg colors.bright_aqua})
; >>>>> ; >>>>>

View file

@ -74,10 +74,12 @@
:gray "#928374"}) :gray "#928374"})
(defn highlight [group colset] (defn highlight [group-arg colset]
(let [default { :fg "NONE" :bg "NONE" :gui "NONE"} (let [default { :fg "NONE" :bg "NONE" :gui "NONE"}
opts (a.merge default colset)] opts (a.merge default colset)
(nvim.command (.. "hi! "group" guifg='"opts.fg"' guibg='"opts.bg"' gui='"opts.gui"'")))) hl-groups (if (a.string? group-arg) [group-arg] group-arg)]
(each [_ group (ipairs hl-groups)]
(nvim.command (.. "hi! "group" guifg='"opts.fg"' guibg='"opts.bg"' gui='"opts.gui"'")))))
(defn comp [f g] (defn comp [f g]