2 1 local palette
= require 'bugabinga.nugu.palette' 3 -local lush
= require 'lush' 4 -local hsl
= lush.hsluv
2 +local preview
= require 'bugabinga.nugu.preview' 6 -vim.g.terminal_color_0
= palette.ui_backdrop
7 -vim.g.terminal_color_1
= palette.content_accent
8 -vim.g.terminal_color_2
= palette.info
9 -vim.g.terminal_color_3
= palette.ui_focus
10 -vim.g.terminal_color_4
= palette.content_important_local
11 -vim.g.terminal_color_5
= palette.content_important_global
12 -vim.g.terminal_color_6
= palette.ui_focus
13 -vim.g.terminal_color_7
= palette.content_normal
4 +local debug = (palette.debug)
5 +local error = (palette.error)
6 +local info
= (palette.info)
7 +local warning
= (palette.warning)
15 -vim.g.terminal_color_8
= palette.ui_minor
16 -vim.g.terminal_color_9
= palette.error
17 -vim.g.terminal_color_10
= palette.info
18 -vim.g.terminal_color_11
= palette.content_focus
19 -vim.g.terminal_color_12
= palette.ui_important_local
20 -vim.g.terminal_color_13
= palette.ui_accent
21 -vim.g.terminal_color_14
= palette.ui_important_global
22 -vim.g.terminal_color_15
= palette.ui_normal
9 +local content_normal
= palette.content_normal
10 +local content_backdrop
= palette.content_backdrop
11 +local content_accent
= palette.content_accent
12 +local content_minor
= palette.content_minor
13 +local content_focus
= palette.content_focus
14 +local content_unfocus
= palette.content_unfocus
15 +local content_important_global
= palette.content_important_global
16 +local content_important_local
= palette.content_important_local
24 -local flux = function ( color, number )
25 - if vim.opt.background:get()
== 'dark' then 26 - return color.li(
-number )
28 - return color.li( number )
18 +local ui_normal
= palette.ui_normal
19 +local ui_backdrop
= palette.ui_backdrop
20 +local ui_accent
= palette.ui_accent
21 +local ui_minor
= palette.ui_minor
22 +local ui_focus
= palette.ui_focus
23 +local ui_unfocus
= palette.ui_unfocus
24 +local ui_important_global
= palette.ui_important_global
25 +local ui_important_local
= palette.ui_important_local
27 +vim.g.terminal_color_0
= ui_backdrop
28 +vim.g.terminal_color_1
= content_accent
29 +vim.g.terminal_color_2
= info
30 +vim.g.terminal_color_3
= ui_focus
31 +vim.g.terminal_color_4
= content_important_local
32 +vim.g.terminal_color_5
= content_important_global
33 +vim.g.terminal_color_6
= ui_focus
34 +vim.g.terminal_color_7
= content_normal
36 +vim.g.terminal_color_8
= ui_minor
37 +vim.g.terminal_color_9
= error 38 +vim.g.terminal_color_10
= info
39 +vim.g.terminal_color_11
= content_focus
40 +vim.g.terminal_color_12
= ui_important_local
41 +vim.g.terminal_color_13
= ui_accent
42 +vim.g.terminal_color_14
= ui_important_global
43 +vim.g.terminal_color_15
= ui_normal
45 +local set_group_properties = function ( self, properties )
47 + properties = { properties,
'table', },
49 + [
'properties.fg'] = { properties.fg,
'string',
true, },
51 + [
'properties.bg'] = { properties.bg,
'string',
true, },
53 + [
'properties.sp'] = { properties.sp,
'string',
true, },
55 + [
'properties.blend'] = { properties.blend,
'number',
true, },
57 + [
'properties.bold'] = { properties.bold,
'boolean',
true, },
59 + [
'properties.standout'] = { properties.standout,
'boolean',
true, },
61 + [
'properties.underline'] = { properties.underline,
'boolean',
true, },
63 + [
'properties.undercurl'] = { properties.undercurl,
'boolean',
true, },
65 + [
'properties.underdotted'] = { properties.underdotted,
'boolean',
true, },
67 + [
'properties.underdashed'] = { properties.underdashed,
'boolean',
true, },
69 + [
'properties.strikethrough'] = { properties.strikethrough,
'boolean',
true, },
71 + [
'properties.italic'] = { properties.italic,
'boolean',
true, },
73 + [
'properties.reverse'] = { properties.reverse,
'boolean',
true, },
75 + [
'properties.nocombine'] = { properties.nocombine,
'boolean',
true, },
77 + [
'properties.default'] = { properties.default,
'boolean',
true, },
79 + [
'properties.ctermfg'] = { properties.ctermfg,
'string',
true, },
81 + [
'properties.ctermbg'] = { properties.ctermbg,
'string',
true, },
83 + [
'properties.cterm'] = { properties.cterm,
'table',
true, },
85 + [
'properties.force'] = { properties.force,
'boolean',
true, },
88 + for key, value
in pairs( properties )
do 32 -local debug = hsl( palette.debug )
33 -local error = hsl( palette.error )
34 -local info
= hsl( palette.info )
35 -local warning
= hsl( palette.warning )
93 +local new_group = function ()
94 + return setmetatable( {}, {
95 + __call = set_group_properties,
37 -local content_normal
= hsl( palette.content_normal )
38 -local content_backdrop
= hsl( palette.content_backdrop )
39 -local content_accent
= hsl( palette.content_accent )
40 -local content_minor
= hsl( palette.content_minor )
41 -local content_focus
= hsl( palette.content_focus )
42 -local content_unfocus
= flux( hsl( palette.content_unfocus ),
21 )
43 -local content_important_global
= hsl( palette.content_important_global )
44 -local content_important_local
= hsl( palette.content_important_local )
99 +local add_group = function ( self, key )
100 + if not self.groups[key]
then 101 + self.groups[key]
= new_group()
103 + return self.groups[key]
46 -local ui_normal
= hsl( palette.ui_normal )
47 -local ui_backdrop
= hsl( palette.ui_backdrop )
48 -local ui_accent
= hsl( palette.ui_accent )
49 -local ui_minor
= hsl( palette.ui_minor )
50 -local ui_focus
= hsl( palette.ui_focus )
51 -local ui_unfocus
= hsl( palette.ui_unfocus )
52 -local ui_important_global
= hsl( palette.ui_important_global )
53 -local ui_important_local
= hsl( palette.ui_important_local )
106 +local link_group = function ( self, key, value )
108 + local group
= add_group( self, key )
109 + for name, link_group
in pairs( self.groups )
do 110 + if link_group
== value
then 55 -local nugu
= lush(
function ( injects )
56 - local sym
= injects.sym
58 - Debug {
fg =
debug.readable(),
bg =
debug,
gui =
'bold' },
118 +local _
= setmetatable( {
groups = {}, }, {
119 + __index = add_group,
120 + __newindex = link_group,
60 - Normal {
fg = content_normal,
bg = content_backdrop },
61 - NotifyBackground {
bg = ui_backdrop },
62 - Comment {
fg = content_important_global },
63 - LineNr {
fg = ui_minor,
bg = content_backdrop },
64 - CursorLineNr {
fg = ui_focus,
bg = ui_backdrop },
65 - Search {
fg = content_important_global,
bg = content_important_global.readable() },
66 - IncSearch {
fg = content_important_local,
bg = content_important_local.readable() },
67 - NormalFloat {
fg = ui_normal,
bg = ui_backdrop },
68 - FloatBorder {
fg = NormalFloat.bg,
bg = NormalFloat.bg },
69 - ColorColumn {
fg = ui_important_global,
bg = Normal.bg },
70 - Conceal {
fg = content_focus,
bg = Normal.bg },
71 - Cursor {
bg = ui_accent },
74 - Directory {
fg = Normal.fg },
75 - DiffAdd {
fg = content_focus },
76 - DiffDelete {
fg = content_focus,
gui =
'strikethrough' },
77 - DiffChange {
fg = content_important_global },
78 - DiffText {
fg = content_important_local.readable(),
bg = content_important_local },
79 - EndOfBuffer { Normal },
82 - ErrorMsg {
fg =
error.readable(),
bg =
error },
83 - VertSplit {
fg = ui_important_global,
bg = LineNr.bg },
85 - FoldColumn { LineNr },
86 - SignColumn { LineNr },
87 - ModeMsg {
gui =
'bold' },
89 - MsgSeparator { Debug },
91 - NonText {
fg = content_unfocus },
92 - Whitespace { NonText },
93 - NormalNC { Normal },
94 - Pmenu { NormalFloat },
95 - PmenuSel {
fg = ui_important_local,
sp = ui_important_local,
bg = Pmenu.bg,
gui =
'bold underline' },
96 - PmenuSbar {
bg = ui_unfocus },
97 - PmenuThumb {
bg = ui_minor },
98 - Question {
fg = ui_important_local,
gui =
'bold' },
99 - QuickFixLine { PmenuSel },
100 - SpecialKey {
fg =
error,
bg = content_unfocus,
gui =
'bold' },
101 - SpellBad {
fg =
error,
gui =
'undercurl' },
102 - SpellCap { SpellBad },
103 - SpellLocal { SpellBad },
104 - SpellRare { SpellBad },
105 - StatusLine {
fg = ui_focus,
bg = ui_unfocus },
106 - StatusLineNC {
fg = ui_normal,
bg = ui_unfocus },
107 - Winbar {
fg = ui_focus,
bg = StatusLine.bg },
108 - WinbarNC {
fg = ui_minor,
bg = LineNr.bg },
109 - Title {
fg = content_important_global,
sp = content_important_global,
gui =
'bold underline' },
110 - TabLine { StatusLine },
111 - TabLineFill {
fg = TabLine.fg,
bg = content_backdrop },
112 - TabLineSel {
fg = ui_important_global,
bg = ui_unfocus },
113 - Visual {
fg = content_focus.readable(),
bg = content_focus },
114 - VisualNOS {
fg = Visual.fg,
bg = flux( Visual.bg,
-42 ) },
115 - WarningMsg {
fg = warning,
gui =
'bold' },
116 - WildMenu { Debug },
123 +_.Debug {
fg = ui_normal,
bg =
debug,
bold =
true, }
124 +_.Normal {
fg = content_normal,
bg = content_backdrop, }
125 +_.NotifyBackground {
bg = ui_backdrop, }
126 +_.Comment {
fg = content_important_global, }
127 +_.LineNr {
fg = ui_minor,
bg = content_backdrop, }
128 +_.CursorLineNr {
fg = ui_focus,
bg = ui_backdrop, }
129 +_.Search {
bg = content_unfocus, }
130 +_.IncSearch {
fg = content_focus, }
131 +_.CurSearch {
fg = content_normal,
bg = content_important_global, }
132 +_.NormalFloat {
fg = ui_normal,
bg = ui_backdrop, }
133 +_.FloatBorder {
fg = _.NormalFloat.bg,
bg = _.NormalFloat.bg, }
134 +_.ColorColumn {
fg = ui_important_global,
bg = _.Normal.bg, }
135 +_.Conceal {
fg = content_focus,
bg = _.Normal.bg, }
136 +_.Cursor {
bg = ui_accent, }
139 +_.Directory {
fg = _.Normal.fg, }
140 +_.DiffAdd {
fg = content_focus, }
141 +_.DiffDelete {
fg = content_focus,
strikethrough =
true, }
142 +_.DiffChange {
fg = content_important_global, }
143 +_.DiffText {
fg = content_normal,
bg = content_important_local, }
144 +_.EndOfBuffer
= _.Normal
147 +_.ErrorMsg {
fg =
error, }
148 +_.VertSplit {
fg = ui_important_global,
bg = _.LineNr.bg, }
149 +_.Folded
= _.Conceal
150 +_.FoldColumn
= _.LineNr
151 +_.SignColumn
= _.LineNr
152 +_.ModeMsg {
bold =
true, }
153 +_.MsgArea
= _.Normal
154 +_.MsgSeparator
= _.Debug
155 +_.MoreMsg
= _.Normal
156 +_.NonText {
fg = content_unfocus, }
157 +_.Whitespace
= _.NonText
158 +_.NormalNC
= _.Normal
159 +_.Pmenu
= _.NormalFloat
160 +_.PmenuSel {
fg = ui_important_local,
sp = ui_important_local,
bg = _.Pmenu.bg,
bold =
true,
underline =
true, }
161 +_.PmenuSbar {
bg = ui_unfocus, }
162 +_.PmenuThumb {
bg = ui_minor, }
163 +_.Question {
fg = ui_important_local,
bold =
true, }
164 +_.QuickFixLine
= _.PmenuSel
165 +_.SpecialKey {
fg =
error,
bg = content_unfocus,
bold =
true, }
166 +_.SpellBad {
fg =
error,
undercurl =
true, }
167 +_.SpellCap
= _.SpellBad
168 +_.SpellLocal
= _.SpellBad
169 +_.SpellRare
= _.SpellBad
170 +_.StatusLine {
fg = ui_focus,
bg = ui_unfocus, }
171 +_.StatusLineNC {
fg = ui_normal,
bg = ui_unfocus, }
172 +_.Winbar {
fg = ui_focus,
bg = _.StatusLine.bg, }
173 +_.WinbarNC {
fg = ui_minor,
bg = _.LineNr.bg, }
174 +_.Title {
fg = content_important_global,
sp = content_important_global,
bold =
true,
underline =
true, }
175 +_.TabLine
= _.StatusLine
176 +_.TabLineFill {
fg = _.TabLine.fg,
bg = content_backdrop, }
177 +_.TabLineSel {
fg = ui_important_global,
bg = ui_unfocus, }
178 +_.Visual {
bg = content_unfocus, }
179 +_.VisualNOS {
bg = ui_unfocus, }
180 +_.WarningMsg {
fg = warning,
bold =
true, }
181 +_.WildMenu
= _.Debug
118 - String {
fg = content_important_local,
gui =
'italic' },
119 - Constant { String },
120 - Character { String },
122 - Boolean { String },
183 +_.String {
fg = content_important_local,
italic =
true, }
184 +_.Constant
= _.String
185 +_.Character
= _.String
187 +_.Boolean
= _.String
125 - Identifier { Normal },
126 - MutableVariable { Debug },
127 - Function { Normal },
190 +_.Identifier
= _.Normal
191 +_.MutableVariable
= _.Debug
192 +_.Function
= _.Normal
129 - Statement {
fg = content_minor },
130 - Conditional { Statement },
131 - Repeat { Statement },
132 - Label { Statement },
133 - Operator { Statement },
134 - Keyword { Statement },
135 - Exception { Statement },
194 +_.Statement {
fg = content_minor, }
195 +_.Conditional
= _.Statement
196 +_.Repeat
= _.Statement
197 +_.Label
= _.Statement
198 +_.Operator
= _.Statement
199 +_.Keyword
= _.Statement
200 +_.Exception
= _.Statement
137 - PreProc {
fg = content_important_global,
bg = content_unfocus,
gui =
'bold' },
138 - Include { PreProc },
139 - Define { PreProc },
141 - PreCondit { PreProc },
202 +_.PreProc {
fg = content_important_global,
bg = content_unfocus,
bold =
true, }
203 +_.Include
= _.PreProc
204 +_.Define
= _.PreProc
206 +_.PreCondit
= _.PreProc
143 - Type { Statement },
144 - StorageClass { Statement },
145 - Structure { Statement },
146 - Typedef { Statement },
208 +_.Type
= _.Statement
209 +_.StorageClass
= _.Statement
210 +_.Structure
= _.Statement
211 +_.Typedef
= _.Statement
148 - Special {
fg = content_normal,
gui =
'italic bold' },
149 - SpecialChar { Special },
151 - Delimiter {
fg = content_minor },
152 - SpecialComment { Special },
213 +_.Special {
fg = content_normal,
italic =
true,
bold =
true, }
214 +_.SpecialChar
= _.Special
216 +_.Delimiter {
fg = content_minor, }
217 +_.SpecialComment
= _.Special
154 - Underlined {
sp = content_normal,
gui =
'underline' },
155 - Bold {
gui =
'bold' },
156 - Italic {
gui =
'italic' },
219 +_.Underlined {
sp = content_normal,
underline =
true, }
220 +_.Bold {
bold =
true, }
221 +_.Italic {
italic =
true, }
158 - Ignore {
fg = Normal.bg,
bg = Normal.bg },
223 +_.Ignore {
fg = _.Normal.bg,
bg = _.Normal.bg, }
160 - Error {
fg =
error },
161 - Todo {
fg = content_important_global,
sp = content_important_global,
gui =
'bold underdouble' },
162 - DiagnosticUnnecessary {
fg = ui_focus },
163 - DiagnosticDeprecated {
fg = ui_important_global,
sp = ui_important_global,
gui =
'strikethrough' },
164 - DiagnosticError {
fg =
error },
165 - DiagnosticWarn {
fg = warning },
166 - DiagnosticInfo {
fg = info },
167 - DiagnosticHint {
fg = ui_important_local },
168 - DiagnosticOk {
fg = ui_minor },
225 +_.Error {
fg =
error, }
226 +_.Todo {
fg = content_important_global,
sp = content_important_global,
bold =
true,
underdouble =
true, }
227 +_.DiagnosticUnnecessary {
fg = ui_focus, }
228 +_.DiagnosticDeprecated {
fg = ui_important_global,
sp = ui_important_global,
strikethrough =
true, }
229 +_.DiagnosticError {
fg =
error, }
230 +_.DiagnosticWarn {
fg = warning, }
231 +_.DiagnosticInfo {
fg = info, }
232 +_.DiagnosticHint {
fg = ui_important_local, }
233 +_.DiagnosticOk {
fg = ui_minor, }
170 - DiagnosticVirtualTextError { DiagnosticError },
171 - DiagnosticVirtualTextWarn { DiagnosticWarn },
172 - DiagnosticVirtualTextInfo { DiagnosticInfo },
173 - DiagnosticVirtualTextHint { DiagnosticHint },
174 - DiagnosticVirtualOkHint { DiagnosticOk },
175 - DiagnosticUnderlineError {
fg = DiagnosticError.fg,
sp = DiagnosticError.fg,
gui =
'underdouble' },
176 - DiagnosticUnderlineWarn {
fg = DiagnosticWarn.fg,
sp = DiagnosticWarn.fg,
gui =
'underline' },
177 - DiagnosticUnderlineInfo {
fg = DiagnosticInfo.fg,
sp = DiagnosticInfo.fg,
gui =
'underdashed' },
178 - DiagnosticUnderlineHint {
fg = DiagnosticHint.fg,
sp = DiagnosticHint.fg,
gui =
'italic underdotted' },
179 - DiagnosticUnderlineOk {
fg = DiagnosticOk.fg,
gui =
'italic' },
235 +_.DiagnosticVirtualTextError
= _.DiagnosticError
236 +_.DiagnosticVirtualTextWarn
= _.DiagnosticWarn
237 +_.DiagnosticVirtualTextInfo
= _.DiagnosticInfo
238 +_.DiagnosticVirtualTextHint
= _.DiagnosticHint
239 +_.DiagnosticVirtualOkHint
= _.DiagnosticOk
240 +_.DiagnosticUnderlineError {
fg = _.DiagnosticError.fg,
sp = _.DiagnosticError.fg,
underdouble =
true, }
241 +_.DiagnosticUnderlineWarn {
fg = _.DiagnosticWarn.fg,
sp = _.DiagnosticWarn.fg,
underline =
true, }
242 +_.DiagnosticUnderlineInfo {
fg = _.DiagnosticInfo.fg,
sp = _.DiagnosticInfo.fg,
underdashed =
true, }
243 +_.DiagnosticUnderlineHint {
fg = _.DiagnosticHint.fg,
sp = _.DiagnosticHint.fg,
italic =
true,
underdotted =
true, }
244 +_.DiagnosticUnderlineOk {
fg = _.DiagnosticOk.fg,
italic =
true, }
245 +_.DiagnosticSignError
= _.DiagnosticError
246 +_.DiagnosticSignWarn
= _.DiagnosticWarn
247 +_.DiagnosticSignInfo
= _.DiagnosticInfo
248 +_.DiagnosticSignHint
= _.DiagnosticHint
249 +_.DiagnosticSignOk
= _.DiagnosticOk
181 - DiagnosticSignError { DiagnosticError },
182 - DiagnosticSignWarn { DiagnosticWarn },
183 - DiagnosticSignInfo { DiagnosticInfo },
184 - DiagnosticSignHint { DiagnosticHint },
185 - DiagnosticSignOk { DiagnosticOk },
251 +_.LspReferenceText {
sp = content_unfocus,
underline =
true, }
252 +_.LspReferenceRead
= _.LspReferenceText
253 +_.LspReferenceWrite
= _.LspReferenceText
254 +_.LspInlayHint {
fg = content_minor,
bg = _.Normal.bg, }
187 - LspReferenceText {
sp = content_unfocus,
gui =
'underline' },
188 - LspReferenceRead { LspReferenceText },
189 - LspReferenceWrite { LspReferenceText },
190 - LspInlayHint {
fg = content_minor,
bg = Normal.bg },
256 +_[
'@text.literal']
= _.Comment
257 +_[
'@text.reference']
= _.Identifier
258 +_[
'@text.title']
= _.Title
259 +_[
'@text.underline']
= _.Underlined
260 +_[
'@text.todo']
= _.Todo
261 +_[
'@comment']
= _.Comment
262 +_[
'@punctuation']
= _.Delimiter
263 +_[
'@constant']
= _.Constant
264 +_[
'@constant.builtin']
= _.Special
265 +_[
'@constant.macro']
= _.Define
266 +_[
'@define']
= _.Define
267 +_[
'@macro']
= _.Macro
268 +_[
'@string']
= _.String
269 +_[
'@string.escape']
= _.SpecialChar
270 +_[
'@string.special']
= _.SpecialChar
271 +_[
'@character']
= _.Character
272 +_[
'@character.special']
= _.SpecialChar
273 +_[
'@number']
= _.Number
274 +_[
'@boolean']
= _.Boolean
275 +_[
'@float']
= _.Float
276 +_[
'@function']
= _.Function
277 +_[
'@function.builtin']
= _.Special
278 +_[
'@function.macro']
= _.Macro
279 +_[
'@parameter']
= _.Identifier
280 +_[
'@method']
= _.Function
281 +_[
'@field']
= _.Identifier
282 +_[
'@property']
= _.Identifier
283 +_[
'@constructor']
= _.Special
284 +_[
'@conditional']
= _.Conditional
285 +_[
'@repeat']
= _.Repeat
286 +_[
'@label']
= _.Label
287 +_[
'@operator']
= _.Operator
288 +_[
'@keyword']
= _.Keyword
289 +_[
'@keyword.return'] {
fg = _.Keyword.fg,
bg = _.Keyword.bg,
underline =
true,
bold =
true, }
290 +_[
'@exception']
= _.Exception
291 +_[
'@variable']
= _.Identifier
293 +_[
'@type.definition']
= _.Typedef
294 +_[
'@storageclass']
= _.StorageClass
295 +_[
'@structure']
= _.Structure
296 +_[
'@namespace']
= _.Identifier
297 +_[
'@include']
= _.Include
298 +_[
'@preproc']
= _.PreProc
299 +_[
'@debug']
= _.Debug
302 +_[
'@lsp.type.namespace']
= _[
'@namespace']
303 +_[
'@lsp.type.type']
= _[
'@type']
304 +_[
'@lsp.type.class']
= _[
'@type']
305 +_[
'@lsp.type.enum']
= _[
'@type']
306 +_[
'@lsp.type.interface']
= _[
'@type']
307 +_[
'@lsp.type.struct']
= _[
'@structure']
308 +_[
'@lsp.type.parameter']
= _[
'@parameter']
309 +_[
'@lsp.type.variable']
= _[
'@variable']
310 +_[
'@lsp.type.property']
= _[
'@property']
311 +_[
'@lsp.type.enumMember']
= _[
'@constant']
312 +_[
'@lsp.type.function']
= _[
'@function']
313 +_[
'@lsp.type.method']
= _[
'@method']
314 +_[
'@lsp.type.macro']
= _[
'@macro']
315 +_[
'@lsp.type.decorator']
= _[
'@function']
209 - sym
'@text.literal' { Comment },
210 - sym
'@text.reference' { Identifier },
211 - sym
'@text.title' { Title },
212 - sym
'@text.underline' { Underlined },
213 - sym
'@text.todo' { Todo },
214 - sym
'@comment' { Comment },
215 - sym
'@punctuation' { Delimiter },
216 - sym
'@constant' { Constant },
217 - sym
'@constant.builtin' { Special },
218 - sym
'@constant.macro' { Define },
219 - sym
'@define' { Define },
220 - sym
'@macro' { Macro },
221 - sym
'@string' { String },
222 - sym
'@string.escape' { SpecialChar },
223 - sym
'@string.special' { SpecialChar },
224 - sym
'@character' { Character },
225 - sym
'@character.special' { SpecialChar },
226 - sym
'@number' { Number },
227 - sym
'@boolean' { Boolean },
228 - sym
'@float' { Float },
229 - sym
'@function' { Function },
230 - sym
'@function.builtin' { Special },
231 - sym
'@function.macro' { Macro },
232 - sym
'@parameter' { Identifier },
233 - sym
'@method' { Function },
234 - sym
'@field' { Identifier },
235 - sym
'@property' { Identifier },
236 - sym
'@constructor' { Special },
237 - sym
'@conditional' { Conditional },
238 - sym
'@repeat' { Repeat },
239 - sym
'@label' { Label },
240 - sym
'@operator' { Operator },
241 - sym
'@keyword' { Keyword },
242 - sym
'@keyword.return' {
fg = Keyword.fg,
bg = Keyword.bg,
gui =
'underline bold' },
243 - sym
'@exception' { Exception },
244 - sym
'@variable' { Identifier },
245 - sym
'@type' { Type },
246 - sym
'@type.definition' { Typedef },
247 - sym
'@storageclass' { StorageClass },
248 - sym
'@structure' { Structure },
249 - sym
'@namespace' { Identifier },
250 - sym
'@include' { Include },
251 - sym
'@preproc' { PreProc },
252 - sym
'@debug' { Debug },
253 - sym
'@tag' { Tag },
317 +_.LazyButton
= _.NormalFloat
318 +_.LazyButton {
sp = _.NormalFloat.fg,
bold =
true, }
319 +_.LazyButtonActive {
fg = ui_focus,
sp = _.NormalFloat.fg,
bg = ui_important_local,
bold =
true, }
320 +_.LazyComment
= _.Keyword
321 +_.LazyCommit
= _.LazyComment
322 +_.LazyCommitIssue
= _.LazyComment
323 +_.LazyCommitScope
= _.LazyComment
324 +_.LazyCommitScope {
italic =
true, }
325 +_.LazyCommitType
= _.LazyCommitScope
326 +_.LazyDimmed {
fg = _.NormalFloat.fg, }
327 +_.LazyDir {
fg = _.NormalFloat.fg, }
331 +_.LazyNoCond
= _.WarningMsg
332 +_.LazyNormal
= _.NormalFloat
333 +_.LazyProgressDone {
fg = _.Search.bg,
bg = _.Cursor.bg,
bold =
true, }
334 +_.LazyProgressTodo {
fg = _.LazyProgressDone.bg,
bg = _.LazyProgressDone.fg,
bold =
true, }
335 +_.LazyProp
= _.LazyComment
336 +_.LazyReasonCmd
= _.NormalFloat
337 +_.LazyReasonEvent
= _.NormalFloat
338 +_.LazyReasonFt
= _.NormalFloat
339 +_.LazyReasonImport
= _.NormalFloat
340 +_.LazyReasonKeys
= _.NormalFloat
341 +_.LazyReasonPlugin
= _.NormalFloat
342 +_.LazyReasonRuntime
= _.NormalFloat
343 +_.LazyReasonSource
= _.NormalFloat
344 +_.LazyReasonStart
= _.NormalFloat
345 +_.LazySpecial {
fg = _.ColorColumn.fg, }
346 +_.LazyTaskError
= _.ErrorMsg
347 +_.LazyTaskOutput
= _.Debug
348 +_.LazyUrl {
sp = _.NormalFloat.fg,
italic =
true,
underline =
true, }
349 +_.LazyValue {
italic =
true, }
255 - sym
'@lsp.type.namespace' { sym
'@namespace' },
256 - sym
'@lsp.type.type' { sym
'@type' },
257 - sym
'@lsp.type.class' { sym
'@type' },
258 - sym
'@lsp.type.enum' { sym
'@type' },
259 - sym
'@lsp.type.interface' { sym
'@type' },
260 - sym
'@lsp.type.struct' { sym
'@structure' },
261 - sym
'@lsp.type.parameter' { sym
'@parameter' },
262 - sym
'@lsp.type.variable' { sym
'@variable' },
263 - sym
'@lsp.type.property' { sym
'@property' },
264 - sym
'@lsp.type.enumMember' { sym
'@constant' },
265 - sym
'@lsp.type.function' { sym
'@function' },
266 - sym
'@lsp.type.method' { sym
'@method' },
267 - sym
'@lsp.type.macro' { sym
'@macro' },
268 - sym
'@lsp.type.decorator' { sym
'@function' },
270 - LazyButton { NormalFloat,
sp = NormalFloat.fg,
gui =
'bold' },
271 - LazyButtonActive {
fg = ui_important_local.readable(),
sp = NormalFloat.fg,
bg = ui_important_local,
gui = LazyButton
273 - LazyComment { Keyword },
274 - LazyCommit { LazyComment },
275 - LazyCommitIssue { LazyComment },
276 - LazyCommitScope { LazyComment,
gui =
'italic' },
277 - LazyCommitType { LazyCommitScope },
278 - LazyDimmed {
fg = NormalFloat.fg },
279 - LazyDir {
fg = NormalFloat.fg },
283 - LazyNoCond { WarningMsg },
284 - LazyNormal { NormalFloat },
285 - LazyProgressDone {
fg = Search.bg,
bg = Cursor.bg,
gui =
'bold' },
286 - LazyProgressTodo {
fg = LazyProgressDone.bg,
bg = LazyProgressDone.fg,
gui = LazyProgressDone.gui },
287 - LazyProp { LazyComment },
288 - LazyReasonCmd { NormalFloat },
289 - LazyReasonEvent { NormalFloat },
290 - LazyReasonFt { NormalFloat },
291 - LazyReasonImport { NormalFloat },
292 - LazyReasonKeys { NormalFloat },
293 - LazyReasonPlugin { NormalFloat },
294 - LazyReasonRuntime { NormalFloat },
295 - LazyReasonSource { NormalFloat },
296 - LazyReasonStart { NormalFloat },
297 - LazySpecial {
fg = ColorColumn.fg },
298 - LazyTaskError { ErrorMsg },
299 - LazyTaskOutput { Debug },
300 - LazyUrl {
sp = NormalFloat.fg,
gui =
'italic underline' },
301 - LazyValue {
gui =
'italic' },
463 +_.TelescopeSelectionCaret
= _.PmenuSel
464 +_.TelescopeSelection
= _.PmenuSel
465 +_.TelescopeMultiSelection {
fg = content_normal,
bg = ui_important_local, }
303 - NoiceCmdline { NormalFloat },
304 - NoiceCmdlineIcon {
fg = ui_accent },
305 - NoiceCmdlineIconCalculator { NoiceCmdlineIcon },
306 - NoiceCmdlineIconCmdline { NoiceCmdlineIcon },
307 - NoiceCmdlineIconFilter { NoiceCmdlineIcon },
308 - NoiceCmdlineIconHelp { NoiceCmdlineIcon },
309 - NoiceCmdlineIconIncRename { NoiceCmdlineIcon },
310 - NoiceCmdlineIconInput { NoiceCmdlineIcon },
311 - NoiceCmdlineIconLua { NoiceCmdlineIcon },
312 - NoiceCmdlineIconSearch { NoiceCmdlineIcon },
468 +_.FlashMatch
= _.IncSearch
469 +_.FlashCurrent
= _.CurSearch
470 +_.FlashLabel {
fg = ui_accent,
bg = ui_backdrop, }
314 - NoiceCmdlinePopup { NormalFloat },
315 - NoiceCmdlinePopupBorder { FloatBorder },
316 - NoiceCmdlinePopupBorderCalculator { NoiceCmdlinePopupBorder },
317 - NoiceCmdlinePopupBorderCmdline { NoiceCmdlinePopupBorder },
318 - NoiceCmdlinePopupBorderFilter { NoiceCmdlinePopupBorder },
319 - NoiceCmdlinePopupBorderHelp { NoiceCmdlinePopupBorder },
320 - NoiceCmdlinePopupBorderIncRename { NoiceCmdlinePopupBorder },
321 - NoiceCmdlinePopupBorderInput { NoiceCmdlinePopupBorder },
322 - NoiceCmdlinePopupBorderLua { NoiceCmdlinePopupBorder },
323 - NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopupBorder },
324 - NoiceCmdlinePopupTitle { NoiceCmdlinePopup },
325 - NoiceCmdlinePrompt { NoiceCmdlinePopup },
326 - NoiceCompletionItemKindDefault {
fg = ui_normal },
327 - NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault },
328 - NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault },
329 - NoiceCompletionItemKindConstant { NoiceCompletionItemKindDefault },
330 - NoiceCompletionItemKindConstructor { NoiceCompletionItemKindDefault },
331 - NoiceCompletionItemKindEnum { NoiceCompletionItemKindDefault },
332 - NoiceCompletionItemKindEnumMember { NoiceCompletionItemKindDefault },
333 - NoiceCompletionItemKindField { NoiceCompletionItemKindDefault },
334 - NoiceCompletionItemKindFile { NoiceCompletionItemKindDefault },
335 - NoiceCompletionItemKindFolder { NoiceCompletionItemKindDefault },
336 - NoiceCompletionItemKindFunction { NoiceCompletionItemKindDefault },
337 - NoiceCompletionItemKindInterface { NoiceCompletionItemKindDefault },
338 - NoiceCompletionItemKindKeyword { NoiceCompletionItemKindDefault },
339 - NoiceCompletionItemKindMethod { NoiceCompletionItemKindDefault },
340 - NoiceCompletionItemKindModule { NoiceCompletionItemKindDefault },
341 - NoiceCompletionItemKindProperty { NoiceCompletionItemKindDefault },
342 - NoiceCompletionItemKindSnippet { NoiceCompletionItemKindDefault },
343 - NoiceCompletionItemKindStruct { NoiceCompletionItemKindDefault },
344 - NoiceCompletionItemKindText { NoiceCompletionItemKindDefault },
345 - NoiceCompletionItemKindUnit { NoiceCompletionItemKindDefault },
346 - NoiceCompletionItemKindValue { NoiceCompletionItemKindDefault },
347 - NoiceCompletionItemKindVariable { NoiceCompletionItemKindDefault },
348 - NoiceCompletionItemMenu { NoiceCompletionItemKindDefault },
349 - NoiceCompletionItemWord { NoiceCompletionItemKindDefault },
472 +_.GitSignsAdd {
fg = _.DiffAdd.fg,
bg = _.LineNr.bg, }
473 +_.GitSignsChange {
fg = _.DiffChange.fg,
bg = _.LineNr.bg, }
474 +_.GitSignsDelete {
fg = _.DiffDelete.fg,
bg = _.LineNr.bg, }
351 - NoiceConfirm { NormalFloat },
352 - NoiceConfirmBorder { FloatBorder },
353 - NoiceFormatConfirm { LazyButton },
354 - NoiceFormatConfirmDefault { LazyButtonActive },
476 +_.GitSignsChangedelete
= _.GitSignsChange
477 +_.GitSignsTopdelete
= _.GitSignsDelete
478 +_.GitSignsUntracked
= _.GitSignsAdd
356 - NoiceCursor { Cursor },
480 +_.GitSignsAddNr
= _.GitSignsAdd
481 +_.GitSignsChangeNr
= _.GitSignsChange
482 +_.GitSignsDeleteNr
= _.GitSignsDelete
358 - NoiceFormatDate { NonText },
359 - NoiceFormatEvent { NonText },
360 - NoiceFormatKind { NonText },
361 - NoiceFormatLevelDebug {
fg = Debug.bg },
362 - NoiceFormatLevelError { DiagnosticError },
363 - NoiceFormatLevelInfo { DiagnosticInfo },
364 - NoiceFormatLevelOff {
fg = content_minor },
365 - NoiceFormatLevelTrace { DiagnosticHint },
366 - NoiceFormatLevelWarn { DiagnosticWarn },
367 - NoiceFormatProgressDone { LazyProgressDone },
368 - NoiceFormatProgressTodo { LazyProgressTodo },
369 - NoiceFormatTitle { Title },
484 +_.GitSignsChangedeleteNr
= _.GitSignsChange
485 +_.GitSignsTopdeleteNr
= _.GitSignsDelete
486 +_.GitSignsUntrackedNr
= _.GitSignsAdd
371 - NoiceLspProgressClient { Debug },
372 - NoiceLspProgressSpinner { Debug },
373 - NoiceLspProgressTitle { Debug },
488 +_.GitSignsAddLn
= _.GitSignsAdd
489 +_.GitSignsChangeLn
= _.GitSignsChange
490 +_.GitSignsChangedeleteLn
= _.GitSignsChange
491 +_.GitSignsUntrackedLn
= _.GitSignsAdd
375 - NoiceMini { DiagnosticInfo },
493 +_.GitSignsAddPreview
= _.GitSignsAdd
494 +_.GitSignsDeletePreview
= _.GitSignsDelete
377 - NoicePopup { NormalFloat },
378 - NoicePopupBorder { FloatBorder },
496 +_.GitSignsCurrentLineBlame
= _.NonText
497 +_.GitSignsAddInline
= _.GitSignsAdd
498 +_.GitSignsDeleteInline
= _.GitSignsDelete
499 +_.GitSignsChangeInline
= _.GitSignsChange
380 - NoicePopupmenu { Pmenu },
381 - NoicePopupmenuBorder { FloatBorder },
382 - NoicePopupmenuMatch { Bold },
383 - NoicePopupmenuSelected { PmenuSel },
501 +_.GitSignsAddLnInline
= _.DiffText
502 +_.GitSignsDeleteLnInline
= _.DiffText
503 +_.GitSignsChangeLnInline
= _.DiffText
385 - NoiceScrollbar { PmenuSbar },
386 - NoiceScrollbarThumb { PmenuThumb },
505 +_.GitSignsDeleteVirtLn
= _.GitSignsDelete
506 +_.GitSignsDeleteVirtLnInLine
= _.DiffText
507 +_.GitSignsVirtLnum {
fg = _.LineNr.fg, }
388 - NoiceSplit { Normal },
389 - NoiceSplitBorder { FloatBorder },
390 - NoiceVirtualText {
fg = ui_important_global,
bg = ui_unfocus },
391 - NotifyERRORBorder {
fg = DiagnosticError.fg,
bg = FloatBorder.bg },
392 - NotifyWARNBorder {
fg = DiagnosticWarn.fg,
bg = FloatBorder.bg },
393 - NotifyINFOBorder {
fg = DiagnosticInfo.fg,
bg = FloatBorder.bg },
394 - NotifyDEBUGBorder {
fg = Debug.bg,
bg = FloatBorder.bg },
395 - NotifyTRACEBorder {
fg = DiagnosticHint.fg,
bg = FloatBorder.bg },
509 +_.WhichKey {
fg = ui_important_global, }
510 +_.WhichKeyGroup {
fg = ui_important_local, }
511 +_.WhichKeySeparator {
fg = ui_minor, }
512 +_.WhichKeyDesc {
fg = ui_normal, }
513 +_.WhichKeyFloat
= _.NormalFloat
514 +_.WhichKeyBorder
= _.FloatBorder
515 +_.WhichKeyValue
= _.Comment
397 - NotifyERRORIcon {
fg = DiagnosticError.fg },
398 - NotifyWARNIcon {
fg = DiagnosticWarn.fg },
399 - NotifyINFOIcon {
fg = DiagnosticInfo.fg },
400 - NotifyDEBUGIcon {
fg = Debug.bg },
401 - NotifyTRACEIcon {
fg = DiagnosticHint.fg },
517 +_.IblIndent
= _.Whitespace
518 +_.IblWhitespace
= _.Whitespace
519 +_.IblScope {
fg = ui_focus,
bg = _.Normal.bg, }
403 - NotifyERRORTitle {
fg = DiagnosticError.fg },
404 - NotifyWARNTitle {
fg = DiagnosticWarn.fg },
405 - NotifyINFOTitle {
fg = DiagnosticInfo.fg },
406 - NotifyDEBUGTitle {
fg = Debug.bg },
407 - NotifyTRACETitle {
fg = DiagnosticHint.fg },
521 +_.Hlargs {
fg = content_important_local, }
409 - NotifyERRORBody { NormalFloat },
410 - NotifyWARNBody { NormalFloat },
411 - NotifyINFOBody { NormalFloat },
412 - NotifyDEBUGBody { NormalFloat },
413 - NotifyTRACEBody { NormalFloat },
523 +_.MiniStarterCurrent {
fg = ui_normal,
bg = ui_accent, }
524 +_.MiniStarterFooter
= _.Keyword
525 +_.MiniStarterHeader
= _.Comment
526 +_.MiniStarterInactive {
fg = content_unfocus, }
527 +_.MiniStarterItem
= _.Normal
528 +_.MiniStarterItemBullet
= _.Whitespace
529 +_.MiniStarterItemPrefix {
fg = content_focus, }
530 +_.MiniStarterSection {
fg = content_important_global,
underline =
true, }
531 +_.MiniStarterQuery {
fg = content_normal,
bg = content_accent, }
415 - TelescopeSelectionCaret { PmenuSel },
416 - TelescopeSelection { PmenuSel },
417 - TelescopeMultiSelection {
fg = ui_important_local.readable(),
bg = ui_important_local },
420 - FlashMatch {
fg = Search.bg },
421 - FlashCurrent {
fg = IncSearch.bg },
422 - FlashLabel { Search },
424 - GitSignsAdd {
fg = DiffAdd.fg,
bg = LineNr.bg },
425 - GitSignsChange {
fg = DiffChange.fg,
bg = LineNr.bg },
426 - GitSignsDelete {
fg = DiffDelete.fg,
bg = LineNr.bg },
428 - GitSignsChangedelete { GitSignsChange },
429 - GitSignsTopdelete { GitSignsDelete },
430 - GitSignsUntracked { GitSignsAdd },
432 - GitSignsAddNr { GitSignsAdd },
433 - GitSignsChangeNr { GitSignsChange },
434 - GitSignsDeleteNr { GitSignsDelete },
436 - GitSignsChangedeleteNr { GitSignsChange },
437 - GitSignsTopdeleteNr { GitSignsDelete },
438 - GitSignsUntrackedNr { GitSignsAdd },
440 - GitSignsAddLn { GitSignsAdd },
441 - GitSignsChangeLn { GitSignsChange },
442 - GitSignsChangedeleteLn { GitSignsChange },
443 - GitSignsUntrackedLn { GitSignsAdd },
445 - GitSignsAddPreview { GitSignsAdd },
446 - GitSignsDeletePreview { GitSignsDelete },
448 - GitSignsCurrentLineBlame { NonText },
449 - GitSignsAddInline { GitSignsAdd },
450 - GitSignsDeleteInline { GitSignsDelete },
451 - GitSignsChangeInline { GitSignsChange },
453 - GitSignsAddLnInline { DiffText },
454 - GitSignsDeleteLnInline { DiffText },
455 - GitSignsChangeLnInline { DiffText },
457 - GitSignsDeleteVirtLn { GitSignsDelete },
458 - GitSignsDeleteVirtLnInLine { DiffText },
459 - GitSignsVirtLnum {
fg = LineNr.fg },
461 - WhichKey {
fg = ui_important_global },
462 - WhichKeyGroup {
fg = ui_important_local },
463 - WhichKeySeparator {
fg = ui_minor },
464 - WhichKeyDesc {
fg = ui_normal },
465 - WhichKeyFloat { NormalFloat },
466 - WhichKeyBorder { FloatBorder },
467 - WhichKeyValue { Comment },
469 - IblIndent { Whitespace },
470 - IblWhitespace { Whitespace },
471 - IblScope {
fg = ui_focus,
bg = Normal.bg },
473 - Hlargs {
fg = content_important_local },
475 - MiniStarterCurrent {
fg = ui_accent.readable(),
bg = ui_accent },
476 - MiniStarterFooter { Keyword },
477 - MiniStarterHeader { Comment },
478 - MiniStarterInactive {
fg = content_unfocus },
479 - MiniStarterItem { Normal },
480 - MiniStarterItemBullet { Whitespace },
481 - MiniStarterItemPrefix {
fg = content_focus,
gui =
'' },
482 - MiniStarterSection {
fg = content_important_global,
gui =
'underline' },
483 - MiniStarterQuery {
fg = content_accent.readable(),
bg = content_accent },
537 + local namespace
= 0 538 + for name, group
in pairs( _.groups )
do 539 + vim.api.nvim_set_hl( namespace, name, group )