repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: starts migration of nugu theme to custom code

580d02a9d44a56b242154d98dda89f6ee53f9a84

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (10)

+646 / −48 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately

Diff layout

neovim/README.md

Modified

+1 / −0 text lines

3939# todo
41* replace nugu with nugu_fresh
4142* write plugin to parse lsp settings locally and apply them
4243* is there a use case for a plugin that parses local plugin configuration overrides?
4344* kill custom lsp stuff in favor of lspconfig and try neoconf + nvim-java

neovim/colors/nugu_fresh.lua

Added
new file mode 100644

+580 / −0 text lines

1--- bugabingas color theme `nugu` for neovim
2
3-- Reset all highlights if another colorscheme was previously set
4if vim.g.colors_name ~= nil then vim.cmd [[ highlight clear ]] end
5
6-- follow convention for others to be able to query current colorscheme
7vim.g.colors_name = 'nugu_fresh'
8
9local palette = {
10 debug = { light = '#3dd45d', dark = '#3dd45d', },
11 error = { light = '#740523', dark = '#f27a9a', },
12 info = { light = '#4187a7', dark = '#e7f0f3', },
13 warning = { light = '#a7802d', dark = '#f1e8d6', },
15 content_normal = { light = '#494949', dark = '#cfcfcf', },
16 content_backdrop = { light = '#e3e3e3', dark = '#131313', },
17 content_accent = { light = '#800080', dark = '#800080', },
18 content_minor = { light = '#878787', dark = '#727272', },
19 content_focus = { light = '#646464', dark = '#a5bdb6', },
20 content_unfocus = { light = '#c9c9c9', dark = '#3f4543', },
21 content_important_global = { light = '#48256e', dark = '#8e58cc', },
22 content_important_local = { light = '#643398', dark = '#7a3bc3', },
24 ui_normal = { light = '#929292', dark = '#e2e2e2', },
25 ui_backdrop = { light = '#f9f9f9', dark = '#000000', },
26 ui_accent = { light = '#d43dd4', dark = '#7a067a', },
27 ui_minor = { light = '#d0d0d0', dark = '#424242', },
28 ui_focus = { light = '#646464', dark = '#788984', },
29 ui_unfocus = { light = '#c9c9c9', dark = '#121212', },
30 ui_important_global = { light = '#9170b5', dark = '#5f368d', },
31 ui_important_local = { light = '#ae95c8', dark = '#4c2b72', },
32}
34local function choose( variants )
35 ---@diagnostic disable-next-line: undefined-field
36 if vim.opt.background:get() == 'dark' then
37 return variants.dark
38 else
39 return variants.light
40 end
41end
43local debug = choose( palette.debug )
44local error = choose( palette.error )
45local info = choose( palette.info )
46local warning = choose( palette.warning )
48local content_normal = choose( palette.content_normal )
49local content_backdrop = choose( palette.content_backdrop )
50local content_accent = choose( palette.content_accent )
51local content_minor = choose( palette.content_minor )
52local content_focus = choose( palette.content_focus )
53local content_unfocus = choose( palette.content_unfocus )
54local content_important_global = choose( palette.content_important_global )
55local content_important_local = choose( palette.content_important_local )
57local ui_normal = choose( palette.ui_normal )
58local ui_backdrop = choose( palette.ui_backdrop )
59local ui_accent = choose( palette.ui_accent )
60local ui_minor = choose( palette.ui_minor )
61local ui_focus = choose( palette.ui_focus )
62local ui_unfocus = choose( palette.ui_unfocus )
63local ui_important_global = choose( palette.ui_important_global )
64local ui_important_local = choose( palette.ui_important_local )
66vim.g.terminal_color_0 = ui_backdrop -- black
67vim.g.terminal_color_1 = content_accent -- maroon
68vim.g.terminal_color_2 = info -- green
69vim.g.terminal_color_3 = ui_focus -- olive
70vim.g.terminal_color_4 = content_important_local -- navy
71vim.g.terminal_color_5 = content_important_global -- purple
72vim.g.terminal_color_6 = ui_focus -- teal
73vim.g.terminal_color_7 = content_normal -- silver
75vim.g.terminal_color_8 = ui_minor -- grey
76vim.g.terminal_color_9 = error -- red
77vim.g.terminal_color_10 = info -- lime
78vim.g.terminal_color_11 = content_focus -- yellow
79vim.g.terminal_color_12 = ui_important_local -- blue
80vim.g.terminal_color_13 = ui_accent -- fuchsia
81vim.g.terminal_color_14 = ui_important_global -- aqua
82vim.g.terminal_color_15 = ui_normal -- white
84local set_group_properties = function ( self, properties )
85 vim.validate {
86 properties = { properties, 'table', },
87 -- • fg (or foreground): color name or "#RRGGBB", see note.
88 ['properties.fg'] = { properties.fg, 'string', true, },
89 -- • bg (or background): color name or "#RRGGBB", see note.
90 ['properties.bg'] = { properties.bg, 'string', true, },
91 -- • sp (or special): color name or "#RRGGBB"
92 ['properties.sp'] = { properties.sp, 'string', true, },
93 -- • blend: integer between 0 and 100
94 ['properties.blend'] = { properties.blend, 'number', true, },
95 -- • bold: boolean
96 ['properties.bold'] = { properties.bold, 'boolean', true, },
97 -- • standout: boolean
98 ['properties.standout'] = { properties.standout, 'boolean', true, },
99 -- • underline: boolean
100 ['properties.underline'] = { properties.underline, 'boolean', true, },
101 -- • undercurl: boolean
102 ['properties.undercurl'] = { properties.undercurl, 'boolean', true, },
103 -- • underdotted: boolean
104 ['properties.underdotted'] = { properties.underdotted, 'boolean', true, },
105 -- • underdashed: boolean
106 ['properties.underdashed'] = { properties.underdashed, 'boolean', true, },
107 -- • strikethrough: boolean
108 ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true, },
109 -- • italic: boolean
110 ['properties.italic'] = { properties.italic, 'boolean', true, },
111 -- • reverse: boolean
112 ['properties.reverse'] = { properties.reverse, 'boolean', true, },
113 -- • nocombine: boolean
114 ['properties.nocombine'] = { properties.nocombine, 'boolean', true, },
115 -- • default: Don't override existing definition |:hi-default|
116 ['properties.default'] = { properties.default, 'boolean', true, },
117 -- • ctermfg: Sets foreground of cterm color |ctermfg|
118 ['properties.ctermfg'] = { properties.ctermfg, 'string', true, },
119 -- • ctermbg: Sets background of cterm color |ctermbg|
120 ['properties.ctermbg'] = { properties.ctermbg, 'string', true, },
121 -- • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above.
122 ['properties.cterm'] = { properties.cterm, 'table', true, },
123 -- • force: if true force update the highlight group when it exists.
124 ['properties.force'] = { properties.force, 'boolean', true, },
125 }
126 -- vim.print( 'SET GROUP PROPERTIES', self, properties )
127 for key, value in pairs( properties ) do
128 self[key] = value
129 end
130end
132local new_group = function ()
133 return setmetatable( {}, {
134 __call = set_group_properties,
135 } )
136end
138local add_group = function ( self, key )
139 if not self.groups[key] then
140 self.groups[key] = new_group()
141 end
142 return self.groups[key]
143end
145local link_group = function ( self, key, value )
146 -- vim.print( 'linking group', self, key, value )
147 local group = add_group( self, key )
148 for name, link_group in pairs( self.groups ) do
149 if link_group == value then
150 -- vim.print( 'found group to link ' .. name .. ' to ' .. key )
151 group.link = name
152 return group
153 end
154 end
155end
157local _ = setmetatable( { groups = {}, }, {
158 __index = add_group,
159 __newindex = link_group,
160} )
162_.Debug { fg = ui_normal, bg = debug, bold = true, }
163_.Normal { fg = content_normal, bg = content_backdrop, }
164_.NotifyBackground { bg = ui_backdrop, }
165_.Comment { fg = content_important_global, }
166_.LineNr { fg = ui_minor, bg = content_backdrop, }
167_.CursorLineNr { fg = ui_focus, bg = ui_backdrop, }
168_.Search { bg = content_unfocus, }
169_.IncSearch { fg = content_focus, }
170_.CurSearch { fg = content_normal, bg = content_important_global, }
171_.NormalFloat { fg = ui_normal, bg = ui_backdrop, }
172_.FloatBorder { fg = _.NormalFloat.bg, bg = _.NormalFloat.bg, }
173_.ColorColumn { fg = ui_important_global, bg = _.Normal.bg, }
174_.Conceal { fg = content_focus, bg = _.Normal.bg, }
175_.Cursor { bg = ui_accent, }
176-- _.lCursor = _.Cursor
177-- _.CursorIM = _.Cursor
178_.Directory { fg = _.Normal.fg, }
179_.DiffAdd { fg = content_focus, }
180_.DiffDelete { fg = content_focus, strikethrough = true, }
181_.DiffChange { fg = content_important_global, }
182_.DiffText { fg = content_normal, bg = content_important_local, }
183_.EndOfBuffer = _.Normal
184-- _.TermCursor = _.Cursor
185-- _.TermCursorNC = _.Cursor
186_.ErrorMsg { fg = error, }
187_.VertSplit { fg = ui_important_global, bg = _.LineNr.bg, }
188_.Folded = _.Conceal
189_.FoldColumn = _.LineNr
190_.SignColumn = _.LineNr
191_.ModeMsg { bold = true, }
192_.MsgArea = _.Normal
193_.MsgSeparator = _.Debug
194_.MoreMsg = _.Normal
195_.NonText { fg = content_unfocus, }
196_.Whitespace = _.NonText
197_.NormalNC = _.Normal
198_.Pmenu = _.NormalFloat
199_.PmenuSel { fg = ui_important_local, sp = ui_important_local, bg = _.Pmenu.bg, bold = true, underline = true, }
200_.PmenuSbar { bg = ui_unfocus, }
201_.PmenuThumb { bg = ui_minor, }
202_.Question { fg = ui_important_local, bold = true, }
203_.QuickFixLine = _.PmenuSel
204_.SpecialKey { fg = error, bg = content_unfocus, bold = true, }
205_.SpellBad { fg = error, undercurl = true, }
206_.SpellCap = _.SpellBad
207_.SpellLocal = _.SpellBad
208_.SpellRare = _.SpellBad
209_.StatusLine { fg = ui_focus, bg = ui_unfocus, }
210_.StatusLineNC { fg = ui_normal, bg = ui_unfocus, }
211_.Winbar { fg = ui_focus, bg = _.StatusLine.bg, }
212_.WinbarNC { fg = ui_minor, bg = _.LineNr.bg, }
213_.Title { fg = content_important_global, sp = content_important_global, bold = true, underline = true, }
214_.TabLine = _.StatusLine
215_.TabLineFill { fg = _.TabLine.fg, bg = content_backdrop, }
216_.TabLineSel { fg = ui_important_global, bg = ui_unfocus, }
217_.Visual { bg = content_unfocus, }
218_.VisualNOS { bg = ui_unfocus, }
219_.WarningMsg { fg = warning, bold = true, }
220_.WildMenu = _.Debug
222_.String { fg = content_important_local, italic = true, }
223_.Constant = _.String
224_.Character = _.String
225_.Number = _.String
226_.Boolean = _.String
227_.Float = _.String
229_.Identifier = _.Normal
230_.MutableVariable = _.Debug
231_.Function = _.Normal
233_.Statement { fg = content_minor, }
234_.Conditional = _.Statement
235_.Repeat = _.Statement
236_.Label = _.Statement
237_.Operator = _.Statement
238_.Keyword = _.Statement
239_.Exception = _.Statement
241_.PreProc { fg = content_important_global, bg = content_unfocus, bold = true, }
242_.Include = _.PreProc
243_.Define = _.PreProc
244_.Macro = _.PreProc
245_.PreCondit = _.PreProc
247_.Type = _.Statement
248_.StorageClass = _.Statement
249_.Structure = _.Statement
250_.Typedef = _.Statement
252_.Special { fg = content_normal, italic = true, bold = true, }
253_.SpecialChar = _.Special
254_.Tag = _.Special
255_.Delimiter { fg = content_minor, }
256_.SpecialComment = _.Special
258_.Underlined { sp = content_normal, underline = true, }
259_.Bold { bold = true, }
260_.Italic { italic = true, }
262_.Ignore { fg = _.Normal.bg, bg = _.Normal.bg, }
264_.Error { fg = error, }
265_.Todo { fg = content_important_global, sp = content_important_global, bold = true, underdouble = true, }
266_.DiagnosticUnnecessary { fg = ui_focus, }
267_.DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, strikethrough = true, }
268_.DiagnosticError { fg = error, }
269_.DiagnosticWarn { fg = warning, }
270_.DiagnosticInfo { fg = info, }
271_.DiagnosticHint { fg = ui_important_local, }
272_.DiagnosticOk { fg = ui_minor, }
274_.DiagnosticVirtualTextError = _.DiagnosticError
275_.DiagnosticVirtualTextWarn = _.DiagnosticWarn
276_.DiagnosticVirtualTextInfo = _.DiagnosticInfo
277_.DiagnosticVirtualTextHint = _.DiagnosticHint
278_.DiagnosticVirtualOkHint = _.DiagnosticOk
279_.DiagnosticUnderlineError { fg = _.DiagnosticError.fg, sp = _.DiagnosticError.fg, underdouble = true, }
280_.DiagnosticUnderlineWarn { fg = _.DiagnosticWarn.fg, sp = _.DiagnosticWarn.fg, underline = true, }
281_.DiagnosticUnderlineInfo { fg = _.DiagnosticInfo.fg, sp = _.DiagnosticInfo.fg, underdashed = true, }
282_.DiagnosticUnderlineHint { fg = _.DiagnosticHint.fg, sp = _.DiagnosticHint.fg, italic = true, underdotted = true, }
283_.DiagnosticUnderlineOk { fg = _.DiagnosticOk.fg, italic = true, }
284_.DiagnosticSignError = _.DiagnosticError
285_.DiagnosticSignWarn = _.DiagnosticWarn
286_.DiagnosticSignInfo = _.DiagnosticInfo
287_.DiagnosticSignHint = _.DiagnosticHint
288_.DiagnosticSignOk = _.DiagnosticOk
290_.LspReferenceText { sp = content_unfocus, underline = true, }
291_.LspReferenceRead = _.LspReferenceText
292_.LspReferenceWrite = _.LspReferenceText
293_.LspInlayHint { fg = content_minor, bg = _.Normal.bg, }
295_['@text.literal'] = _.Comment
296_['@text.reference'] = _.Identifier
297_['@text.title'] = _.Title
298_['@text.underline'] = _.Underlined
299_['@text.todo'] = _.Todo
300_['@comment'] = _.Comment
301_['@punctuation'] = _.Delimiter
302_['@constant'] = _.Constant
303_['@constant.builtin'] = _.Special
304_['@constant.macro'] = _.Define
305_['@define'] = _.Define
306_['@macro'] = _.Macro
307_['@string'] = _.String
308_['@string.escape'] = _.SpecialChar
309_['@string.special'] = _.SpecialChar
310_['@character'] = _.Character
311_['@character.special'] = _.SpecialChar
312_['@number'] = _.Number
313_['@boolean'] = _.Boolean
314_['@float'] = _.Float
315_['@function'] = _.Function
316_['@function.builtin'] = _.Special
317_['@function.macro'] = _.Macro
318_['@parameter'] = _.Identifier
319_['@method'] = _.Function
320_['@field'] = _.Identifier
321_['@property'] = _.Identifier
322_['@constructor'] = _.Special
323_['@conditional'] = _.Conditional
324_['@repeat'] = _.Repeat
325_['@label'] = _.Label
326_['@operator'] = _.Operator
327_['@keyword'] = _.Keyword
328_['@keyword.return'] { fg = _.Keyword.fg, bg = _.Keyword.bg, underline = true, bold = true, }
329_['@exception'] = _.Exception
330_['@variable'] = _.Identifier
331_['@type'] = _.Type
332_['@type.definition'] = _.Typedef
333_['@storageclass'] = _.StorageClass
334_['@structure'] = _.Structure
335_['@namespace'] = _.Identifier
336_['@include'] = _.Include
337_['@preproc'] = _.PreProc
338_['@debug'] = _.Debug
339_['@tag'] = _.Tag
341_['@lsp.type.namespace'] = _['@namespace']
342_['@lsp.type.type'] = _['@type']
343_['@lsp.type.class'] = _['@type']
344_['@lsp.type.enum'] = _['@type']
345_['@lsp.type.interface'] = _['@type']
346_['@lsp.type.struct'] = _['@structure']
347_['@lsp.type.parameter'] = _['@parameter']
348_['@lsp.type.variable'] = _['@variable']
349_['@lsp.type.property'] = _['@property']
350_['@lsp.type.enumMember'] = _['@constant']
351_['@lsp.type.function'] = _['@function']
352_['@lsp.type.method'] = _['@method']
353_['@lsp.type.macro'] = _['@macro']
354_['@lsp.type.decorator'] = _['@function']
356_.LazyButton = _.NormalFloat
357_.LazyButton { sp = _.NormalFloat.fg, bold = true, }
358_.LazyButtonActive { fg = ui_focus, sp = _.NormalFloat.fg, bg = ui_important_local, bold = true, }
359_.LazyComment = _.Keyword
360_.LazyCommit = _.LazyComment
361_.LazyCommitIssue = _.LazyComment
362_.LazyCommitScope = _.LazyComment
363_.LazyCommitScope { italic = true, }
364_.LazyCommitType = _.LazyCommitScope
365_.LazyDimmed { fg = _.NormalFloat.fg, }
366_.LazyDir { fg = _.NormalFloat.fg, }
367_.LazyH1 = _.Bold
368_.LazyH2 = _.LazyH1
369_.LazyLocal {}
370_.LazyNoCond = _.WarningMsg
371_.LazyNormal = _.NormalFloat
372_.LazyProgressDone { fg = _.Search.bg, bg = _.Cursor.bg, bold = true, }
373_.LazyProgressTodo { fg = _.LazyProgressDone.bg, bg = _.LazyProgressDone.fg, bold = true, }
374_.LazyProp = _.LazyComment
375_.LazyReasonCmd = _.NormalFloat
376_.LazyReasonEvent = _.NormalFloat
377_.LazyReasonFt = _.NormalFloat
378_.LazyReasonImport = _.NormalFloat
379_.LazyReasonKeys = _.NormalFloat
380_.LazyReasonPlugin = _.NormalFloat
381_.LazyReasonRuntime = _.NormalFloat
382_.LazyReasonSource = _.NormalFloat
383_.LazyReasonStart = _.NormalFloat
384_.LazySpecial { fg = _.ColorColumn.fg, }
385_.LazyTaskError = _.ErrorMsg
386_.LazyTaskOutput = _.Debug
387_.LazyUrl { sp = _.NormalFloat.fg, italic = true, underline = true, }
388_.LazyValue { italic = true, }
390-- _.NoiceCmdline = _.NormalFloat
391-- _.NoiceCmdlineIcon { fg = ui_accent, }
392-- _.NoiceCmdlineIconCalculator = _.NoiceCmdlineIcon
393-- _.NoiceCmdlineIconCmdline = _.NoiceCmdlineIcon
394-- _.NoiceCmdlineIconFilter = _.NoiceCmdlineIcon
395-- _.NoiceCmdlineIconHelp = _.NoiceCmdlineIcon
396-- _.NoiceCmdlineIconIncRename = _.NoiceCmdlineIcon
397-- _.NoiceCmdlineIconInput = _.NoiceCmdlineIcon
398-- _.NoiceCmdlineIconLua = _.NoiceCmdlineIcon
399-- _.NoiceCmdlineIconSearch = _.NoiceCmdlineIcon
400--
401-- _.NoiceCmdlinePopup = _.NormalFloat
402-- _.NoiceCmdlinePopupBorder = _.FloatBorder
403-- _.NoiceCmdlinePopupBorderCalculator = _.NoiceCmdlinePopupBorder
404-- _.NoiceCmdlinePopupBorderCmdline = _.NoiceCmdlinePopupBorder
405-- _.NoiceCmdlinePopupBorderFilter = _.NoiceCmdlinePopupBorder
406-- _.NoiceCmdlinePopupBorderHelp = _.NoiceCmdlinePopupBorder
407-- _.NoiceCmdlinePopupBorderIncRename = _.NoiceCmdlinePopupBorder
408-- _.NoiceCmdlinePopupBorderInput = _.NoiceCmdlinePopupBorder
409-- _.NoiceCmdlinePopupBorderLua = _.NoiceCmdlinePopupBorder
410-- _.NoiceCmdlinePopupBorderSearch = _.NoiceCmdlinePopupBorder
411-- _.NoiceCmdlinePopupTitle = _.NoiceCmdlinePopup
412-- _.NoiceCmdlinePrompt = _.NoiceCmdlinePopup
413-- _.NoiceCompletionItemKindDefault { fg = ui_normal, }
414-- _.NoiceCompletionItemKindClass = _.NoiceCompletionItemKindDefault
415-- _.NoiceCompletionItemKindColor = _.NoiceCompletionItemKindDefault
416-- _.NoiceCompletionItemKindConstant = _.NoiceCompletionItemKindDefault
417-- _.NoiceCompletionItemKindConstructor = _.NoiceCompletionItemKindDefault
418-- _.NoiceCompletionItemKindEnum = _.NoiceCompletionItemKindDefault
419-- _.NoiceCompletionItemKindEnumMember = _.NoiceCompletionItemKindDefault
420-- _.NoiceCompletionItemKindField = _.NoiceCompletionItemKindDefault
421-- _.NoiceCompletionItemKindFile = _.NoiceCompletionItemKindDefault
422-- _.NoiceCompletionItemKindFolder = _.NoiceCompletionItemKindDefault
423-- _.NoiceCompletionItemKindFunction = _.NoiceCompletionItemKindDefault
424-- _.NoiceCompletionItemKindInterface = _.NoiceCompletionItemKindDefault
425-- _.NoiceCompletionItemKindKeyword = _.NoiceCompletionItemKindDefault
426-- _.NoiceCompletionItemKindMethod = _.NoiceCompletionItemKindDefault
427-- _.NoiceCompletionItemKindModule = _.NoiceCompletionItemKindDefault
428-- _.NoiceCompletionItemKindProperty = _.NoiceCompletionItemKindDefault
429-- _.NoiceCompletionItemKindSnippet = _.NoiceCompletionItemKindDefault
430-- _.NoiceCompletionItemKindStruct = _.NoiceCompletionItemKindDefault
431-- _.NoiceCompletionItemKindText = _.NoiceCompletionItemKindDefault
432-- _.NoiceCompletionItemKindUnit = _.NoiceCompletionItemKindDefault
433-- _.NoiceCompletionItemKindValue = _.NoiceCompletionItemKindDefault
434-- _.NoiceCompletionItemKindVariable = _.NoiceCompletionItemKindDefault
435-- _.NoiceCompletionItemMenu = _.NoiceCompletionItemKindDefault
436-- _.NoiceCompletionItemWord = _.NoiceCompletionItemKindDefault
437--
438-- _.NoiceConfirm = _.NormalFloat
439-- _.NoiceConfirmBorder = _.FloatBorder
440-- _.NoiceFormatConfirm = _.LazyButton
441-- _.NoiceFormatConfirmDefault = _.LazyButtonActive
442--
443-- _.NoiceCursor = _.Cursor
444--
445-- _.NoiceFormatDate = _.NonText
446-- _.NoiceFormatEvent = _.NonText
447-- _.NoiceFormatKind = _.NonText
448-- _.NoiceFormatLevelDebug { fg = _.Debug.bg, }
449-- _.NoiceFormatLevelError = _.DiagnosticError
450-- _.NoiceFormatLevelInfo = _.DiagnosticInfo
451-- _.NoiceFormatLevelOff { fg = content_minor, }
452-- _.NoiceFormatLevelTrace = _.DiagnosticHint
453-- _.NoiceFormatLevelWarn = _.DiagnosticWarn
454-- _.NoiceFormatProgressDone = _.LazyProgressDone
455-- _.NoiceFormatProgressTodo = _.LazyProgressTodo
456-- _.NoiceFormatTitle = _.Title
457--
458-- _.NoiceLspProgressClient = _.Debug
459-- _.NoiceLspProgressSpinner = _.Debug
460-- _.NoiceLspProgressTitle = _.Debug
461--
462-- _.NoiceMini = _.DiagnosticInfo
463--
464-- _.NoicePopup = _.NormalFloat
465-- _.NoicePopupBorder = _.FloatBorder
466--
467-- _.NoicePopupmenu = _.Pmenu
468-- _.NoicePopupmenuBorder = _.FloatBorder
469-- _.NoicePopupmenuMatch = _.Bold
470-- _.NoicePopupmenuSelected = _.PmenuSel
471--
472-- _.NoiceScrollbar = _.PmenuSbar
473-- _.NoiceScrollbarThumb = _.PmenuThumb
474--
475-- _.NoiceSplit = _.Normal
476-- _.NoiceSplitBorder = _.FloatBorder
477-- _.NoiceVirtualText { fg = ui_important_global, bg = ui_unfocus, }
478-- _.NotifyERRORBorder { fg = _.DiagnosticError.fg, bg = _.FloatBorder.bg, }
479-- _.NotifyWARNBorder { fg = _.DiagnosticWarn.fg, bg = _.FloatBorder.bg, }
480-- _.NotifyINFOBorder { fg = _.DiagnosticInfo.fg, bg = _.FloatBorder.bg, }
481-- _.NotifyDEBUGBorder { fg = _.Debug.bg, bg = _.FloatBorder.bg, }
482-- _.NotifyTRACEBorder { fg = _.DiagnosticHint.fg, bg = _.FloatBorder.bg, }
483--
484-- _.NotifyERRORIcon { fg = _.DiagnosticError.fg, }
485-- _.NotifyWARNIcon { fg = _.DiagnosticWarn.fg, }
486-- _.NotifyINFOIcon { fg = _.DiagnosticInfo.fg, }
487-- _.NotifyDEBUGIcon { fg = _.Debug.bg, }
488-- _.NotifyTRACEIcon { fg = _.DiagnosticHint.fg, }
489--
490-- _.NotifyERRORTitle { fg = _.DiagnosticError.fg, }
491-- _.NotifyWARNTitle { fg = _.DiagnosticWarn.fg, }
492-- _.NotifyINFOTitle { fg = _.DiagnosticInfo.fg, }
493-- _.NotifyDEBUGTitle { fg = _.Debug.bg, }
494-- _.NotifyTRACETitle { fg = _.DiagnosticHint.fg, }
495--
496-- _.NotifyERRORBody = _.NormalFloat
497-- _.NotifyWARNBody = _.NormalFloat
498-- _.NotifyINFOBody = _.NormalFloat
499-- _.NotifyDEBUGBody = _.NormalFloat
500-- _.NotifyTRACEBody = _.NormalFloat
502_.TelescopeSelectionCaret = _.PmenuSel
503_.TelescopeSelection = _.PmenuSel
504_.TelescopeMultiSelection { fg = content_normal, bg = ui_important_local, }
506_.FlashBackdrop {}
507_.FlashMatch = _.IncSearch
508_.FlashCurrent = _.CurSearch
509_.FlashLabel { fg = ui_accent, bg = ui_backdrop, }
511_.GitSignsAdd { fg = _.DiffAdd.fg, bg = _.LineNr.bg, }
512_.GitSignsChange { fg = _.DiffChange.fg, bg = _.LineNr.bg, }
513_.GitSignsDelete { fg = _.DiffDelete.fg, bg = _.LineNr.bg, }
515_.GitSignsChangedelete = _.GitSignsChange
516_.GitSignsTopdelete = _.GitSignsDelete
517_.GitSignsUntracked = _.GitSignsAdd
519_.GitSignsAddNr = _.GitSignsAdd
520_.GitSignsChangeNr = _.GitSignsChange
521_.GitSignsDeleteNr = _.GitSignsDelete
523_.GitSignsChangedeleteNr = _.GitSignsChange
524_.GitSignsTopdeleteNr = _.GitSignsDelete
525_.GitSignsUntrackedNr = _.GitSignsAdd
527_.GitSignsAddLn = _.GitSignsAdd
528_.GitSignsChangeLn = _.GitSignsChange
529_.GitSignsChangedeleteLn = _.GitSignsChange
530_.GitSignsUntrackedLn = _.GitSignsAdd
532_.GitSignsAddPreview = _.GitSignsAdd
533_.GitSignsDeletePreview = _.GitSignsDelete
535_.GitSignsCurrentLineBlame = _.NonText
536_.GitSignsAddInline = _.GitSignsAdd
537_.GitSignsDeleteInline = _.GitSignsDelete
538_.GitSignsChangeInline = _.GitSignsChange
540_.GitSignsAddLnInline = _.DiffText
541_.GitSignsDeleteLnInline = _.DiffText
542_.GitSignsChangeLnInline = _.DiffText
544_.GitSignsDeleteVirtLn = _.GitSignsDelete
545_.GitSignsDeleteVirtLnInLine = _.DiffText
546_.GitSignsVirtLnum { fg = _.LineNr.fg, }
548_.WhichKey { fg = ui_important_global, }
549_.WhichKeyGroup { fg = ui_important_local, }
550_.WhichKeySeparator { fg = ui_minor, }
551_.WhichKeyDesc { fg = ui_normal, }
552_.WhichKeyFloat = _.NormalFloat
553_.WhichKeyBorder = _.FloatBorder
554_.WhichKeyValue = _.Comment
556_.IblIndent = _.Whitespace
557_.IblWhitespace = _.Whitespace
558_.IblScope { fg = ui_focus, bg = _.Normal.bg, }
560_.Hlargs { fg = content_important_local, }
562_.MiniStarterCurrent { fg = ui_normal, bg = ui_accent, }
563_.MiniStarterFooter = _.Keyword
564_.MiniStarterHeader = _.Comment
565_.MiniStarterInactive { fg = content_unfocus, }
566_.MiniStarterItem = _.Normal
567_.MiniStarterItemBullet = _.Whitespace
568_.MiniStarterItemPrefix { fg = content_focus, }
569_.MiniStarterSection { fg = content_important_global, underline = true, }
570_.MiniStarterQuery { fg = content_normal, bg = content_accent, }
572--TODO: Oil highlights
574for name, group in pairs( _.groups ) do
575 local namespace = 0
576 -- vim.print( namespace, name, group )
577 vim.api.nvim_set_hl( namespace, name, group )
578end
580-- vim.print( 'ALL HIGHLIGHTS', _ )

