repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: formatting

5362062ab9f5b416376b8db47c3cf7f3989c767a

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (32)

neovim/colors/nugu.lua

Modified
1 1 if vim.g.colors_name == nil then
2 2 -- Get the current hour
3 - local current_hour = tonumber( os.date '%H' )
3 + local current_hour = tonumber( os.date '%H' )
5 5 -- Set the background based on the time of day
6 6 if current_hour >= 9 and current_hour < 17 then
10 10 -- print"setting background to dark"
11 11 vim.opt.background = 'dark'
13 +else
14 + -- Reset all highlights if another colorscheme was previously set
15 + vim.cmd [[ highlight clear ]]
15 18 vim.g.colors_name = 'nugu'
18 21 package.loaded['bugabinga.nugu'] = nil
19 22 package.loaded['bugabinga.nugu.palette'] = nil
21 -local lush = require 'lush'
22 -local nugu = require 'bugabinga.nugu'
23 -lush( nugu )
24 +require 'bugabinga.nugu' ()

neovim/colors/nugu_fresh.lua

Deleted
deleted file mode 100644
1 ---- bugabingas color theme `nugu` for neovim
3 --- Reset all highlights if another colorscheme was previously set
4 -if vim.g.colors_name ~= nil then vim.cmd [[ highlight clear ]] end
6 --- follow convention for others to be able to query current colorscheme
7 -vim.g.colors_name = 'nugu_fresh'
9 -local 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', },
34 -local 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
41 -end
43 -local debug = choose( palette.debug )
44 -local error = choose( palette.error )
45 -local info = choose( palette.info )
46 -local warning = choose( palette.warning )
48 -local content_normal = choose( palette.content_normal )
49 -local content_backdrop = choose( palette.content_backdrop )
50 -local content_accent = choose( palette.content_accent )
51 -local content_minor = choose( palette.content_minor )
52 -local content_focus = choose( palette.content_focus )
53 -local content_unfocus = choose( palette.content_unfocus )
54 -local content_important_global = choose( palette.content_important_global )
55 -local content_important_local = choose( palette.content_important_local )
57 -local ui_normal = choose( palette.ui_normal )
58 -local ui_backdrop = choose( palette.ui_backdrop )
59 -local ui_accent = choose( palette.ui_accent )
60 -local ui_minor = choose( palette.ui_minor )
61 -local ui_focus = choose( palette.ui_focus )
62 -local ui_unfocus = choose( palette.ui_unfocus )
63 -local ui_important_global = choose( palette.ui_important_global )
64 -local ui_important_local = choose( palette.ui_important_local )
66 -vim.g.terminal_color_0 = ui_backdrop -- black
67 -vim.g.terminal_color_1 = content_accent -- maroon
68 -vim.g.terminal_color_2 = info -- green
69 -vim.g.terminal_color_3 = ui_focus -- olive
70 -vim.g.terminal_color_4 = content_important_local -- navy
71 -vim.g.terminal_color_5 = content_important_global -- purple
72 -vim.g.terminal_color_6 = ui_focus -- teal
73 -vim.g.terminal_color_7 = content_normal -- silver
75 -vim.g.terminal_color_8 = ui_minor -- grey
76 -vim.g.terminal_color_9 = error -- red
77 -vim.g.terminal_color_10 = info -- lime
78 -vim.g.terminal_color_11 = content_focus -- yellow
79 -vim.g.terminal_color_12 = ui_important_local -- blue
80 -vim.g.terminal_color_13 = ui_accent -- fuchsia
81 -vim.g.terminal_color_14 = ui_important_global -- aqua
82 -vim.g.terminal_color_15 = ui_normal -- white
84 -local 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
130 -end
132 -local new_group = function ()
133 - return setmetatable( {}, {
134 - __call = set_group_properties,
135 - } )
136 -end
138 -local 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]
143 -end
145 -local 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
155 -end
157 -local _ = 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
574 -for 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 )
578 -end
580 --- vim.print( 'ALL HIGHLIGHTS', _ )

neovim/ftplugin/lua.lua

