1 +local palette
= require'bugabinga.nugu.palette' 2 +local lush
= require 'lush' 3 +local hsl
= lush.hsluv
5 +local flux = function(color, number)
6 + if vim.opt.background:get()
== 'dark' then 7 + return color.li(
-number)
9 + return color.li(number)
13 +local debug = hsl ( palette.debug )
14 +local error = hsl ( palette.error )
15 +local info
= hsl ( palette.info )
16 +local warning
= hsl ( palette.warning )
18 +local content_normal
= hsl ( palette.content_normal )
19 +local content_backdrop
= hsl ( palette.content_backdrop )
20 +local content_accent
= hsl ( palette.content_accent )
21 +local content_minor
= hsl ( palette.content_minor )
22 +local content_focus
= hsl ( palette.content_focus )
23 +local content_unfocus
= hsl ( palette.content_unfocus )
24 +local content_important_global
= hsl ( palette.content_important_global )
25 +local content_important_local
= hsl ( palette.content_important_local )
27 +local ui_normal
= hsl ( palette.ui_normal )
28 +local ui_backdrop
= hsl ( palette.ui_backdrop )
29 +local ui_accent
= hsl ( palette.ui_accent )
30 +local ui_minor
= hsl ( palette.ui_minor )
31 +local ui_focus
= hsl ( palette.ui_focus )
32 +local ui_unfocus
= hsl ( palette.ui_unfocus )
33 +local ui_important_global
= hsl ( palette.ui_important_global )
34 +local ui_important_local
= hsl ( palette.ui_important_local )
36 +local nugu
= lush(
function(injects)
37 + local sym
= injects.sym
39 + Debug {
fg =
debug.readable(),
bg =
debug,
gui =
'bold' },
41 + Normal {
fg = content_normal,
bg = content_backdrop },
42 + NotifyBackground {
bg = ui_backdrop },
43 + Comment {
fg = content_important_global,
gui =
'bold italic' },
44 + LineNr {
fg = content_unfocus,
bg = content_backdrop },
45 + CursorLineNr {
fg = ui_focus,
bg = ui_backdrop },
46 + Search {
fg = content_important_global.readable(),
bg = content_important_global },
47 + IncSearch {
fg = content_important_local.readable(),
bg = content_important_local },
49 + NormalFloat {
fg = ui_normal,
bg = ui_backdrop },
50 + FloatBorder {
fg = ui_accent,
bg = NormalFloat.bg },
51 + ColorColumn {
fg = ui_important_global,
bg = content_backdrop },
52 + Conceal {
fg = content_normal,
bg = ui_unfocus,
gui =
'italic' },
53 + Cursor {
bg = ui_accent },
54 + lCursor {
bg = ui_accent },
55 + CursorIM {
bg = ui_accent },
56 + Directory {
fg = Normal.fg },
57 + DiffAdd {
fg = content_focus },
58 + DiffDelete {
fg = content_focus,
gui =
"strikethrough" },
59 + DiffChange {
fg = content_important_global },
60 + DiffText {
fg = content_important_local.readable(),
bg = content_important_local },
61 + EndOfBuffer { LineNr },
62 + TermCursor { lCursor },
63 + TermCursorNC { Cursor },
64 + ErrorMsg {
fg =
error.readable(),
bg =
error },
65 + VertSplit {
fg = ui_important_global,
bg = content_backdrop },
67 + FoldColumn { Conceal },
68 + SignColumn { LineNr },
69 + ModeMsg {
gui =
'bold' },
71 + MsgSeparator {
fg = ui_accent },
73 + NonText {
fg = ui_unfocus },
75 + Pmenu { NormalFloat },
76 + PmenuSel {
fg = ui_focus.readable(),
sp = ui_focus.readable(),
bg = ui_focus,
gui =
'underline' },
77 + PmenuSbar {
bg = ui_unfocus },
78 + PmenuThumb {
bg = ui_minor },
79 + Question {
fg = ui_important_global,
gui =
'bold' },
80 + QuickFixLine { PmenuSel },
81 + SpecialKey {
fg =
error,
bg = content_unfocus,
gui =
'bold' },
82 + SpellBad {
fg =
error,
gui =
'undercurl' },
83 + SpellCap { SpellBad },
84 + SpellLocal { SpellBad },
85 + SpellRare { SpellBad },
86 + StatusLine {
fg = ui_normal,
bg = ui_backdrop },
87 + StatusLineNC {
fg = ui_normal,
bg = ui_unfocus },
88 + Winbar { StatusLine },
89 + WinbarNC { StatusLineNC },
90 + IndentBlanklineContextChar{
fg = content_accent,
gui =
"nocombine" },
91 + IndentBlanklineContextStart {
sp = IndentBlanklineContextChar.fg,
gui =
"underline" },
92 + Title {
fg = content_important_global,
sp = content_important_global,
gui =
'bold underline' },
93 + TabLine { StatusLine },
94 + TabLineFill {
bg = TabLine.bg },
95 + TabLineSel {
fg = ui_accent.readable(),
bg = ui_accent,
gui =
'underline bold' },
96 + Visual {
fg = content_focus.readable(),
bg = content_focus },
97 + VisualNOS {
fg = Visual.fg,
bg = flux(Visual.bg,
-42) },
98 + WarningMsg {
fg = warning,
gui =
'bold' },
99 + WhiteSpace {
fg = ui_unfocus },
100 + WildMenu {
fg = ui_accent,
gui =
'bold' },
102 + String {
fg = content_important_local,
gui =
'italic' },
103 + Constant { String },
104 + Character { String },
106 + Boolean { String },
109 + Identifier { Normal,
gui =
'bold' },
110 + Function { Normal,
gui =
'bold' },
112 + Statement {
fg = content_minor },
113 + Conditional { Statement },
114 + Repeat { Statement },
115 + Label { Statement },
116 + Operator { Statement },
117 + Keyword { Statement },
118 + Exception { Statement },
120 + PreProc {
fg = content_important_global,
bg = content_unfocus,
gui =
'bold' },
121 + Include { PreProc },
122 + Define { PreProc },
124 + PreCondit { PreProc },
126 + Type { Statement },
127 + StorageClass { Statement },
128 + Structure { Statement },
129 + Typedef { Statement },
131 + Special {
fg = content_accent,
gui =
'italic bold' },
132 + SpecialChar { Special },
134 + Delimiter { Special },
135 + SpecialComment { Special },
137 + Underlined {
sp = content_normal,
gui =
'underline' },
138 + Bold {
gui =
'bold' },
139 + Italic {
gui =
'italic' },
142 + Ignore {
fg = Normal.bg,
bg = Normal.bg },
144 + Error {
fg =
error },
146 + Todo {
fg = content_important_global,
sp = content_important_global,
gui =
'bold underdouble' },
148 + DiagnosticUnnecessary {
fg = ui_focus },
149 + DiagnosticDeprecated {
fg = ui_important_global,
sp = ui_important_global,
gui =
'strikethrough' },
151 + DiagnosticError {
fg =
error },
152 + DiagnosticWarn {
fg = warning },
153 + DiagnosticInfo {
fg = info },
154 + DiagnosticHint {
fg = ui_important_local },
155 + DiagnosticOk {
fg = ui_minor },
157 + DiagnosticVirtualTextError { DiagnosticError },
158 + DiagnosticVirtualTextWarn { DiagnosticWarn },
159 + DiagnosticVirtualTextInfo { DiagnosticInfo },
160 + DiagnosticVirtualTextHint { DiagnosticHint },
161 + DiagnosticVirtualOkHint { DiagnosticOk },
163 + DiagnosticUnderlineError {
fg = DiagnosticError.fg,
sp = DiagnosticError.fg,
gui =
'underdouble' },
164 + DiagnosticUnderlineWarn {
fg = DiagnosticWarn.fg,
sp = DiagnosticWarn.fg,
gui =
'underline' },
165 + DiagnosticUnderlineInfo {
fg = DiagnosticInfo.fg,
sp = DiagnosticInfo.fg,
gui =
'underdashed' },
166 + DiagnosticUnderlineHint {
fg = DiagnosticHint.fg,
sp = DiagnosticHint.fg,
gui =
'italic underdotted' },
167 + DiagnosticUnderlineOk {
fg = DiagnosticOk.fg,
gui =
'italic' },
169 + DiagnosticSignError { DiagnosticError },
170 + DiagnosticSignWarn { DiagnosticWarn },
171 + DiagnosticSignInfo { DiagnosticInfo },
172 + DiagnosticSignHint { DiagnosticHint },
173 + DiagnosticSignOk { DiagnosticOk },
175 + LspReferenceText { Search },
176 + LspReferenceRead { Search },
177 + LspReferenceWrite { IncSearch },
180 + Hlargs {
fg = ui_important_local,
gui =
'bold underdotted' },
246 + LazyButton { NormalFloat,
sp = NormalFloat.fg,
gui =
'bold' },
247 + LazyButtonActive {
fg = ui_important_local.readable(),
sp = NormalFloat.fg,
bg = ui_important_local,
gui = LazyButton.gui },
248 + LazyComment { Keyword },
249 + LazyCommit { LazyComment },
250 + LazyCommitIssue { LazyComment },
251 + LazyCommitScope { LazyComment,
gui =
'italic' },
252 + LazyCommitType { LazyCommitScope },
253 + LazyDimmed {
fg = NormalFloat.fg },
254 + LazyDir { N.fgormalFloat },
258 + LazyNoCond { WarningMsg },
259 + LazyNormal { NormalFloat },
260 + LazyProgressDone {
fg = Search.bg,
bg = Cursor.bg,
gui =
'bold' },
261 + LazyProgressTodo {
fg = LazyProgressDone.bg,
bg = LazyProgressDone.fg,
gui = LazyProgressDone.gui },
262 + LazyProp { LazyComment },
263 + LazyReasonCmd { N.fgormalFloat },
264 + LazyReasonEvent { N.fgormalFloat },
265 + LazyReasonFt { N.fgormalFloat },
266 + LazyReasonImport { N.fgormalFloat },
267 + LazyReasonKeys { N.fgormalFloat },
268 + LazyReasonPlugin { N.fgormalFloat },
269 + LazyReasonRuntime { N.fgormalFloat },
270 + LazyReasonSource { N.fgormalFloat },
271 + LazyReasonStart { N.fgormalFloat },
272 + LazySpecial {
fg = ColorColumn.fg },
273 + LazyTaskError { ErrorMsg },
274 + LazyTaskOutput { Debug },
275 + LazyUrl {
sp = NormalFloat.fg,
gui =
'italic underline' },
276 + LazyValue {
gui =
'italic' },
279 + NoiceCmdline {
fg = ui_focus,
bg = ui_backdrop },
281 + NoiceCmdlineIcon {
fg = ui_accent,
bg = NoiceCmdline.bg,
gui =
'bold' },
282 + NoiceCmdlineIconCalculator { NoiceCmdlineIcon },
283 + NoiceCmdlineIconCmdline {
fg = ui_accent,
bg = NoiceCmdlineIcon.bg,
gui = NoiceCmdlineIcon.gui },
284 + NoiceCmdlineIconFilter { NoiceCmdlineIcon },
285 + NoiceCmdlineIconHelp { NoiceCmdlineIcon },
286 + NoiceCmdlineIconIncRename { NoiceCmdlineIcon },
287 + NoiceCmdlineIconInput { NoiceCmdlineIcon },
288 + NoiceCmdlineIconLua { NoiceCmdlineIcon },
289 + NoiceCmdlineIconSearch { NoiceCmdlineIcon },
291 + NoiceCmdlinePopup { NormalFloat },
292 + NoiceCmdlinePopupBorder { NoiceCmdlinePopup },
293 + NoiceCmdlinePopupBorderCalculator { NoiceCmdlinePopup },
294 + NoiceCmdlinePopupBorderCmdline { NoiceCmdlinePopup },
295 + NoiceCmdlinePopupBorderFilter { NoiceCmdlinePopup },
296 + NoiceCmdlinePopupBorderHelp { NoiceCmdlinePopup },
297 + NoiceCmdlinePopupBorderIncRename { NoiceCmdlinePopup },
298 + NoiceCmdlinePopupBorderInput { NoiceCmdlinePopup },
299 + NoiceCmdlinePopupBorderLua { NoiceCmdlinePopup },
300 + NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopup },
301 + NoiceCmdlinePopupTitle { NoiceCmdlinePopup },
303 + NoiceCmdlinePrompt {
fg = ui_important_global,
bg = ui_backdrop,
gui =
'bold' },
305 + NoiceCompletionItemKindDefault {
fg = ui_normal },
306 + NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault },
307 + NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault },
308 + NoiceCompletionItemKindConstant { NoiceCompletionItemKindDefault },
309 + NoiceCompletionItemKindConstructor { NoiceCompletionItemKindDefault },
310 + NoiceCompletionItemKindEnum { NoiceCompletionItemKindDefault },
311 + NoiceCompletionItemKindEnumMember { NoiceCompletionItemKindDefault },
312 + NoiceCompletionItemKindField { NoiceCompletionItemKindDefault },
313 + NoiceCompletionItemKindFile { NoiceCompletionItemKindDefault },
314 + NoiceCompletionItemKindFolder { NoiceCompletionItemKindDefault },
315 + NoiceCompletionItemKindFunction { NoiceCompletionItemKindDefault },
316 + NoiceCompletionItemKindInterface { NoiceCompletionItemKindDefault },
317 + NoiceCompletionItemKindKeyword { NoiceCompletionItemKindDefault },
318 + NoiceCompletionItemKindMethod { NoiceCompletionItemKindDefault },
319 + NoiceCompletionItemKindModule { NoiceCompletionItemKindDefault },
320 + NoiceCompletionItemKindProperty { NoiceCompletionItemKindDefault },
321 + NoiceCompletionItemKindSnippet { NoiceCompletionItemKindDefault },
322 + NoiceCompletionItemKindStruct { NoiceCompletionItemKindDefault },
323 + NoiceCompletionItemKindText { NoiceCompletionItemKindDefault },
324 + NoiceCompletionItemKindUnit { NoiceCompletionItemKindDefault },
325 + NoiceCompletionItemKindValue { NoiceCompletionItemKindDefault },
326 + NoiceCompletionItemKindVariable { NoiceCompletionItemKindDefault },
327 + NoiceCompletionItemMenu { NoiceCompletionItemKindDefault },
328 + NoiceCompletionItemWord { NoiceCompletionItemKindDefault },
330 + NoiceConfirm { NormalFloat },
331 + NoiceConfirmBorder {
fg = ui_accent,
bg = NormalFloat.bg },
332 + NoiceFormatConfirm { LazyButton },
333 + NoiceFormatConfirmDefault { LazyButtonActive },
335 + NoiceCursor { Cursor },
337 + NoiceFormatDate { NonText },
338 + NoiceFormatEvent { NonText },
339 + NoiceFormatKind { NonText },
340 + NoiceFormatLevelDebug {
fg = Debug.bg },
341 + NoiceFormatLevelError { DiagnosticError },
342 + NoiceFormatLevelInfo { DiagnosticInfo },
343 + NoiceFormatLevelOff {
fg = content_minor },
344 + NoiceFormatLevelTrace { DiagnosticHint },
345 + NoiceFormatLevelWarn { DiagnosticWarn },
346 + NoiceFormatProgressDone { LazyProgressDone },
347 + NoiceFormatProgressTodo { LazyProgressTodo },
348 + NoiceFormatTitle { Title },
350 + NoiceLspProgressClient { Debug },
351 + NoiceLspProgressSpinner { Debug },
352 + NoiceLspProgressTitle { Debug },
354 + NoiceMini { DiagnosticInfo },
356 + NoicePopup { NormalFloat },
357 + NoicePopupBorder {
fg = ui_accent,
bg = NormalFloat.bg },
359 + NoicePopupmenu { Pmenu },
360 + NoicePopupmenuBorder {
fg = ui_accent ,
bg = NormalFloat.bg },
361 + NoicePopupmenuMatch { Bold },
362 + NoicePopupmenuSelected { PmenuSel },
364 + NoiceScrollbar { PmenuSbar },
365 + NoiceScrollbarThumb { PmenuThumb },
367 + NoiceSplit { NormalFloat },
368 + NoiceSplitBorder { NoiceConfirmBorder ,
bg = NormalFloat.bg},
370 + NoiceVirtualText {
fg = ui_important_local,
bg = ui_backdrop,
gui =
'bold' },
373 + NotifyERRORBorder { DiagnosticError ,
bg = NormalFloat.bg },
374 + NotifyWARNBorder { DiagnosticWarn,
bg = NormalFloat.bg },
375 + NotifyINFOBorder { DiagnosticInfo,
bg = NormalFloat.bg },
376 + NotifyDEBUGBorder {
fg = Debug.bg,
bg = NormalFloat.bg },
377 + NotifyTRACEBorder { DiagnosticHint,
bg = NormalFloat.bg },
379 + NotifyERRORIcon { NotifyERRORBorder },
380 + NotifyWARNIcon { NotifyWARNBorder },
381 + NotifyINFOIcon { NotifyINFOBorder },
382 + NotifyDEBUGIcon { NotifyDEBUGBorder },
383 + NotifyTRACEIcon { NotifyTRACEBorder },
385 + NotifyERRORTitle { NotifyERRORBorder },
386 + NotifyWARNTitle { NotifyWARNBorder },
387 + NotifyINFOTitle { NotifyINFOBorder },
388 + NotifyDEBUGTitle { NotifyDEBUGBorder },
389 + NotifyTRACETitle { NotifyTRACEBorder },
391 + NotifyERRORBody { NormalFloat },
392 + NotifyWARNBody { NormalFloat },
393 + NotifyINFOBody { NormalFloat },
394 + NotifyDEBUGBody { NormalFloat },
395 + NotifyTRACEBody { NormalFloat },
398 + TelescopeSelectionCaret { PmenuSel },
399 + TelescopeSelection { PmenuSel },
400 + TelescopeMultiSelection {
fg = PmenuSel.fg,
bg = ui_important_local },