neovim/init.lua

Modified

+3 / −1 text lines

99-- ▀ ▀
1111-- setup debug mode
12require 'std.debug'.toggle()
12-- require 'std.debug'.toggle()
14vim.cmd.colorscheme 'nugu_fresh'
1416local ok, loaded

neovim/lazy-lock.json

Modified

+3 / −3 text lines

3838 "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
3939 "nvim-spectre": { "branch": "master", "commit": "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },
4040 "nvim-surround": { "branch": "main", "commit": "84a26afce16cffa7e3322cfa80a42cddf60616eb" },
41 "nvim-tree.lua": { "branch": "master", "commit": "d35a8d5ec6358ada4b058431b367b32360737466" },
41 "nvim-tree.lua": { "branch": "master", "commit": "707b24af91a1d05823099ed8c5450796290466ba" },
4242 "nvim-treesitter": { "branch": "master", "commit": "f197a15b0d1e8d555263af20add51450e5aaa1f0" },
4343 "nvim-treesitter-textobjects": { "branch": "master", "commit": "d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" },
4444 "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
4545 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
46 "nvim-web-devicons": { "branch": "master", "commit": "75df79feb02d5e0ec114e447453775d4d291ea03" },
46 "nvim-web-devicons": { "branch": "master", "commit": "a851380fbea4c1312d11f13d5cdc86a7a19808dd" },
4747 "nvim-window": { "branch": "main", "commit": "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },
4848 "oil.nvim": { "branch": "master", "commit": "32e18df30f937e02135398c270b72a4d24b40120" },
4949 "persistence.nvim": { "branch": "main", "commit": "ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" },
5050 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
5151 "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
52 "schemastore.nvim": { "branch": "main", "commit": "e97df1d0c525360b392904a0ff8ba8cbb9b8c0e6" },
52 "schemastore.nvim": { "branch": "main", "commit": "7efe039d0675f4f1b03f946cc457891d13a6495f" },
5353 "specs.nvim": { "branch": "main", "commit": "e929006d3f6bb8e43f03e13ac364c67236eb5299" },
5454 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
5555 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },

neovim/lua/bugabinga/lazy.lua

Modified

+30 / −30 text lines

1local win32 = vim.loop.os_uname().sysname:match'Win'
1local win32 = vim.loop.os_uname().sysname:match 'Win'
22local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
3if not vim.loop.fs_stat(lazypath) then
3if not vim.loop.fs_stat( lazypath ) then
44 vim.fn.system {
55 'git',
66 'clone',
1010 lazypath,
1111 }
1212end
13vim.opt.rtp:prepend(lazypath)
13vim.opt.rtp:prepend( lazypath )
1515-- prevents lazy from setting up its highlights.
1616-- those will be setup manually later.
17require('lazy.view.colors').did_setup = true
17require 'lazy.view.colors'.did_setup = true
1919local lazy = require 'lazy'
20local icon = require'std.icon'
20local icon = require 'std.icon'
22lazy.setup('bugabinga.plugins', {
22lazy.setup( 'bugabinga.plugins', {
2323 defaults = {
2424 lazy = true,
2525 -- version = '*',
2626 },
2727 install = {
2828 missing = true,
29 colorscheme = { 'nugu', 'quiet' },
29 colorscheme = { 'nugu_fresh', 'quiet', },
3030 },
3131 checker = {
3232 enabled = not win32,
3333 notify = false,
3434 },
3535 ui = {
36 size = { width = 0.69 , heigth = 0.69 },
36 size = { width = 0.69, heigth = 0.69, },
3737 border = vim.g.border_style,
3838 icons = {
3939 lazy = icon.lazy,
4242 },
4343 },
4444 custom_keys = {
45 ["<localleader>l"] = function(plugin)
46 require("lazy.util").float_term("gitui", {
45 ['<localleader>l'] = function ( plugin )
46 require 'lazy.util'.float_term( 'gitui', {
4747 cwd = plugin.dir,
48 })
48 } )
4949 end,
50 ["<localleader>t"] = function(plugin)
51 require("lazy.util").float_term(nil, {
50 ['<localleader>t'] = function ( plugin )
51 require 'lazy.util'.float_term( nil, {
5252 cwd = plugin.dir,
53 })
53 } )
5454 end,
5555 },
56 change_detection = { notify = false },
56 change_detection = { notify = false, },
5757 performance = {
5858 rtp = {
5959 disabled_plugins = {
8383 },
8484 dev = {
8585 fallback = true,
86 patterns = { 'bugabinga' },
87 path = win32 and 'W:/' or '~/Workspace'
86 patterns = { 'bugabinga', },
87 path = win32 and 'W:/' or '~/Workspace',
8888 },
89})
89} )
9191local map = require 'std.map'
9393local lazy_cmds = vim.iter {
94 { 'Show', '' , lazy.show } ,
95 { 'Install', 'i', lazy.install },
96 { 'Update', 'u', lazy.update },
97 { 'Sync', 's', lazy.sync },
98 { 'Clean', 'x', lazy.clean },
99 { 'Check', 'c', lazy.check },
100 { 'Log', 'l', lazy.log },
101 { 'Restore', 'r', lazy.restore },
102 { 'Profile', 'p', lazy.profile },
103 { 'Debug', 'd', lazy.debug },
94 { 'Show', '', lazy.show, },
95 { 'Install', 'i', lazy.install, },
96 { 'Update', 'u', lazy.update, },
97 { 'Sync', 's', lazy.sync, },
98 { 'Clean', 'x', lazy.clean, },
99 { 'Check', 'c', lazy.check, },
100 { 'Log', 'l', lazy.log, },
101 { 'Restore', 'r', lazy.restore, },
102 { 'Profile', 'p', lazy.profile, },
103 { 'Debug', 'd', lazy.debug, },
106106local base_key = '<leader>z'
108lazy_cmds:each(function(cmd)
108lazy_cmds:each( function ( cmd )
109109 map.normal {
110110 name = cmd[1] .. ' plugins',
111111 category = 'plugins',
112112 keys = base_key .. cmd[2],
113113 command = cmd[3],
114114 }
115end)
115end )

neovim/lua/bugabinga/nugu/init.lua

Modified

+1 / −1 text lines

276276 LazyCommitScope { LazyComment, gui = 'italic' },
277277 LazyCommitType { LazyCommitScope },
278278 LazyDimmed { fg = NormalFloat.fg },
279 LazyDir { N.fgormalFloat },
279 LazyDir { fg = NormalFloat.fg },
280280 LazyH1 { Bold },
281281 LazyH2 { LazyH1 },
282282 LazyLocal {},

neovim/lua/std/map.lua

Modified

+13 / −13 text lines

3232local bind = function ( self, map )
3333 vim.validate {
34 map = { map, 'table' },
35 ['map.keys'] = { map.keys, { 'string', 'table' } },
36 ['map.command'] = { map.command, { 'function', 'string' } },
34 map = { map, 'table', },
35 ['map.keys'] = { map.keys, { 'string', 'table', }, },
36 ['map.command'] = { map.command, { 'function', 'string', }, },
3737 }
3939 local keys = map.keys
5050 desc = map.description,
5151 } )
53 if vim.tbl_isempty( self.mode ) then self.mode[1] = available_modes.normal_visual_select_operator_pending end
53 if vim.tbl_isempty( self.modes ) then self.modes[1] = available_modes.normal_visual_select_operator_pending end
5555 if type( keys ) == 'table' then
5656 for _, key in ipairs( keys ) do
57 vim.keymap.set( self.mode, key, command, options )
57 vim.keymap.set( self.modes, key, command, options )
5858 end
5959 else
60 vim.keymap.set( self.mode, keys, command, options )
60 vim.keymap.set( self.modes, keys, command, options )
6161 end
63 self.mode = {}
63 self.modes = {}
6565 return function ()
66 local delete_options = options.buffer and { buffer = options.buffer } or {}
66 local delete_options = options.buffer and { buffer = options.buffer, } or {}
6767 if type( keys ) == 'table' then
6868 for _, key in ipairs( keys ) do
69 vim.keymap.del( self.mode, key, delete_options )
69 vim.keymap.del( self.modes, key, delete_options )
7070 end
7171 else
72 vim.keymap.del( self.mode, keys, delete_options )
72 vim.keymap.del( self.modes, keys, delete_options )
7373 end
7474 end
7575end
7777local add_mode = function ( self, key )
7878 local new_mode = available_modes[key]
7979 if new_mode == nil then error( 'unknown keymap mode requested: ' .. key ) end
80 if not self.mode[new_mode] then
81 table.insert( self.mode, new_mode )
80 if not self.modes[new_mode] then
81 table.insert( self.modes, new_mode )
8282 end
8383 return self
8484end
8686--- @overload fun(map:table): function
8787local map = setmetatable(
8888 {
89 mode = {},
89 modes = {},
9090 },
9191 {
9292 __index = add_mode,

neovim/neovim/lua/bugabinga/plugins/lush.lua

Added
new file mode 100644

+14 / −0 text lines

1return {
2 {
3 'rktjmp/lush.nvim',
4 -- tag = 'v2.0.1',
5 -- we rely on injects.sym for better treesitter support
6 branch = 'main',
7 -- lazy = false,
8 -- priority = 1000,
9 config = function ()
10 -- disabled to find theming issues with heirline
11 -- vim.cmd.colorscheme 'nugu'
12 end,
13 },
14}

neovim/spell/nerd.utf-8.add

Modified

+1 / −0 text lines

2323neoconf
2424lsp
2525autopairs
26cterm/!

neovim/spell/nerd.utf-8.add.spl

Modified

Binary size (old → new): 340 → 340 bytes.