Modified
1 1 -- Options to add `gf` functionality inside `.lua` files.
2 2 vim.opt_local.include = [[\v<((do|load)file|require)[^''"]*[''"]\zs[^''"]+]]
3 3 vim.opt_local.includeexpr = "substitute(v:fname,'\\.','/','g')"
4 -for _, path in pairs(vim.api.nvim_list_runtime_paths()) do
5 - vim.opt_local.path:append(path .. '/lua')
4 +for _, path in pairs( vim.api.nvim_list_runtime_paths() ) do
5 + vim.opt_local.path:append( path .. '/lua' )
6 6 end
7 7 vim.opt_local.suffixesadd:prepend '.lua'

neovim/init.lua

Modified
11 11 -- setup debug mode
12 12 -- require 'std.debug'.toggle()
14 -vim.cmd.colorscheme 'nugu_fresh'
14 +vim.cmd.colorscheme 'nugu'
16 16 local ok, loaded

neovim/lazy-lock.json

Modified
4 4 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
5 5 "actions-preview.nvim": { "branch": "master", "commit": "5072b1b1065a6b22bdd46b5c21780a91d6a08071" },
6 6 "auto-dark-mode.nvim": { "branch": "master", "commit": "e328dc463d238cb7d690fb4daf068eba732a5a14" },
7 7 "better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" },
8 + "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" },
8 9 "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
9 10 "dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" },
10 11 "fidget.nvim": { "branch": "main", "commit": "4e854f3299e21d1c18279add340428a97520fc44" },
15 16 "hyper.nvim": { "branch": "main", "commit": "b84fb39e703b1dd487d20c4faf028ee51374c88b" },
16 17 "indent-blankline.nvim": { "branch": "master", "commit": "821a7acd88587d966f7e464b0b3031dfe7f5680c" },
17 18 "lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
18 - "lush.nvim": { "branch": "main", "commit": "bc12f010b34cfeefac35720656eb777753b165d9" },
19 19 "mason-tool-installer.nvim": { "branch": "main", "commit": "1212fb6082b7177dde17ea65e429e027835aeb40" },
20 20 "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
21 21 "mini.align": { "branch": "main", "commit": "f845218c5fea89e49074e48270dc5e1b9511a0f9" },
22 22 "mini.bracketed": { "branch": "main", "commit": "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
23 - "mini.colors": { "branch": "main", "commit": "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },
24 23 "mini.starter": { "branch": "main", "commit": "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },
25 24 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
25 + "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" },
26 26 "neogen": { "branch": "main", "commit": "b95347a588401a755eadd17482edc1662876bd58" },
27 27 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
28 28 "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
29 29 "nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
30 - "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
31 30 "nvim-genghis": { "branch": "main", "commit": "8613fc1b43db6cc761733b3630eabff9e86296f7" },
32 31 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
33 32 "nvim-jdtls": { "branch": "master", "commit": "a4746791876166dc146eae573a1b49d24a6652e7" },

neovim/lua/bugabinga/health.lua

Modified
6 6 local _ = {}
8 -local function program_installed(name_of_executable)
9 - return (vim.fn.executable(name_of_executable) ~= 0)
8 +local function program_installed( name_of_executable )
9 + return (vim.fn.executable( name_of_executable ) ~= 0)
12 -local function check_program(name, name_of_executable)
12 +local function check_program( name, name_of_executable )
13 13 local display_name = name and (name .. '(' .. name_of_executable .. ')') or name_of_executable
14 - vim.health.start(display_name .. ' report')
15 - if program_installed(name_of_executable) then
16 - vim.health.ok(display_name .. ' found on system')
14 + vim.health.start( display_name .. ' report' )
15 + if program_installed( name_of_executable ) then
16 + vim.health.ok( display_name .. ' found on system' )
17 17 else
18 - vim.health.error(display_name .. ' is not installed on the system')
18 + vim.health.error( display_name .. ' is not installed on the system' )
22 22 local programs_to_check = {}
24 -_.add_dependency = function(program)
25 - vim.validate{
26 - program = { program, 'table' },
27 - name_of_executable = { program.name_of_executable, 'string' },
24 +_.add_dependency = function ( program )
25 + vim.validate {
26 + program = { program, 'table', },
27 + name_of_executable = { program.name_of_executable, 'string', },
30 - programs_to_check[program.name_of_executable] = program
30 + programs_to_check[program.name_of_executable] = program
32 - -- returns itself so that multiple programs can be chain-added
33 - return _.add_dependency
32 + -- returns itself so that multiple programs can be chain-added
33 + return _.add_dependency
36 -_.check = function()
37 - vim.iter(programs_to_check)
38 - :each(function(_, program)
39 - check_program(program.name, program.name_of_executable)
40 - end)
36 +_.check = function ()
37 + vim.iter( programs_to_check )
38 + :each( function ( _, program )
39 + check_program( program.name, program.name_of_executable )
40 + end )
43 43 return _

neovim/lua/bugabinga/lsp/clients/asm.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'asm-lsp',
5 5 command = 'asm-lsp',
6 - filetypes = { 'asm', 'vmasm' },
6 + filetypes = { 'asm', 'vmasm', },
7 7 root_dir = project.find_vcs_project_root,
8 8 single_file_support = true,
9 9 workspaces = false,

neovim/lua/bugabinga/lsp/clients/bash.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 - name = 'bash-lsp',
5 - command = { 'bash-language-server', 'start' } ,
6 - filetypes = { 'sh' },
4 + name = 'bash-lsp',
5 + command = { 'bash-language-server', 'start', },
6 + filetypes = { 'sh', },
7 7 root_dir = project.find_vcs_project_root,
8 8 single_file_support = true,
9 9 workspaces = false,
10 10 settings = {
11 - bashIde = {
12 - -- Glob pattern for finding and parsing shell script files in the workspace.
13 - -- Used by the background analysis features across files.
11 + bashIde = {
12 + -- Glob pattern for finding and parsing shell script files in the workspace.
13 + -- Used by the background analysis features across files.
15 - -- Prevent recursive scanning which will cause issues when opening a file
16 - -- directly in the home directory (e.g. ~/foo.sh).
17 - --
18 - -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)".
19 - globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
20 - },
15 + -- Prevent recursive scanning which will cause issues when opening a file
16 + -- directly in the home directory (e.g. ~/foo.sh).
17 + --
18 + -- Default upstream pattern is "**/*@(.sh|.inc|.bash|.command)".
19 + globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
21 + },

neovim/lua/bugabinga/lsp/clients/c.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 - name = 'clangd',
4 + name = 'clangd',
5 5 command = 'clangd',
6 6 filetypes = 'c',
7 7 root_dir = project.find_vcs_project_root,
13 13 editsNearCursor = true,
16 - offsetEncoding = { 'utf-8', 'utf-16' },
16 + offsetEncoding = { 'utf-8', 'utf-16', },

neovim/lua/bugabinga/lsp/clients/graphviz.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'dot-lsp',
5 - command = { 'dot-language-server', '--stdio'},
5 + command = { 'dot-language-server', '--stdio', },
6 6 filetypes = 'dot',
7 7 root_dir = project.find_vcs_project_root,
8 8 single_file_support = true,

neovim/lua/bugabinga/lsp/clients/lua.lua

Modified
7 7 root_dir = project.find_lua_project_root,
8 8 single_file_support = true,
9 9 workspaces = true,
10 + before_init = require 'neodev.lsp'.before_init,
10 11 settings = {
11 12 Lua = {
12 - addonManager = { enable = false },
13 - completion = { callSnippet = 'Disable', postfix = '.' },
14 - diagnostics = { globals = { 'vim' }, workspaceRate = 50 },
15 - hint = { enable = true, setType = true },
16 - telemetry = { enable = false },
17 - window = { progressBar = false, statusBar = false },
18 - workspace = { checkThirdParty = false, }
13 + addonManager = { enable = false, },
14 + completion = { callSnippet = 'Disable', postfix = '.', },
15 + diagnostics = { globals = { 'vim', }, workspaceRate = 50, },
16 + hint = { enable = true, setType = true, },
17 + telemetry = { enable = false, },
18 + window = { progressBar = true, statusBar = true, },
19 + workspace = { checkThirdParty = false, },

neovim/lua/bugabinga/lsp/clients/markdown.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'marksman',
5 - command = { 'marksman', 'server' },
5 + command = { 'marksman', 'server', },
6 6 filetypes = 'markdown',
7 - root_dir = function(path)
7 + root_dir = function ( path )
8 8 local markers = {
9 - { name = '.marksman.toml', weight = 10 }
9 + { name = '.marksman.toml', weight = 10, },
11 - return project.find_project_root(path, markers)
11 + return project.find_project_root( path, markers )
12 12 end,
13 13 single_file_support = true,
14 14 workspaces = false,

neovim/lua/bugabinga/lsp/clients/rust.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 -local function is_library(path)
4 - local cargo_home = os.getenv 'CARGO_HOME' or vim.fs.joinpath(vim.env.HOME, '.cargo')
5 - local registry = vim.fs.joinpath(cargo_home, 'registry', 'src')
3 +--TODO: can this be used as general template for all kinds of lsp commands?
4 +local function reload_workspace( bufnr )
5 + local clients = vim.lsp.get_active_clients { name = 'rust_analyzer', bufnr = bufnr, }
6 + for _, client in ipairs( clients ) do
7 + vim.notify 'Reloading Cargo Workspace'
8 + client.request( 'rust-analyzer/reloadWorkspace', nil, function ( err )
9 + if err then
10 + error( tostring( err ) )
11 + end
12 + vim.notify 'Cargo workspace reloaded'
13 + end, 0 )
14 + end
15 +end
7 - local rustup_home = os.getenv 'RUSTUP_HOME' or vim.fs.joinpath(vim.env.HOME, '.rustup')
8 - for _, item in ipairs { toolchains, registry } do
9 - if path:sub(1, #item) == item then
10 - local clients = vim.lsp.get_active_clients { name = 'rust_analyzer' }
17 +local is_descendant = function ( root, path )
18 + if not path then return false end
20 + for directory in vim.fs.parents( path ) do
21 + if vim.fs.normalize( root ) == vim.fs.normalize( directory ) then return true end
22 + end
24 + return false
25 +end
27 +local function is_library( fname )
28 + local user_home = vim.fs.normalize( vim.env.HOME )
29 + local cargo_home = os.getenv 'CARGO_HOME' or vim.fs.joinpath( user_home, '.cargo' )
30 + local registry = vim.fs.joinpath( cargo_home, 'registry', 'src' )
31 + local git_registry = vim.fs.joinpath( cargo_home, 'git', 'checkouts' )
33 + local rustup_home = os.getenv 'RUSTUP_HOME' or vim.fs.joinpath( user_home, '.rustup' )
34 + local toolchains = vim.fs.joinpath( rustup_home, 'toolchains' )
36 + for _, item in ipairs { toolchains, registry, git_registry, } do
37 + if is_descendant( item, fname ) then
38 + local clients = vim.lsp.get_active_clients { name = 'rust_analyzer', }
11 39 return #clients > 0 and clients[#clients].config.root_dir or nil
17 45 return {
18 - name = 'rust-analyzer',
46 + name = 'rust-analyzer',
19 47 command = 'rust-analyzer',
20 48 filetypes = 'rust',
21 - root_dir = function(path)
22 - local library_root = is_library(path)
49 + root_dir = function ( path )
50 + local library_root = is_library( path )
23 51 if library_root then return library_root end
24 - return project.find_rust_project_root(path)
52 + return project.find_rust_project_root( path )
25 53 end,
26 54 capabilities = {
27 55 experimental = {
28 56 serverStatusNotification = true,
59 + commands = {
60 + CargoReload = {
61 + function ()
62 + reload_workspace( 0 )
63 + end,
64 + description = 'Reload current cargo workspace',
65 + },
66 + },

neovim/lua/bugabinga/lsp/clients/toml.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'taplo',
5 - command = { 'taplo', 'lsp', 'stdio' },
5 + command = { 'taplo', 'lsp', 'stdio', },
6 6 root_dir = project.find_vcs_project_root,
7 7 filetypes = 'toml',
8 8 single_file_support = true,

neovim/lua/bugabinga/lsp/clients/vim.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'vim-lsp',
5 - command = { 'vim-language-server', '--stdio' },
5 + command = { 'vim-language-server', '--stdio', },
6 6 filetypes = 'vim',
7 7 root_dir = project.find_vcs_project_root,
8 8 single_file_support = true,
9 9 init_options = {
10 - isNeovim = true,
11 - iskeyword = '@,48-57,_,192-255,-#',
12 - vimruntime = '',
13 - runtimepath = '',
14 - diagnostic = { enable = true },
15 - indexes = {
16 - runtimepath = true,
17 - gap = 100,
18 - count = 3,
19 - projectRootPatterns = { 'runtime', 'nvim', '.git', 'autoload', 'plugin' },
20 - },
21 - suggest = { fromVimruntime = true, fromRuntimepath = true },
10 + isNeovim = true,
11 + iskeyword = '@,48-57,_,192-255,-#',
12 + vimruntime = '',
13 + runtimepath = '',
14 + diagnostic = { enable = true, },
15 + indexes = {
16 + runtimepath = true,
17 + gap = 100,
18 + count = 3,
19 + projectRootPatterns = { 'runtime', 'nvim', '.git', 'autoload', 'plugin', },
21 + suggest = { fromVimruntime = true, fromRuntimepath = true, },
22 + },

neovim/lua/bugabinga/lsp/clients/xml.lua

Modified
1 -local project = require'std.project'
1 +local project = require 'std.project'
3 3 return {
4 4 name = 'lemminx',
5 5 command = 'lemminx',
6 - filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg' },
6 + filetypes = { 'xml', 'xsd', 'xsl', 'xslt', 'svg', },
7 7 root_dir = project.find_vcs_project_root,
8 8 single_file_support = true,

neovim/lua/bugabinga/lsp/init.lua

Modified
50 50 debug.print 'trying to start lsp'
51 51 local match = file_type_event.match
53 - local matches_to_ignore = ignored.filetypes
54 53 debug.print( 'filetypes to ignore', ignored.filetypes, 'current filetype', match )
55 54 if vim.iter( ignored.filetypes ):find( match ) then return end
130 129 cmd_cwd = root_dir,
131 130 -- cmd_env = config.environment,
132 131 detached = false, -- do i want this?
132 + root_dir = root_dir,
133 133 -- workspace_folders = { config.root_dir(buffer_path) }, -- TODO: i think workspaces can only ever be declared per project. i cannot think of a generic way to calculate those, like with root_dir. maybe a toml/ini file in root_dir sets these?
134 134 capabilities = capabilities,
135 135 -- handlers = vim.lsp.handlers,
142 142 on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end,
143 143 before_init = config.before_init,
144 144 -- on_init = nil, -- should i send workspace/didChangeConfiguration here?
145 - on_exit = function ( code, signal, client_id ) vim.print( 'LSP CLIENT EXIT', code, signal, client_id ) end,
146 - on_attach = function ( client, bufnr ) debug.print( 'LSP CLIENT ATTACH', client, bufnr ) end,
147 - trace = 'off',
145 + on_exit = function ( code, signal, client_id ) debug.print( 'LSP CLIENT EXIT', code, signal, client_id ) end,
146 + on_attach = function ( client, attach_bufnr ) debug.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end,
147 + trace = debug.get() and 'on' or 'off',
148 148 flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200, },
149 - root_dir = root_dir,
152 151 local lsp_starter = config.custom_start or vim.lsp.start
226 225 if client.server_capabilities.documentSymbolProvider then
227 - local ok, navic = pcall( require, 'nvim-navic' )
228 - if ok then
229 - vim.notify 'navic ready'
226 + local navic_ok, navic = pcall( require, 'nvim-navic' )
227 + if navic_ok then
230 228 navic.attach( client, bufnr )
232 230 vim.notify 'nvim-navic not found. could not attach to lsp client.'
234 - local ok, navbuddy = pcall( require, 'nvim-navbuddy' )
235 - if ok then
236 - vim.notify 'navbuddy ready'
232 + local navbuddy_ok, navbuddy = pcall( require, 'nvim-navbuddy' )
233 + if navbuddy_ok then
237 234 navbuddy.attach( client, bufnr )
239 236 vim.notify 'nvim-navbuddy not found. could not attach to lsp client.'

neovim/lua/bugabinga/nugu/init.lua

Modified
1 ----@diagnostic disable: undefined-global
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 -- black
7 -vim.g.terminal_color_1 = palette.content_accent -- maroon
8 -vim.g.terminal_color_2 = palette.info -- green
9 -vim.g.terminal_color_3 = palette.ui_focus -- olive
10 -vim.g.terminal_color_4 = palette.content_important_local -- navy
11 -vim.g.terminal_color_5 = palette.content_important_global -- purple
12 -vim.g.terminal_color_6 = palette.ui_focus -- teal
13 -vim.g.terminal_color_7 = palette.content_normal -- silver
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 -- grey
16 -vim.g.terminal_color_9 = palette.error -- red
17 -vim.g.terminal_color_10 = palette.info -- lime
18 -vim.g.terminal_color_11 = palette.content_focus -- yellow
19 -vim.g.terminal_color_12 = palette.ui_important_local -- blue
20 -vim.g.terminal_color_13 = palette.ui_accent -- fuchsia
21 -vim.g.terminal_color_14 = palette.ui_important_global -- aqua
22 -vim.g.terminal_color_15 = palette.ui_normal -- white
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 )
27 - else
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 -- black
28 +vim.g.terminal_color_1 = content_accent -- maroon
29 +vim.g.terminal_color_2 = info -- green
30 +vim.g.terminal_color_3 = ui_focus -- olive
31 +vim.g.terminal_color_4 = content_important_local -- navy
32 +vim.g.terminal_color_5 = content_important_global -- purple
33 +vim.g.terminal_color_6 = ui_focus -- teal
34 +vim.g.terminal_color_7 = content_normal -- silver
36 +vim.g.terminal_color_8 = ui_minor -- grey
37 +vim.g.terminal_color_9 = error -- red
38 +vim.g.terminal_color_10 = info -- lime
39 +vim.g.terminal_color_11 = content_focus -- yellow
40 +vim.g.terminal_color_12 = ui_important_local -- blue
41 +vim.g.terminal_color_13 = ui_accent -- fuchsia
42 +vim.g.terminal_color_14 = ui_important_global -- aqua
43 +vim.g.terminal_color_15 = ui_normal -- white
45 +local set_group_properties = function ( self, properties )
46 + vim.validate {
47 + properties = { properties, 'table', },
48 + -- • fg (or foreground): color name or "#RRGGBB", see note.
49 + ['properties.fg'] = { properties.fg, 'string', true, },
50 + -- • bg (or background): color name or "#RRGGBB", see note.
51 + ['properties.bg'] = { properties.bg, 'string', true, },
52 + -- • sp (or special): color name or "#RRGGBB"
53 + ['properties.sp'] = { properties.sp, 'string', true, },
54 + -- • blend: integer between 0 and 100
55 + ['properties.blend'] = { properties.blend, 'number', true, },
56 + -- • bold: boolean
57 + ['properties.bold'] = { properties.bold, 'boolean', true, },
58 + -- • standout: boolean
59 + ['properties.standout'] = { properties.standout, 'boolean', true, },
60 + -- • underline: boolean
61 + ['properties.underline'] = { properties.underline, 'boolean', true, },
62 + -- • undercurl: boolean
63 + ['properties.undercurl'] = { properties.undercurl, 'boolean', true, },
64 + -- • underdotted: boolean
65 + ['properties.underdotted'] = { properties.underdotted, 'boolean', true, },
66 + -- • underdashed: boolean
67 + ['properties.underdashed'] = { properties.underdashed, 'boolean', true, },
68 + -- • strikethrough: boolean
69 + ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true, },
70 + -- • italic: boolean
71 + ['properties.italic'] = { properties.italic, 'boolean', true, },
72 + -- • reverse: boolean
73 + ['properties.reverse'] = { properties.reverse, 'boolean', true, },
74 + -- • nocombine: boolean
75 + ['properties.nocombine'] = { properties.nocombine, 'boolean', true, },
76 + -- • default: Don't override existing definition |:hi-default|
77 + ['properties.default'] = { properties.default, 'boolean', true, },
78 + -- • ctermfg: Sets foreground of cterm color |ctermfg|
79 + ['properties.ctermfg'] = { properties.ctermfg, 'string', true, },
80 + -- • ctermbg: Sets background of cterm color |ctermbg|
81 + ['properties.ctermbg'] = { properties.ctermbg, 'string', true, },
82 + -- • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above.
83 + ['properties.cterm'] = { properties.cterm, 'table', true, },
84 + -- • force: if true force update the highlight group when it exists.
85 + ['properties.force'] = { properties.force, 'boolean', true, },
86 + }
87 + -- vim.print( 'SET GROUP PROPERTIES', self, properties )
88 + for key, value in pairs( properties ) do
89 + self[key] = value
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,
96 + } )
97 +end
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 ) -- FIXME: this change needs to go into nugu
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()
102 + end
103 + return self.groups[key]
104 +end
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 )
107 + -- vim.print( 'linking group', 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
111 + -- vim.print( 'found group to link ' .. name .. ' to ' .. key )
112 + group.link = name
113 + return group
114 + end
115 + end
116 +end
55 -local nugu = lush( function ( injects )
56 - local sym = injects.sym
57 - return {
58 - Debug { fg = debug.readable(), bg = debug, gui = 'bold' },
118 +local _ = setmetatable( { groups = {}, }, {
119 + __index = add_group,
120 + __newindex = link_group,
121 +} )
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 },
72 - -- lCursor { Cursor },
73 - -- CursorIM { Cursor },
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 },
80 - -- TermCursor { Cursor },
81 - -- TermCursorNC { Cursor },
82 - ErrorMsg { fg = error.readable(), bg = error },
83 - VertSplit { fg = ui_important_global, bg = LineNr.bg },
84 - Folded { Conceal },
85 - FoldColumn { LineNr },
86 - SignColumn { LineNr },
87 - ModeMsg { gui = 'bold' },
88 - MsgArea { Normal },
89 - MsgSeparator { Debug },
90 - MoreMsg { Normal },
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, }
137 +-- _.lCursor = _.Cursor
138 +-- _.CursorIM = _.Cursor
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
145 +-- _.TermCursor = _.Cursor
146 +-- _.TermCursorNC = _.Cursor
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 },
121 - Number { String },
122 - Boolean { String },
123 - Float { String },
183 +_.String { fg = content_important_local, italic = true, }
184 +_.Constant = _.String
185 +_.Character = _.String
186 +_.Number = _.String
187 +_.Boolean = _.String
188 +_.Float = _.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 },
140 - Macro { PreProc },
141 - PreCondit { PreProc },
202 +_.PreProc { fg = content_important_global, bg = content_unfocus, bold = true, }
203 +_.Include = _.PreProc
204 +_.Define = _.PreProc
205 +_.Macro = _.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 },
150 - Tag { Special },
151 - Delimiter { fg = content_minor },
152 - SpecialComment { Special },
213 +_.Special { fg = content_normal, italic = true, bold = true, }
214 +_.SpecialChar = _.Special
215 +_.Tag = _.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
292 +_['@type'] = _.Type
293 +_['@type.definition'] = _.Typedef
294 +_['@storageclass'] = _.StorageClass
295 +_['@structure'] = _.Structure
296 +_['@namespace'] = _.Identifier
297 +_['@include'] = _.Include
298 +_['@preproc'] = _.PreProc
299 +_['@debug'] = _.Debug
300 +_['@tag'] = _.Tag
192 - -- Tree-Sitter syntax groups.
193 - --
194 - -- See :h treesitter-highlight-groups, some groups may not be listed,
195 - -- submit a PR fix to lush-template!
196 - --
197 - -- Tree-Sitter groups are defined with an "@" symbol, which must be
198 - -- specially handled to be valid lua code, we do this via the special
199 - -- sym function. The following are all valid ways to call the sym function,
200 - -- for more details see https://www.lua.org/pil/5.html
201 - --
202 - -- sym("@text.literal")
203 - -- sym('@text.literal')
204 - -- sym"@text.literal"
205 - -- sym'@text.literal'
206 - --
207 - -- For more information see https://github.com/rktjmp/lush.nvim/issues/109
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, }
328 +_.LazyH1 = _.Bold
329 +_.LazyH2 = _.LazyH1
330 +_.LazyLocal {}
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' },
351 +-- _.NoiceCmdline = _.NormalFloat
352 +-- _.NoiceCmdlineIcon { fg = ui_accent, }
353 +-- _.NoiceCmdlineIconCalculator = _.NoiceCmdlineIcon
354 +-- _.NoiceCmdlineIconCmdline = _.NoiceCmdlineIcon
355 +-- _.NoiceCmdlineIconFilter = _.NoiceCmdlineIcon
356 +-- _.NoiceCmdlineIconHelp = _.NoiceCmdlineIcon
357 +-- _.NoiceCmdlineIconIncRename = _.NoiceCmdlineIcon
358 +-- _.NoiceCmdlineIconInput = _.NoiceCmdlineIcon
359 +-- _.NoiceCmdlineIconLua = _.NoiceCmdlineIcon
360 +-- _.NoiceCmdlineIconSearch = _.NoiceCmdlineIcon
362 +-- _.NoiceCmdlinePopup = _.NormalFloat
363 +-- _.NoiceCmdlinePopupBorder = _.FloatBorder
364 +-- _.NoiceCmdlinePopupBorderCalculator = _.NoiceCmdlinePopupBorder
365 +-- _.NoiceCmdlinePopupBorderCmdline = _.NoiceCmdlinePopupBorder
366 +-- _.NoiceCmdlinePopupBorderFilter = _.NoiceCmdlinePopupBorder
367 +-- _.NoiceCmdlinePopupBorderHelp = _.NoiceCmdlinePopupBorder
368 +-- _.NoiceCmdlinePopupBorderIncRename = _.NoiceCmdlinePopupBorder
369 +-- _.NoiceCmdlinePopupBorderInput = _.NoiceCmdlinePopupBorder
370 +-- _.NoiceCmdlinePopupBorderLua = _.NoiceCmdlinePopupBorder
371 +-- _.NoiceCmdlinePopupBorderSearch = _.NoiceCmdlinePopupBorder
372 +-- _.NoiceCmdlinePopupTitle = _.NoiceCmdlinePopup
373 +-- _.NoiceCmdlinePrompt = _.NoiceCmdlinePopup
374 +-- _.NoiceCompletionItemKindDefault { fg = ui_normal, }
375 +-- _.NoiceCompletionItemKindClass = _.NoiceCompletionItemKindDefault
376 +-- _.NoiceCompletionItemKindColor = _.NoiceCompletionItemKindDefault
377 +-- _.NoiceCompletionItemKindConstant = _.NoiceCompletionItemKindDefault
378 +-- _.NoiceCompletionItemKindConstructor = _.NoiceCompletionItemKindDefault
379 +-- _.NoiceCompletionItemKindEnum = _.NoiceCompletionItemKindDefault
380 +-- _.NoiceCompletionItemKindEnumMember = _.NoiceCompletionItemKindDefault
381 +-- _.NoiceCompletionItemKindField = _.NoiceCompletionItemKindDefault
382 +-- _.NoiceCompletionItemKindFile = _.NoiceCompletionItemKindDefault
383 +-- _.NoiceCompletionItemKindFolder = _.NoiceCompletionItemKindDefault
384 +-- _.NoiceCompletionItemKindFunction = _.NoiceCompletionItemKindDefault
385 +-- _.NoiceCompletionItemKindInterface = _.NoiceCompletionItemKindDefault
386 +-- _.NoiceCompletionItemKindKeyword = _.NoiceCompletionItemKindDefault
387 +-- _.NoiceCompletionItemKindMethod = _.NoiceCompletionItemKindDefault
388 +-- _.NoiceCompletionItemKindModule = _.NoiceCompletionItemKindDefault
389 +-- _.NoiceCompletionItemKindProperty = _.NoiceCompletionItemKindDefault
390 +-- _.NoiceCompletionItemKindSnippet = _.NoiceCompletionItemKindDefault
391 +-- _.NoiceCompletionItemKindStruct = _.NoiceCompletionItemKindDefault
392 +-- _.NoiceCompletionItemKindText = _.NoiceCompletionItemKindDefault
393 +-- _.NoiceCompletionItemKindUnit = _.NoiceCompletionItemKindDefault
394 +-- _.NoiceCompletionItemKindValue = _.NoiceCompletionItemKindDefault
395 +-- _.NoiceCompletionItemKindVariable = _.NoiceCompletionItemKindDefault
396 +-- _.NoiceCompletionItemMenu = _.NoiceCompletionItemKindDefault
397 +-- _.NoiceCompletionItemWord = _.NoiceCompletionItemKindDefault
399 +-- _.NoiceConfirm = _.NormalFloat
400 +-- _.NoiceConfirmBorder = _.FloatBorder
401 +-- _.NoiceFormatConfirm = _.LazyButton
402 +-- _.NoiceFormatConfirmDefault = _.LazyButtonActive
404 +-- _.NoiceCursor = _.Cursor
406 +-- _.NoiceFormatDate = _.NonText
407 +-- _.NoiceFormatEvent = _.NonText
408 +-- _.NoiceFormatKind = _.NonText
409 +-- _.NoiceFormatLevelDebug { fg = _.Debug.bg, }
410 +-- _.NoiceFormatLevelError = _.DiagnosticError
411 +-- _.NoiceFormatLevelInfo = _.DiagnosticInfo
412 +-- _.NoiceFormatLevelOff { fg = content_minor, }
413 +-- _.NoiceFormatLevelTrace = _.DiagnosticHint
414 +-- _.NoiceFormatLevelWarn = _.DiagnosticWarn
415 +-- _.NoiceFormatProgressDone = _.LazyProgressDone
416 +-- _.NoiceFormatProgressTodo = _.LazyProgressTodo
417 +-- _.NoiceFormatTitle = _.Title
419 +-- _.NoiceLspProgressClient = _.Debug
420 +-- _.NoiceLspProgressSpinner = _.Debug
421 +-- _.NoiceLspProgressTitle = _.Debug
423 +-- _.NoiceMini = _.DiagnosticInfo
425 +-- _.NoicePopup = _.NormalFloat
426 +-- _.NoicePopupBorder = _.FloatBorder
428 +-- _.NoicePopupmenu = _.Pmenu
429 +-- _.NoicePopupmenuBorder = _.FloatBorder
430 +-- _.NoicePopupmenuMatch = _.Bold
431 +-- _.NoicePopupmenuSelected = _.PmenuSel
433 +-- _.NoiceScrollbar = _.PmenuSbar
434 +-- _.NoiceScrollbarThumb = _.PmenuThumb
436 +-- _.NoiceSplit = _.Normal
437 +-- _.NoiceSplitBorder = _.FloatBorder
438 +-- _.NoiceVirtualText { fg = ui_important_global, bg = ui_unfocus, }
439 +-- _.NotifyERRORBorder { fg = _.DiagnosticError.fg, bg = _.FloatBorder.bg, }
440 +-- _.NotifyWARNBorder { fg = _.DiagnosticWarn.fg, bg = _.FloatBorder.bg, }
441 +-- _.NotifyINFOBorder { fg = _.DiagnosticInfo.fg, bg = _.FloatBorder.bg, }
442 +-- _.NotifyDEBUGBorder { fg = _.Debug.bg, bg = _.FloatBorder.bg, }
443 +-- _.NotifyTRACEBorder { fg = _.DiagnosticHint.fg, bg = _.FloatBorder.bg, }
445 +-- _.NotifyERRORIcon { fg = _.DiagnosticError.fg, }
446 +-- _.NotifyWARNIcon { fg = _.DiagnosticWarn.fg, }
447 +-- _.NotifyINFOIcon { fg = _.DiagnosticInfo.fg, }
448 +-- _.NotifyDEBUGIcon { fg = _.Debug.bg, }
449 +-- _.NotifyTRACEIcon { fg = _.DiagnosticHint.fg, }
451 +-- _.NotifyERRORTitle { fg = _.DiagnosticError.fg, }
452 +-- _.NotifyWARNTitle { fg = _.DiagnosticWarn.fg, }
453 +-- _.NotifyINFOTitle { fg = _.DiagnosticInfo.fg, }
454 +-- _.NotifyDEBUGTitle { fg = _.Debug.bg, }
455 +-- _.NotifyTRACETitle { fg = _.DiagnosticHint.fg, }
457 +-- _.NotifyERRORBody = _.NormalFloat
458 +-- _.NotifyWARNBody = _.NormalFloat
459 +-- _.NotifyINFOBody = _.NormalFloat
460 +-- _.NotifyDEBUGBody = _.NormalFloat
461 +-- _.NotifyTRACEBody = _.NormalFloat
270 - LazyButton { NormalFloat, sp = NormalFloat.fg, gui = 'bold' },
271 - LazyButtonActive { fg = ui_important_local.readable(), sp = NormalFloat.fg, bg = ui_important_local, gui = LazyButton
272 - .gui },
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 },
280 - LazyH1 { Bold },
281 - LazyH2 { LazyH1 },
282 - LazyLocal {},
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 },
467 +_.FlashBackdrop {}
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 },
533 +--TODO: Oil highlights
419 - FlashBackdrop {},
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 }, -- current item.
476 - MiniStarterFooter { Keyword }, -- footer units.
477 - MiniStarterHeader { Comment }, -- header units.
478 - MiniStarterInactive { fg = content_unfocus }, -- inactive item.
479 - MiniStarterItem { Normal }, -- item name.
480 - MiniStarterItemBullet { Whitespace }, -- units from |MiniStarter.gen_hook.adding_bullet|.
481 - MiniStarterItemPrefix { fg = content_focus, gui = '' }, -- unique query for item.
482 - MiniStarterSection { fg = content_important_global, gui = 'underline' }, -- section units.
483 - MiniStarterQuery { fg = content_accent.readable(), bg = content_accent }, -- current query in active items.
484 - }
485 -end )
487 -return nugu
535 +return function ()
536 + preview.setup()
537 + local namespace = 0
538 + for name, group in pairs( _.groups ) do
539 + vim.api.nvim_set_hl( namespace, name, group )
540 + end
541 +end

