1 -local palette
= require'bugabinga.nugu.palette' 1 +local palette
= require 'bugabinga.nugu.palette' 2 2 local lush
= require 'lush' 3 3 local hsl
= lush.hsluv
5 -local flux = function(color, number)
5 +local flux = function ( color, number )
6 6 if vim.opt.background:get()
== 'dark' then 7 - return color.li(
-number)
7 + return color.li(
-number )
9 - 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 )
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 )
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 )
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)
36 +local nugu
= lush(
function ( injects )
37 37 local sym
= injects.sym
39 39 Debug {
fg =
debug.readable(),
bg =
debug,
gui =
'bold' },
45 45 CursorLineNr {
fg = ui_focus,
bg = ui_backdrop },
46 46 Search {
fg = content_important_global.readable(),
bg = content_important_global },
47 47 IncSearch {
fg = content_important_local.readable(),
bg = content_important_local },
49 - NormalFloat {
fg = ui_normal,
bg = ui_backdrop },
48 + NormalFloat {
fg = ui_normal,
bg = ui_backdrop },
50 49 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 { Normal },
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 {
bg = ui_backdrop },
69 - ModeMsg {
gui =
'bold' },
71 - MsgSeparator {
fg = ui_accent },
73 - NonText {
fg = ui_unfocus },
75 - Pmenu { NormalFloat },
50 + ColorColumn {
fg = ui_important_global,
bg = content_backdrop },
51 + Conceal {
fg = content_normal,
bg = ui_unfocus,
gui =
'italic' },
52 + Cursor {
bg = ui_accent },
53 + lCursor {
bg = ui_accent },
54 + CursorIM {
bg = ui_accent },
55 + Directory {
fg = Normal.fg },
56 + DiffAdd {
fg = content_focus },
57 + DiffDelete {
fg = content_focus,
gui =
'strikethrough' },
58 + DiffChange {
fg = content_important_global },
59 + DiffText {
fg = content_important_local.readable(),
bg = content_important_local },
60 + EndOfBuffer { Normal },
61 + TermCursor { lCursor },
62 + TermCursorNC { Cursor },
63 + ErrorMsg {
fg =
error.readable(),
bg =
error },
64 + VertSplit {
fg = ui_important_global,
bg = content_backdrop },
66 + FoldColumn { Conceal },
67 + SignColumn {
bg = ui_backdrop },
68 + ModeMsg {
gui =
'bold' },
70 + MsgSeparator {
fg = ui_accent },
72 + NonText {
fg = ui_unfocus },
74 + Pmenu { NormalFloat },
76 75 PmenuSel {
fg = ui_focus,
sp = ui_focus.readable(),
bg = ui_unfocus,
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 },
76 + PmenuSbar {
bg = ui_unfocus },
77 + PmenuThumb {
bg = ui_minor },
78 + Question {
fg = ui_important_global,
gui =
'bold' },
79 + QuickFixLine { PmenuSel },
80 + SpecialKey {
fg =
error,
bg = content_unfocus,
gui =
'bold' },
81 + SpellBad {
fg =
error,
gui =
'undercurl' },
82 + SpellCap { SpellBad },
83 + SpellLocal { SpellBad },
84 + SpellRare { SpellBad },
85 + StatusLine {
fg = ui_normal,
bg = ui_backdrop },
86 + StatusLineNC {
fg = ui_normal,
bg = ui_unfocus },
88 87 Winbar { StatusLine },
89 88 WinbarNC { StatusLineNC },
90 - IndentBlanklineContextChar{
fg = content_accent,
gui =
"nocombine" },
91 - IndentBlanklineContextStart {
sp = IndentBlanklineContextChar.fg,
gui =
"underline" },
89 + IndentBlanklineContextChar {
fg = content_accent,
gui =
'nocombine' },
90 + IndentBlanklineContextStart {
sp = IndentBlanklineContextChar.fg,
gui =
'underline' },
92 91 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' },
92 + TabLine { StatusLine },
93 + TabLineFill {
bg = TabLine.bg },
94 + TabLineSel {
fg = ui_accent.readable(),
bg = ui_accent,
gui =
'underline bold' },
95 + Visual {
fg = content_focus.readable(),
bg = content_focus },
96 + VisualNOS {
fg = Visual.fg,
bg = flux( Visual.bg,
-42 ) },
97 + WarningMsg {
fg = warning,
gui =
'bold' },
98 + WhiteSpace {
fg = ui_unfocus },
99 + WildMenu {
fg = ui_accent,
gui =
'bold' },
102 - String {
fg = content_important_local,
gui =
'italic' },
103 - Constant { String },
104 - Character { String },
106 - Boolean { String },
101 + String {
fg = content_important_local,
gui =
'italic' },
102 + Constant { String },
103 + Character { String },
105 + Boolean { String },
109 - Identifier { Normal },
108 + Identifier { Normal },
110 109 MutableVariable { Debug },
111 - Function { Normal },
110 + Function { Normal },
113 - Statement {
fg = content_minor },
114 - Conditional { Statement },
115 - Repeat { Statement },
116 - Label { Statement },
117 - Operator { Statement },
118 - Keyword { Statement },
119 - Exception { Statement },
112 + Statement {
fg = content_minor },
113 + Conditional { Statement },
114 + Repeat { Statement },
115 + Label { Statement },
116 + Operator { Statement },
117 + Keyword { Statement },
118 + Exception { Statement },
121 120 PreProc {
fg = content_important_global,
bg = content_unfocus,
gui =
'bold' },
122 - Include { PreProc },
123 - Define { PreProc },
125 - PreCondit { PreProc },
121 + Include { PreProc },
122 + Define { PreProc },
124 + PreCondit { PreProc },
127 - Type { Statement },
128 - StorageClass { Statement },
129 - Structure { Statement },
130 - Typedef { Statement },
126 + Type { Statement },
127 + StorageClass { Statement },
128 + Structure { Statement },
129 + Typedef { Statement },
132 - Special {
fg = content_normal,
gui =
'italic bold' },
133 - SpecialChar { Special },
135 - Delimiter {
fg = content_minor },
136 - SpecialComment { Special },
131 + Special {
fg = content_normal,
gui =
'italic bold' },
132 + SpecialChar { Special },
134 + Delimiter {
fg = content_minor },
135 + SpecialComment { Special },
138 - Underlined {
sp = content_normal,
gui =
'underline' },
137 + Underlined {
sp = content_normal,
gui =
'underline' },
139 138 Bold {
gui =
'bold' },
140 139 Italic {
gui =
'italic' },
143 - Ignore {
fg = Normal.bg,
bg = Normal.bg },
142 + Ignore {
fg = Normal.bg,
bg = Normal.bg },
145 - Error {
fg =
error },
144 + Error {
fg =
error },
147 146 Todo {
fg = content_important_global,
sp = content_important_global,
gui =
'bold underdouble' },
149 147 DiagnosticUnnecessary {
fg = ui_focus },
150 148 DiagnosticDeprecated {
fg = ui_important_global,
sp = ui_important_global,
gui =
'strikethrough' },
152 149 DiagnosticError {
fg =
error },
153 150 DiagnosticWarn {
fg = warning },
154 151 DiagnosticInfo {
fg = info },
160 157 DiagnosticVirtualTextInfo { DiagnosticInfo },
161 158 DiagnosticVirtualTextHint { DiagnosticHint },
162 159 DiagnosticVirtualOkHint { DiagnosticOk },
164 160 DiagnosticUnderlineError {
fg = DiagnosticError.fg,
sp = DiagnosticError.fg,
gui =
'underdouble' },
165 161 DiagnosticUnderlineWarn {
fg = DiagnosticWarn.fg,
sp = DiagnosticWarn.fg,
gui =
'underline' },
166 162 DiagnosticUnderlineInfo {
fg = DiagnosticInfo.fg,
sp = DiagnosticInfo.fg,
gui =
'underdashed' },
177 173 LspReferenceRead { LspReferenceText },
178 174 LspReferenceWrite { LspReferenceText },
181 - Hlargs {
fg = ui_important_local,
gui =
'bold underdotted' },
177 + Hlargs {
fg = ui_important_local,
gui =
'bold underdotted' },
247 243 LazyButton { NormalFloat,
sp = NormalFloat.fg,
gui =
'bold' },
248 - LazyButtonActive {
fg = ui_important_local.readable(),
sp = NormalFloat.fg,
bg = ui_important_local,
gui = LazyButton.gui },
244 + LazyButtonActive {
fg = ui_important_local.readable(),
sp = NormalFloat.fg,
bg = ui_important_local,
gui = LazyButton
249 246 LazyComment { Keyword },
250 247 LazyCommit { LazyComment },
251 248 LazyCommitIssue { LazyComment },
280 277 NoiceCmdline {
fg = ui_focus,
bg = ui_backdrop },
282 278 NoiceCmdlineIcon {
fg = ui_accent,
bg = NoiceCmdline.bg,
gui =
'bold' },
283 279 NoiceCmdlineIconCalculator { NoiceCmdlineIcon },
284 280 NoiceCmdlineIconCmdline {
fg = ui_accent,
bg = NoiceCmdlineIcon.bg,
gui = NoiceCmdlineIcon.gui },
300 296 NoiceCmdlinePopupBorderLua { NoiceCmdlinePopup },
301 297 NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopup },
302 298 NoiceCmdlinePopupTitle { NoiceCmdlinePopup },
304 299 NoiceCmdlinePrompt {
fg = ui_important_global,
bg = ui_backdrop,
gui =
'bold' },
306 300 NoiceCompletionItemKindDefault {
fg = ui_normal },
307 301 NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault },
308 302 NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault },
358 352 NoicePopupBorder {
fg = ui_accent,
bg = NormalFloat.bg },
360 354 NoicePopupmenu { Pmenu },
361 - NoicePopupmenuBorder {
fg = ui_accent ,
bg = NormalFloat.bg },
355 + NoicePopupmenuBorder {
fg = ui_accent,
bg = NormalFloat.bg },
362 356 NoicePopupmenuMatch { Bold },
363 357 NoicePopupmenuSelected { PmenuSel },
366 360 NoiceScrollbarThumb { PmenuThumb },
368 362 NoiceSplit { NormalFloat },
369 - NoiceSplitBorder { NoiceConfirmBorder ,
bg = NormalFloat.bg},
363 + NoiceSplitBorder { NoiceConfirmBorder,
bg = NormalFloat.bg },
371 364 NoiceVirtualText {
fg = ui_important_local,
bg = ui_backdrop,
gui =
'bold' },
374 - NotifyERRORBorder { DiagnosticError ,
bg = NormalFloat.bg },
375 - NotifyWARNBorder { DiagnosticWarn,
bg = NormalFloat.bg },
367 + NotifyERRORBorder { DiagnosticError,
bg = NormalFloat.bg },
368 + NotifyWARNBorder { DiagnosticWarn,
bg = NormalFloat.bg },
376 369 NotifyINFOBorder { DiagnosticInfo,
bg = NormalFloat.bg },
377 - NotifyDEBUGBorder {
fg = Debug.bg,
bg = NormalFloat.bg },
378 - NotifyTRACEBorder { DiagnosticHint,
bg = NormalFloat.bg },
370 + NotifyDEBUGBorder {
fg = Debug.bg,
bg = NormalFloat.bg },
371 + NotifyTRACEBorder { DiagnosticHint,
bg = NormalFloat.bg },
380 373 NotifyERRORIcon { NotifyERRORBorder },
381 374 NotifyWARNIcon { NotifyWARNBorder },
395 388 NotifyDEBUGBody { NormalFloat },
396 389 NotifyTRACEBody { NormalFloat },
391 + TelescopeSelectionCaret { PmenuSel },
392 + TelescopeSelection { PmenuSel },
393 + TelescopeMultiSelection {
fg = PmenuSel.fg,
bg = ui_important_local },
399 - TelescopeSelectionCaret { PmenuSel },
400 - TelescopeSelection { PmenuSel },
401 - TelescopeMultiSelection {
fg = PmenuSel.fg,
bg = ui_important_local },
396 + FlashMatch { Search },
397 + FlashCurrent { IncSearch },
398 + FlashLabel {
gui =
'reverse' },
403 - GitSignsAdd{
fg = DiffAdd.fg,
bg = ui_backdrop },
404 - GitSignsChange{
fg = DiffChange.fg,
bg = ui_backdrop },
405 - GitSignsDelete{
fg = DiffDelete.fg,
bg = ui_backdrop },
400 + GitSignsAdd {
fg = DiffAdd.fg,
bg = ui_backdrop },
401 + GitSignsChange {
fg = DiffChange.fg,
bg = ui_backdrop },
402 + GitSignsDelete {
fg = DiffDelete.fg,
bg = ui_backdrop },
407 - GitSignsChangedelete{ GitSignsChange },
408 - GitSignsTopdelete{ GitSignsDelete },
409 - GitSignsUntracked{ GitSignsAdd },
404 + GitSignsChangedelete { GitSignsChange },
405 + GitSignsTopdelete { GitSignsDelete },
406 + GitSignsUntracked { GitSignsAdd },
411 - GitSignsAddNr{ GitSignsAdd },
412 - GitSignsChangeNr{ GitSignsChange },
413 - GitSignsDeleteNr{ GitSignsDelete },
408 + GitSignsAddNr { GitSignsAdd },
409 + GitSignsChangeNr { GitSignsChange },
410 + GitSignsDeleteNr { GitSignsDelete },
415 - GitSignsChangedeleteNr{ GitSignsChange },
416 - GitSignsTopdeleteNr{ GitSignsDelete },
417 - GitSignsUntrackedNr{ GitSignsAdd },
412 + GitSignsChangedeleteNr { GitSignsChange },
413 + GitSignsTopdeleteNr { GitSignsDelete },
414 + GitSignsUntrackedNr { GitSignsAdd },
419 - GitSignsAddLn{ GitSignsAdd },
420 - GitSignsChangeLn{ GitSignsChange },
421 - GitSignsChangedeleteLn{ GitSignsChange },
422 - GitSignsUntrackedLn{ GitSignsAdd },
416 + GitSignsAddLn { GitSignsAdd },
417 + GitSignsChangeLn { GitSignsChange },
418 + GitSignsChangedeleteLn { GitSignsChange },
419 + GitSignsUntrackedLn { GitSignsAdd },
424 - GitSignsAddPreview{ GitSignsAdd },
425 - GitSignsDeletePreview{ GitSignsDelete },
421 + GitSignsAddPreview { GitSignsAdd },
422 + GitSignsDeletePreview { GitSignsDelete },
427 - GitSignsCurrentLineBlame{ Debug },
424 + GitSignsCurrentLineBlame { Debug },
429 - GitSignsAddInline{ GitSignsAdd },
430 - GitSignsDeleteInline{ GitSignsDelete },
431 - GitSignsChangeInline{ GitSignsChange },
426 + GitSignsAddInline { GitSignsAdd },
427 + GitSignsDeleteInline { GitSignsDelete },
428 + GitSignsChangeInline { GitSignsChange },
433 - GitSignsAddLnInline{ DiffText },
434 - GitSignsDeleteLnInline{ DiffText },
435 - GitSignsChangeLnInline{ DiffText },
430 + GitSignsAddLnInline { DiffText },
431 + GitSignsDeleteLnInline { DiffText },
432 + GitSignsChangeLnInline { DiffText },
437 - GitSignsDeleteVirtLn{ GitSignsDelete },
438 - GitSignsDeleteVirtLnInLine{ DiffText },
439 - GitSignsVirtLnum{
fg = LineNr.fg },
434 + GitSignsDeleteVirtLn { GitSignsDelete },
435 + GitSignsDeleteVirtLnInLine { DiffText },
436 + GitSignsVirtLnum {
fg = LineNr.fg },