neovim/lua/bugabinga/nugu/palette.lua

Modified
1 -local choose = function ( variants )
2 - if vim.opt.background:get() == 'dark' then
3 - return variants.dark
4 - else
5 - return variants.light
6 - end
1 +local choose = function ( variants )
2 + ---@diagnostic disable-next-line: undefined-field
3 + if vim.opt.background:get() == 'dark' then
4 + return variants.dark
5 + else
6 + return variants.light
7 + end
9 10 return {
10 - debug = choose { light = '#3dd45d', dark = '#3dd45d' },
11 - error = choose { light = '#740523', dark = '#f27a9a' },
12 - info = choose { light = '#4187a7', dark = '#e7f0f3' },
13 - warning = choose { light = '#a7802d', dark = '#f1e8d6' },
11 + debug = choose { light = '#3dd45d', dark = '#3dd45d', },
12 + error = choose { light = '#740523', dark = '#f27a9a', },
13 + info = choose { light = '#4187a7', dark = '#e7f0f3', },
14 + warning = choose { light = '#a7802d', dark = '#f1e8d6', },
15 - content_normal = choose { light = '#494949', dark = '#cfcfcf' },
16 - content_backdrop = choose { light = '#e3e3e3', dark = '#131313' },
17 - content_accent = choose { light = '#800080', dark = '#800080' },
18 - content_minor = choose { light = '#878787', dark = '#727272' },
19 - content_focus = choose { light = '#646464', dark = '#a5bdb6' },
20 - content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543' },
21 - content_important_global = choose { light = '#48256e', dark = '#8e58cc' },
22 - content_important_local = choose { light = '#643398', dark = '#7a3bc3' },
16 + content_normal = choose { light = '#494949', dark = '#cfcfcf', },
17 + content_backdrop = choose { light = '#e3e3e3', dark = '#131313', },
18 + content_accent = choose { light = '#800080', dark = '#800080', },
19 + content_minor = choose { light = '#878787', dark = '#727272', },
20 + content_focus = choose { light = '#646464', dark = '#a5bdb6', },
21 + content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543', },
22 + content_important_global = choose { light = '#48256e', dark = '#8e58cc', },
23 + content_important_local = choose { light = '#643398', dark = '#7a3bc3', },
24 - ui_normal = choose { light = '#929292', dark = '#e2e2e2' },
25 - ui_backdrop = choose { light = '#f9f9f9', dark = '#000000' },
26 - ui_accent = choose { light = '#d43dd4', dark = '#7a067a' },
27 - ui_minor = choose { light = '#d0d0d0', dark = '#424242' },
28 - ui_focus = choose { light = '#646464', dark = '#788984' },
29 - ui_unfocus = choose { light = '#c9c9c9', dark = '#121212' },
30 - ui_important_global = choose { light = '#9170b5', dark = '#5f368d' },
31 - ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72' },
25 + ui_normal = choose { light = '#929292', dark = '#e2e2e2', },
26 + ui_backdrop = choose { light = '#f9f9f9', dark = '#000000', },
27 + ui_accent = choose { light = '#d43dd4', dark = '#7a067a', },
28 + ui_minor = choose { light = '#d0d0d0', dark = '#424242', },
29 + ui_focus = choose { light = '#646464', dark = '#788984', },
30 + ui_unfocus = choose { light = '#c9c9c9', dark = '#121212', },
31 + ui_important_global = choose { light = '#9170b5', dark = '#5f368d', },
32 + ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72', },

neovim/lua/bugabinga/nugu/preview.lua

Added
new file mode 100644
1 +-- TODO: create preview function, that highlights the current buffer with highlights of the global namespace, if group
2 +-- name matches somewhere in the buffer
3 +-- TODO: create user command for preview
4 +local render = function () end
5 +local setup = function () end
7 +return {
8 + setup = setup,
9 + render = render,

neovim/lua/bugabinga/options/togglers.lua

Modified
51 51 table.insert( togglers, make_toggler( display_name, options ) )
54 -add_toggler( icon.spelling, { make_option 'spell' } )
55 -add_toggler( icon.linenumber, { make_option 'number', make_option 'relativenumber' } )
56 -add_toggler( icon.linehighlight, { make_option 'cursorline' } )
57 -add_toggler( icon.virtual, { make_option ('virtualedit', 'all') } )
54 +add_toggler( icon.spelling, { make_option 'spell', } )
55 +add_toggler( icon.linenumber, { make_option 'number', make_option 'relativenumber', } )
56 +add_toggler( icon.linehighlight, { make_option 'cursorline', } )
57 +add_toggler( icon.virtual, { make_option( 'virtualedit', 'all' ), } )
59 59 local tostring = function ( self )
60 60 return vim.iter( self )

neovim/lua/bugabinga/plugins/auto-dark-mode.lua

Modified
6 6 -- interval of 0 freezes neovim on quit
7 7 -- update_interval = 0,
8 8 update_interval = 5000,
9 - set_dark_mode=function()
9 + set_dark_mode = function ()
10 10 vim.opt.background = 'dark'
11 11 end,
12 - set_light_mode=function()
12 + set_light_mode = function ()
13 13 vim.opt.background = 'light'
14 14 end,

neovim/lua/bugabinga/plugins/better-escape.lua

Modified
1 1 return {
2 - "max397574/better-escape.nvim",
3 - event = "InsertEnter",
4 - opts = {},
2 + 'max397574/better-escape.nvim',
3 + event = 'InsertEnter',
4 + opts = {},

neovim/lua/bugabinga/plugins/colorizer.lua

Modified
1 1 return {
3 - 'NvChad/nvim-colorizer.lua',
4 - event = { 'BufReadPost', 'BufNew' },
3 + 'JosefLitos/colorizer.nvim',
4 + event = { 'BufReadPost', 'BufNew', },
5 5 opts = {
6 - filetypes = { '*' },
6 + filetypes = { '*', },
7 7 user_default_options = {
8 - RGB = true, -- #RGB hex codes
9 - RRGGBB = true, -- #RRGGBB hex codes
10 - names = false, -- "Name" codes like Blue or blue
11 - RRGGBBAA = true, -- #RRGGBBAA hex codes
12 - AARRGGBB = true, -- 0xAARRGGBB hex codes
13 - rgb_fn = true, -- CSS rgb() and rgba() functions
14 - hsl_fn = true, -- CSS hsl() and hsla() functions
15 - css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
16 - css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
8 + RGB = true, -- #RGB hex codes
9 + RRGGBB = true, -- #RRGGBB hex codes
10 + RRGGBBAA = true, -- #RRGGBBAA hex codes
11 + AARRGGBB = true, -- 0xAARRGGBB hex codes
12 + rgb_fn = true, -- CSS rgb() and rgba() functions
13 + hsl_fn = true, -- CSS hsl() and hsla() functions
14 + css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
15 + css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
17 16 -- Available modes for `mode`: foreground, background, virtualtext
18 17 mode = 'virtualtext', -- Set the display mode.
19 - -- Available methods are false / true / "normal" / "lsp" / "both"
20 - -- True is same as normal
21 - tailwind = false, -- Enable tailwind colors
18 + names = function () return require 'bugabinga.nugu.palette' end,
22 19 -- parsers can contain values used in |user_default_options|
23 - sass = { enable = false, parsers = { 'css' } }, -- Enable sass colors
20 + sass = { enable = false, parsers = { 'css', }, }, -- Enable sass colors
24 21 virtualtext = '██',
25 22 -- update color values even if buffer is not focused
26 23 -- example use: cmp_menu, cmp_docs

neovim/lua/bugabinga/plugins/colors.lua

Deleted
deleted file mode 100644
1 -return {
2 - 'echasnovski/mini.colors',
3 - opts = {},
4 -}

neovim/lua/bugabinga/plugins/devicons.lua

Modified
1 -return {{
2 - 'nvim-tree/nvim-web-devicons',
3 - opts = {
4 - -- instead of creating a highlight for every single icon, use only the
5 - -- DefaultDevIcon highlight for all
6 - color_icons = false,
7 - },
8 -}}
1 +return { {
2 + 'nvim-tree/nvim-web-devicons',
3 + opts = {
4 + -- instead of creating a highlight for every single icon, use only the
5 + -- DefaultDevIcon highlight for all
6 + color_icons = false,
7 + },
8 +}, }

neovim/lua/bugabinga/plugins/glow.lua

Modified
1 -local health
1 +require 'bugabinga.health'.add_dependency
2 +{
3 + name = 'Glow',
4 + name_of_executable = 'glow',
5 +}
2 6 return {
3 - "ellisonleao/glow.nvim",
4 - cmd = "Glow",
5 - config = function()
6 - require'bugabinga.health'.add_dependency
7 - {
8 - name = 'Glow',
9 - name_of_executable = 'glow'
10 - }
12 - require'glow'.setup
13 - {
14 - width_ratio = 0.69,
15 - height_ratio = 0.42,
16 - }
17 - end,
7 + 'ellisonleao/glow.nvim',
8 + cmd = 'Glow',
9 + opts = {
10 + width_ratio = 0.69,
11 + height_ratio = 0.42,
12 + },

neovim/lua/bugabinga/plugins/gomove.lua

Modified
4 4 local map = require 'std.map'
6 6 return {
8 8 'booperlv/nvim-gomove',
9 9 keys = {
10 - { '<A-h>', nil, mode = { 'n', 'x' } },
11 - { '<A-j>', nil, mode = { 'n', 'x' } },
12 - { '<A-k>', nil, mode = { 'n', 'x' } },
13 - { '<A-l>', nil, mode = { 'n', 'x' } },
10 + { '<A-h>', nil, mode = { 'n', 'x', }, },
11 + { '<A-j>', nil, mode = { 'n', 'x', }, },
12 + { '<A-k>', nil, mode = { 'n', 'x', }, },
13 + { '<A-l>', nil, mode = { 'n', 'x', }, },
15 - { '<A-H>', nil, mode = { 'n', 'x' } },
16 - { '<A-J>', nil, mode = { 'n', 'x' } },
17 - { '<A-K>', nil, mode = { 'n', 'x' } },
18 - { '<A-L>', nil, mode = { 'n', 'x' } },
15 + { '<A-H>', nil, mode = { 'n', 'x', }, },
16 + { '<A-J>', nil, mode = { 'n', 'x', }, },
17 + { '<A-K>', nil, mode = { 'n', 'x', }, },
18 + { '<A-L>', nil, mode = { 'n', 'x', }, },
20 - config = function()
20 + config = function ()
21 21 local move = require 'gomove'
23 23 move.setup {
31 31 -- default mappings in gomove set no options, but use old keymap api.
32 32 -- recreating old defaults here:
33 - local options = { remap = true }
33 + local options = { remap = true, }
35 35 -- i have tried using the lua functions directly for the commands below.
36 36 -- the behaviour was slightly buggy in respects to block selections though.
42 42 category = 'editing',
43 43 keys = '<A-h>',
44 44 options = options,
45 - command = '<Plug>GoNSMLeft',
45 + command = '<Plug>GoNSMLeft',
47 47 map.normal {
48 48 description = 'Move line down',
49 49 category = 'editing',
50 50 keys = '<A-j>',
51 51 options = options,
52 - command = '<Plug>GoNSMDown',
52 + command = '<Plug>GoNSMDown',
54 54 map.normal {
55 55 description = 'Move line up',
56 56 category = 'editing',
57 57 keys = '<A-k>',
58 58 options = options,
59 - command = '<Plug>GoNSMUp',
59 + command = '<Plug>GoNSMUp',
61 61 map.normal {
62 62 description = 'Move character right',
63 63 category = 'editing',
64 64 keys = '<A-l>',
65 65 options = options,
66 - command = '<Plug>GoNSMRight',
66 + command = '<Plug>GoNSMRight',
69 69 -- VISUAL MOVE
70 70 map.visual {
71 71 description = 'Move block left',
72 72 category = 'editing',
73 - keys = '<A-h>',
73 + keys = '<A-h>',
74 74 options = options,
75 - command = '<Plug>GoVSMLeft',
75 + command = '<Plug>GoVSMLeft',
77 77 map.visual {
78 78 description = 'Move block down',
79 79 category = 'editing',
80 80 keys = '<A-j>',
81 81 options = options,
82 - command = '<Plug>GoVSMDown',
82 + command = '<Plug>GoVSMDown',
84 84 map.visual {
85 85 description = 'Move block up',
86 86 category = 'editing',
87 87 keys = '<A-k>',
88 88 options = options,
89 - command = '<Plug>GoVSMUp',
89 + command = '<Plug>GoVSMUp',
91 91 map.visual {
92 92 description = 'Move block right',
93 93 category = 'editing',
94 94 keys = '<A-l>',
95 95 options = options,
96 - command = '<Plug>GoVSMRight',
96 + command = '<Plug>GoVSMRight',
99 99 -- NORMAL DUPLICATE
102 102 category = 'editing',
103 103 keys = '<A-H>',
104 104 options = options,
105 - command = '<Plug>GoNSDLeft',
105 + command = '<Plug>GoNSDLeft',
107 107 map.normal {
108 108 description = 'Duplicate line down',
109 109 category = 'editing',
110 110 keys = '<A-J>',
111 111 options = options,
112 - command = '<Plug>GoNSDDown',
112 + command = '<Plug>GoNSDDown',
114 114 map.normal {
115 115 description = 'Duplicate line up',
116 116 category = 'editing',
117 117 keys = '<A-K>',
118 118 options = options,
119 - command = '<Plug>GoNSDUp',
119 + command = '<Plug>GoNSDUp',
121 121 map.normal {
122 122 description = 'Duplicate character right',
123 123 category = 'editing',
124 124 keys = '<A-L>',
125 125 options = options,
126 - command = '<Plug>GoNSDRight',
126 + command = '<Plug>GoNSDRight',
129 129 -- VISUAL DUPLICATE
132 132 category = 'editing',
133 133 keys = '<A-H>',
134 134 options = options,
135 - command = '<Plug>GoVSDLeft',
135 + command = '<Plug>GoVSDLeft',
137 137 map.visual {
138 138 description = 'Duplicate block down',
139 139 category = 'editing',
140 140 keys = '<A-J>',
141 141 options = options,
142 - command = '<Plug>GoVSDDown',
142 + command = '<Plug>GoVSDDown',
144 144 map.visual {
145 145 description = 'Duplicate block up',
146 146 category = 'editing',
147 147 keys = '<A-K>',
148 148 options = options,
149 - command = '<Plug>GoVSDUp',
149 + command = '<Plug>GoVSDUp',
151 151 map.visual {
152 152 description = 'Duplicate block right',
153 153 category = 'editing',
154 154 keys = '<A-L>',
155 155 options = options,
156 - command = '<Plug>GoVSDRight',
156 + command = '<Plug>GoVSDRight',

neovim/lua/bugabinga/plugins/lush.lua

Deleted
deleted file mode 100644
1 -return {
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/lua/bugabinga/plugins/neodev.lua

Added
new file mode 100644
1 +return {
2 + 'folke/neodev.nvim',
3 + opts = {
4 + lspconfig = false,
5 + override = function ( root_dir, library )
6 + if root_dir:find( '/etc/nixos', 1, true ) == 1 then
7 + library.enabled = true
8 + library.plugins = true
9 + end
10 + end,
11 + },

neovim/lua/bugabinga/plugins/neogen.lua

Modified
1 -local map = require'std.map'
1 +local map = require 'std.map'
3 3 return {
4 - 'danymat/neogen',
5 - keys = {'<leader>gd'},
6 - dependencies = {'nvim-treesitter/nvim-treesitter'},
7 - config = function()
8 - local neogen = require'neogen'
4 + 'danymat/neogen',
5 + keys = { '<leader>gd', },
6 + dependencies = { 'nvim-treesitter/nvim-treesitter', },
7 + config = function ()
8 + local neogen = require 'neogen'
10 - neogen.setup { }
10 + neogen.setup {}
12 - map.normal {
13 - description = 'Generate doc comment for outer element',
14 - category = 'editing',
15 - keys = '<leader>gd',
16 - command = neogen.generate,
17 - }
18 -
19 - map.normal {
20 - name = 'Generate Doc Comment for Function',
21 - category = "editing",
22 - keys = '<leader>gd' .. 'f',
23 - command = function() neogen.generate { type = 'func' } end,
24 - }
12 + map.normal {
13 + description = 'Generate doc comment for outer element',
14 + category = 'editing',
15 + keys = '<leader>gd',
16 + command = neogen.generate,
17 + }
26 - map.normal {
27 - description = 'Generate Doc Comment for File',
28 - category = "editing",
29 - keys = '<leader>gd' .. 'F',
30 - command = function() neogen.generate { type = 'file' } end,
31 - }
19 + map.normal {
20 + name = 'Generate Doc Comment for Function',
21 + category = 'editing',
22 + keys = '<leader>gd' .. 'f',
23 + command = function () neogen.generate { type = 'func', } end,
24 + }
33 - map.normal {
34 - description = 'Generate Doc Comment for Class',
35 - category = "editing",
36 - keys = '<leader>gd' .. 'c',
37 - command = function() neogen.generate { type = 'class' } end,
38 - }
26 + map.normal {
27 + description = 'Generate Doc Comment for File',
28 + category = 'editing',
29 + keys = '<leader>gd' .. 'F',
30 + command = function () neogen.generate { type = 'file', } end,
31 + }
40 - end,
33 + map.normal {
34 + description = 'Generate Doc Comment for Class',
35 + category = 'editing',
36 + keys = '<leader>gd' .. 'c',
37 + command = function () neogen.generate { type = 'class', } end,
38 + }
39 + end,

neovim/lua/bugabinga/plugins/nrpattern.lua

Modified
1 -return {{
2 - 'zegervdv/nrpattern.nvim',
3 - keys = { '<C-a>', '<C-x>' },
4 - config = function()
5 - local nrpattern = require'nrpattern'
6 - -- this plugin overrides all its settiungs if empty map is given
7 - nrpattern.setup()
8 - end,
9 -}}
1 +return { {
2 + 'zegervdv/nrpattern.nvim',
3 + keys = { '<C-a>', '<C-x>', },
4 + config = function ()
5 + local nrpattern = require 'nrpattern'
6 + -- this plugin overrides all its settiungs if empty map is given
7 + nrpattern.setup()
8 + end,
9 +}, }