repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: formatting

3971345702ce18500a3f8748633fa3e17b1c848e

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (6)

neovim/lazy-lock.json

Modified
4 4 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
5 5 "better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" },
6 6 "cmp-omni": { "branch": "main", "commit": "9436e6cdd7c5dfa24a99a60d9280b24dbdea3649" },
7 7 "dressing.nvim": { "branch": "master", "commit": "e6eff7a5a950a853c3903d906dbcea03f778db5f" },
8 + "flash.nvim": { "branch": "main", "commit": "e5a7bd96d0bb7e0806bfc18adea5ab148165bd62" },
8 9 "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" },
9 10 "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" },
10 11 "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" },
10 11 "inc-rename.nvim": { "branch": "main", "commit": "ed0f6f2b917cac4eb3259f907da0a481b27a3b7e" },
11 12 "indent-blankline.nvim": { "branch": "master", "commit": "73640233cca0da8e01aced8c1f9e63fd892128b7" },
12 13 "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
13 - "lush.nvim": { "branch": "main", "commit": "2d753a67616052064db9b2c3e8c7fb55dc3956a2" },
14 + "legendary.nvim": { "branch": "master", "commit": "67acc7d5ce7598ea159e1c689cc0f323bcbfb297" },
15 + "lush.nvim": { "branch": "main", "commit": "a8f0f7b9f837887f13a61d67b40ae26188fe4d62" },
14 16 "neodev.nvim": { "branch": "main", "commit": "da1562e1e3df0e994ddc52cb4ba22376a5d7f2fc" },
15 17 "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
16 18 "noice.nvim": { "branch": "main", "commit": "894db25ec726d32047799d4d0a982b701bec453b" },
25 27 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
26 28 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
27 29 "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" },
28 - "nvim-treesitter": { "branch": "master", "commit": "e8648569d82c7bb46dc511cda9dbec687774461f" },
30 + "nvim-treesitter": { "branch": "master", "commit": "8d5e5dc40a4c480483690777cefb8cf67e710702" },
29 31 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
30 32 "nvim-ts-context-commentstring": { "branch": "main", "commit": "e9062e2dfb9854e6a927370f2d720de354c88524" },
31 33 "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" },
40 42 "telescope.nvim": { "branch": "0.1.x", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
41 43 "todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" },
42 44 "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
43 - "treesj": { "branch": "main", "commit": "3203aa553217921fd4dcb79245f9df07278910b2" },
45 + "treesj": { "branch": "main", "commit": "a0f32947556560f700d2728ad1c87f4257faab38" },
44 46 "twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
45 47 "virt-column.nvim": { "branch": "master", "commit": "1917bfb519729dea7b4f5d13aa9c810c9579b0ea" },
46 48 "zen-mode.nvim": { "branch": "main", "commit": "6e6c963d70a8e47854fa656987666bfb863f9c4e" }

neovim/lua/bugabinga/nugu/init.lua

Modified
1 -local palette = require'bugabinga.nugu.palette'
1 +local palette = require 'bugabinga.nugu.palette'
2 2 local lush = require 'lush'
3 3 local hsl = lush.hsluv
5 -local flux = function(color, number)
5 +local flux = function ( color, number )
6 6 if vim.opt.background:get() == 'dark' then
7 - return color.li(-number)
7 + return color.li( -number )
8 8 else
9 - return color.li(number)
9 + return color.li( number )
13 -local debug = hsl ( palette.debug )
14 -local error = hsl ( palette.error )
15 -local info = hsl ( palette.info )
16 -local warning = hsl ( palette.warning )
13 +local debug = hsl( palette.debug )
14 +local error = hsl( palette.error )
15 +local info = hsl( palette.info )
16 +local warning = hsl( palette.warning )
18 -local content_normal = hsl ( palette.content_normal )
19 -local content_backdrop = hsl ( palette.content_backdrop )
20 -local content_accent = hsl ( palette.content_accent )
21 -local content_minor = hsl ( palette.content_minor )
22 -local content_focus = hsl ( palette.content_focus )
23 -local content_unfocus = hsl ( palette.content_unfocus )
24 -local content_important_global = hsl ( palette.content_important_global )
25 -local content_important_local = hsl ( palette.content_important_local )
18 +local content_normal = hsl( palette.content_normal )
19 +local content_backdrop = hsl( palette.content_backdrop )
20 +local content_accent = hsl( palette.content_accent )
21 +local content_minor = hsl( palette.content_minor )
22 +local content_focus = hsl( palette.content_focus )
23 +local content_unfocus = hsl( palette.content_unfocus )
24 +local content_important_global = hsl( palette.content_important_global )
25 +local content_important_local = hsl( palette.content_important_local )
27 -local ui_normal = hsl ( palette.ui_normal )
28 -local ui_backdrop = hsl ( palette.ui_backdrop )
29 -local ui_accent = hsl ( palette.ui_accent )
30 -local ui_minor = hsl ( palette.ui_minor )
31 -local ui_focus = hsl ( palette.ui_focus )
32 -local ui_unfocus = hsl ( palette.ui_unfocus )
33 -local ui_important_global = hsl ( palette.ui_important_global )
34 -local ui_important_local = hsl ( palette.ui_important_local )
27 +local ui_normal = hsl( palette.ui_normal )
28 +local ui_backdrop = hsl( palette.ui_backdrop )
29 +local ui_accent = hsl( palette.ui_accent )
30 +local ui_minor = hsl( palette.ui_minor )
31 +local ui_focus = hsl( palette.ui_focus )
32 +local ui_unfocus = hsl( palette.ui_unfocus )
33 +local ui_important_global = hsl( palette.ui_important_global )
34 +local ui_important_local = hsl( palette.ui_important_local )
36 -local nugu = lush(function(injects)
36 +local nugu = lush( function ( injects )
37 37 local sym = injects.sym
38 38 return {
39 39 Debug { fg = debug.readable(), bg = debug, gui = 'bold' }, -- debugging statements
45 45 CursorLineNr { fg = ui_focus, bg = ui_backdrop },
46 46 Search { fg = content_important_global.readable(), bg = content_important_global },
47 47 IncSearch { fg = content_important_local.readable(), bg = content_important_local },
49 - NormalFloat { fg = ui_normal, bg = ui_backdrop }, -- Normal text in floating windows.
48 + NormalFloat { fg = ui_normal, bg = ui_backdrop }, -- Normal text in floating windows.
50 49 FloatBorder { fg = ui_accent, bg = NormalFloat.bg },
51 - ColorColumn { fg = ui_important_global, bg = content_backdrop }, -- used for the columns set with 'colorcolumn'
52 - Conceal { fg = content_normal, bg = ui_unfocus, gui = 'italic' }, -- placeholder characters substituted for concealed text (see 'conceallevel')
53 - Cursor { bg = ui_accent }, -- character under the cursor
54 - lCursor { bg = ui_accent }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
55 - CursorIM { bg = ui_accent }, -- like Cursor, but used when in IME mode |CursorIM|
56 - Directory { fg = Normal.fg }, -- directory names (and other special names in listings)
57 - DiffAdd { fg = content_focus }, -- diff mode: Added line |diff.txt|
58 - DiffDelete { fg = content_focus, gui = "strikethrough" }, -- diff mode: Deleted line |diff.txt|
59 - DiffChange { fg = content_important_global }, -- diff mode: Changed line |diff.txt|
60 - DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt|
61 - EndOfBuffer { Normal }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
62 - TermCursor { lCursor }, -- cursor in a focused terminal
63 - TermCursorNC { Cursor }, -- cursor in an unfocused terminal
64 - ErrorMsg { fg = error.readable(), bg = error }, -- error messages on the command line
65 - VertSplit { fg = ui_important_global, bg = content_backdrop }, -- the column separating vertically split windows
66 - Folded { Conceal }, -- line used for closed folds
67 - FoldColumn { Conceal }, -- 'foldcolumn'
68 - SignColumn { bg = ui_backdrop }, -- column where |signs| are displayed
69 - ModeMsg { gui = 'bold' }, -- 'showmode' message (e.g., "-- INSERT -- ")
70 - MsgArea { Normal }, -- Area for messages and cmdline
71 - MsgSeparator { fg = ui_accent }, -- Separator for scrolled messages, `msgsep` flag of 'display'
72 - MoreMsg { Normal }, -- |more-prompt|
73 - NonText { fg = ui_unfocus }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
74 - NormalNC {}, -- normal text in non-current windows
75 - Pmenu { NormalFloat }, -- Popup menu: normal item.
50 + ColorColumn { fg = ui_important_global, bg = content_backdrop }, -- used for the columns set with 'colorcolumn'
51 + Conceal { fg = content_normal, bg = ui_unfocus, gui = 'italic' }, -- placeholder characters substituted for concealed text (see 'conceallevel')
52 + Cursor { bg = ui_accent }, -- character under the cursor
53 + lCursor { bg = ui_accent }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
54 + CursorIM { bg = ui_accent }, -- like Cursor, but used when in IME mode |CursorIM|
55 + Directory { fg = Normal.fg }, -- directory names (and other special names in listings)
56 + DiffAdd { fg = content_focus }, -- diff mode: Added line |diff.txt|
57 + DiffDelete { fg = content_focus, gui = 'strikethrough' }, -- diff mode: Deleted line |diff.txt|
58 + DiffChange { fg = content_important_global }, -- diff mode: Changed line |diff.txt|
59 + DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt|
60 + EndOfBuffer { Normal }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
61 + TermCursor { lCursor }, -- cursor in a focused terminal
62 + TermCursorNC { Cursor }, -- cursor in an unfocused terminal
63 + ErrorMsg { fg = error.readable(), bg = error }, -- error messages on the command line
64 + VertSplit { fg = ui_important_global, bg = content_backdrop }, -- the column separating vertically split windows
65 + Folded { Conceal }, -- line used for closed folds
66 + FoldColumn { Conceal }, -- 'foldcolumn'
67 + SignColumn { bg = ui_backdrop }, -- column where |signs| are displayed
68 + ModeMsg { gui = 'bold' }, -- 'showmode' message (e.g., "-- INSERT -- ")
69 + MsgArea { Normal }, -- Area for messages and cmdline
70 + MsgSeparator { fg = ui_accent }, -- Separator for scrolled messages, `msgsep` flag of 'display'
71 + MoreMsg { Normal }, -- |more-prompt|
72 + NonText { fg = ui_unfocus }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
73 + NormalNC {}, -- normal text in non-current windows
74 + Pmenu { NormalFloat }, -- Popup menu: normal item.
76 75 PmenuSel { fg = ui_focus, sp = ui_focus.readable(), bg = ui_unfocus, gui = 'underline' }, -- Popup menu: selected item.
77 - PmenuSbar { bg = ui_unfocus }, -- Popup menu: scrollbar.
78 - PmenuThumb { bg = ui_minor }, -- Popup menu: Thumb of the scrollbar.
79 - Question { fg = ui_important_global, gui = 'bold' }, -- |hit-enter| prompt and yes/no questions
80 - QuickFixLine { PmenuSel }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
81 - SpecialKey { fg = error, bg = content_unfocus, gui = 'bold' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
82 - SpellBad { fg = error, gui = 'undercurl' }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
83 - SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
84 - SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
85 - SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
86 - StatusLine { fg = ui_normal, bg = ui_backdrop }, -- status line of current window
87 - StatusLineNC { fg = ui_normal, bg = ui_unfocus }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
76 + PmenuSbar { bg = ui_unfocus }, -- Popup menu: scrollbar.
77 + PmenuThumb { bg = ui_minor }, -- Popup menu: Thumb of the scrollbar.
78 + Question { fg = ui_important_global, gui = 'bold' }, -- |hit-enter| prompt and yes/no questions
79 + QuickFixLine { PmenuSel }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
80 + SpecialKey { fg = error, bg = content_unfocus, gui = 'bold' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
81 + SpellBad { fg = error, gui = 'undercurl' }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
82 + SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
83 + SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
84 + SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
85 + StatusLine { fg = ui_normal, bg = ui_backdrop }, -- status line of current window
86 + StatusLineNC { fg = ui_normal, bg = ui_unfocus }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
88 87 Winbar { StatusLine },
89 88 WinbarNC { StatusLineNC },
90 - IndentBlanklineContextChar{ fg = content_accent, gui = "nocombine" },
91 - IndentBlanklineContextStart { sp = IndentBlanklineContextChar.fg, gui = "underline" },
89 + IndentBlanklineContextChar { fg = content_accent, gui = 'nocombine' },
90 + IndentBlanklineContextStart { sp = IndentBlanklineContextChar.fg, gui = 'underline' },
92 91 Title { fg = content_important_global, sp = content_important_global, gui = 'bold underline' }, -- titles for output from ":set all", ":autocmd" etc.
93 - TabLine { StatusLine }, -- tab pages line, not active tab page label
94 - TabLineFill { bg = TabLine.bg }, -- tab pages line, where there are no labels
95 - TabLineSel { fg = ui_accent.readable(), bg = ui_accent, gui = 'underline bold' }, -- tab pages line, active tab page label
96 - Visual { fg = content_focus.readable(), bg = content_focus }, -- Visual mode selection
97 - VisualNOS { fg = Visual.fg, bg = flux(Visual.bg, -42) }, -- Visual mode selection when vim is "Not Owning the Selection".
98 - WarningMsg { fg = warning, gui = 'bold' }, -- warning messages
99 - WhiteSpace { fg = ui_unfocus }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
100 - WildMenu { fg = ui_accent, gui = 'bold' }, -- current match in 'wildmenu' completion
92 + TabLine { StatusLine }, -- tab pages line, not active tab page label
93 + TabLineFill { bg = TabLine.bg }, -- tab pages line, where there are no labels
94 + TabLineSel { fg = ui_accent.readable(), bg = ui_accent, gui = 'underline bold' }, -- tab pages line, active tab page label
95 + Visual { fg = content_focus.readable(), bg = content_focus }, -- Visual mode selection
96 + VisualNOS { fg = Visual.fg, bg = flux( Visual.bg, -42 ) }, -- Visual mode selection when vim is "Not Owning the Selection".
97 + WarningMsg { fg = warning, gui = 'bold' }, -- warning messages
98 + WhiteSpace { fg = ui_unfocus }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
99 + WildMenu { fg = ui_accent, gui = 'bold' }, -- current match in 'wildmenu' completion
102 - String { fg = content_important_local, gui = 'italic' },
103 - Constant { String }, -- (preferred) any constant
104 - Character { String }, -- a character constant: 'c', '\n'
105 - Number { String }, -- a number constant: 234, 0xff
106 - Boolean { String }, -- a boolean constant: TRUE, false
107 - Float { String }, -- a floating point constant: 2.3e10
101 + String { fg = content_important_local, gui = 'italic' },
102 + Constant { String }, -- (preferred) any constant
103 + Character { String }, -- a character constant: 'c', '\n'
104 + Number { String }, -- a number constant: 234, 0xff
105 + Boolean { String }, -- a boolean constant: TRUE, false
106 + Float { String }, -- a floating point constant: 2.3e10
109 - Identifier { Normal }, -- (preferred) any variable name
108 + Identifier { Normal }, -- (preferred) any variable name
110 109 MutableVariable { Debug },
111 - Function { Normal }, -- function name (also: methods for classes)
110 + Function { Normal }, -- function name (also: methods for classes)
113 - Statement { fg = content_minor }, -- (preferred) any statement
114 - Conditional { Statement }, -- if, then, else, endif, switch, etc.
115 - Repeat { Statement }, -- for, do, while, etc.
116 - Label { Statement }, -- case, default, etc.
117 - Operator { Statement }, -- "sizeof", "+", "*", etc.
118 - Keyword { Statement }, -- any other keyword
119 - Exception { Statement }, -- try, catch, throw
112 + Statement { fg = content_minor }, -- (preferred) any statement
113 + Conditional { Statement }, -- if, then, else, endif, switch, etc.
114 + Repeat { Statement }, -- for, do, while, etc.
115 + Label { Statement }, -- case, default, etc.
116 + Operator { Statement }, -- "sizeof", "+", "*", etc.
117 + Keyword { Statement }, -- any other keyword
118 + Exception { Statement }, -- try, catch, throw
121 120 PreProc { fg = content_important_global, bg = content_unfocus, gui = 'bold' }, -- (preferred) generic Preprocessor
122 - Include { PreProc }, -- preprocessor #include
123 - Define { PreProc }, -- preprocessor #define
124 - Macro { PreProc }, -- same as Define
125 - PreCondit { PreProc }, -- preprocessor #if, #else, #endif, etc.
121 + Include { PreProc }, -- preprocessor #include
122 + Define { PreProc }, -- preprocessor #define
123 + Macro { PreProc }, -- same as Define
124 + PreCondit { PreProc }, -- preprocessor #if, #else, #endif, etc.
127 - Type { Statement }, -- (preferred) int, long, char, etc.
128 - StorageClass { Statement }, -- static, register, volatile, etc.
129 - Structure { Statement }, -- struct, union, enum, etc.
130 - Typedef { Statement }, -- A typedef
126 + Type { Statement }, -- (preferred) int, long, char, etc.
127 + StorageClass { Statement }, -- static, register, volatile, etc.
128 + Structure { Statement }, -- struct, union, enum, etc.
129 + Typedef { Statement }, -- A typedef
132 - Special { fg = content_normal, gui = 'italic bold' }, -- (preferred) any special symbol
133 - SpecialChar { Special }, -- special character in a constant
134 - Tag { Special }, -- you can use CTRL-] on this
135 - Delimiter { fg = content_minor }, -- character that needs attention
136 - SpecialComment { Special }, -- special things inside a comment
131 + Special { fg = content_normal, gui = 'italic bold' }, -- (preferred) any special symbol
132 + SpecialChar { Special }, -- special character in a constant
133 + Tag { Special }, -- you can use CTRL-] on this
134 + Delimiter { fg = content_minor }, -- character that needs attention
135 + SpecialComment { Special }, -- special things inside a comment
138 - Underlined { sp = content_normal, gui = 'underline' }, -- (preferred) text that stands out, HTML links
137 + Underlined { sp = content_normal, gui = 'underline' }, -- (preferred) text that stands out, HTML links
139 138 Bold { gui = 'bold' },
140 139 Italic { gui = 'italic' },
142 141 -- ("Ignore", below, may be invisible...)
143 - Ignore { fg = Normal.bg, bg = Normal.bg }, -- (preferred) left blank, hidden |hl-Ignore|
142 + Ignore { fg = Normal.bg, bg = Normal.bg }, -- (preferred) left blank, hidden |hl-Ignore|
145 - Error { fg = error }, -- (preferred) any erroneous construct
144 + Error { fg = error }, -- (preferred) any erroneous construct
147 146 Todo { fg = content_important_global, sp = content_important_global, gui = 'bold underdouble' },
149 147 DiagnosticUnnecessary { fg = ui_focus },
150 148 DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, gui = 'strikethrough' },
152 149 DiagnosticError { fg = error },
153 150 DiagnosticWarn { fg = warning },
154 151 DiagnosticInfo { fg = info },
160 157 DiagnosticVirtualTextInfo { DiagnosticInfo },
161 158 DiagnosticVirtualTextHint { DiagnosticHint },
162 159 DiagnosticVirtualOkHint { DiagnosticOk },
164 160 DiagnosticUnderlineError { fg = DiagnosticError.fg, sp = DiagnosticError.fg, gui = 'underdouble' },
165 161 DiagnosticUnderlineWarn { fg = DiagnosticWarn.fg, sp = DiagnosticWarn.fg, gui = 'underline' },
166 162 DiagnosticUnderlineInfo { fg = DiagnosticInfo.fg, sp = DiagnosticInfo.fg, gui = 'underdashed' },
177 173 LspReferenceRead { LspReferenceText },
178 174 LspReferenceWrite { LspReferenceText },
180 - -- hlargs.nvim
181 - Hlargs { fg = ui_important_local, gui = 'bold underdotted' },
176 + -- hlargs.nvim
177 + Hlargs { fg = ui_important_local, gui = 'bold underdotted' },
183 179 -- Tree-Sitter syntax groups.
246 242 -- lazy.nvim
247 243 LazyButton { NormalFloat, sp = NormalFloat.fg, gui = 'bold' },
248 - LazyButtonActive { fg = ui_important_local.readable(), sp = NormalFloat.fg, bg = ui_important_local, gui = LazyButton.gui },
244 + LazyButtonActive { fg = ui_important_local.readable(), sp = NormalFloat.fg, bg = ui_important_local, gui = LazyButton
245 + .gui },
249 246 LazyComment { Keyword },
250 247 LazyCommit { LazyComment },
251 248 LazyCommitIssue { LazyComment },
279 276 -- Noice
280 277 NoiceCmdline { fg = ui_focus, bg = ui_backdrop },
282 278 NoiceCmdlineIcon { fg = ui_accent, bg = NoiceCmdline.bg, gui = 'bold' },
283 279 NoiceCmdlineIconCalculator { NoiceCmdlineIcon },
284 280 NoiceCmdlineIconCmdline { fg = ui_accent, bg = NoiceCmdlineIcon.bg, gui = NoiceCmdlineIcon.gui },
300 296 NoiceCmdlinePopupBorderLua { NoiceCmdlinePopup },
301 297 NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopup },
302 298 NoiceCmdlinePopupTitle { NoiceCmdlinePopup },
304 299 NoiceCmdlinePrompt { fg = ui_important_global, bg = ui_backdrop, gui = 'bold' },
306 300 NoiceCompletionItemKindDefault { fg = ui_normal },
307 301 NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault },
308 302 NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault },
358 352 NoicePopupBorder { fg = ui_accent, bg = NormalFloat.bg },
360 354 NoicePopupmenu { Pmenu },
361 - NoicePopupmenuBorder { fg = ui_accent , bg = NormalFloat.bg },
355 + NoicePopupmenuBorder { fg = ui_accent, bg = NormalFloat.bg },
362 356 NoicePopupmenuMatch { Bold },
363 357 NoicePopupmenuSelected { PmenuSel },
366 360 NoiceScrollbarThumb { PmenuThumb },
368 362 NoiceSplit { NormalFloat },
369 - NoiceSplitBorder { NoiceConfirmBorder , bg = NormalFloat.bg},
363 + NoiceSplitBorder { NoiceConfirmBorder, bg = NormalFloat.bg },
371 364 NoiceVirtualText { fg = ui_important_local, bg = ui_backdrop, gui = 'bold' },
373 366 -- Notify
374 - NotifyERRORBorder { DiagnosticError , bg = NormalFloat.bg },
375 - NotifyWARNBorder { DiagnosticWarn, bg = NormalFloat.bg },
367 + NotifyERRORBorder { DiagnosticError, bg = NormalFloat.bg },
368 + NotifyWARNBorder { DiagnosticWarn, bg = NormalFloat.bg },
376 369 NotifyINFOBorder { DiagnosticInfo, bg = NormalFloat.bg },
377 - NotifyDEBUGBorder { fg = Debug.bg, bg = NormalFloat.bg },
378 - NotifyTRACEBorder { DiagnosticHint, bg = NormalFloat.bg },
370 + NotifyDEBUGBorder { fg = Debug.bg, bg = NormalFloat.bg },
371 + NotifyTRACEBorder { DiagnosticHint, bg = NormalFloat.bg },
380 373 NotifyERRORIcon { NotifyERRORBorder },
381 374 NotifyWARNIcon { NotifyWARNBorder },
395 388 NotifyDEBUGBody { NormalFloat },
396 389 NotifyTRACEBody { NormalFloat },
391 + TelescopeSelectionCaret { PmenuSel },
392 + TelescopeSelection { PmenuSel },
393 + TelescopeMultiSelection { fg = PmenuSel.fg, bg = ui_important_local },
399 - TelescopeSelectionCaret { PmenuSel },
400 - TelescopeSelection { PmenuSel },
401 - TelescopeMultiSelection { fg = PmenuSel.fg, bg = ui_important_local },
395 + FlashBackdrop {},
396 + FlashMatch { Search },
397 + FlashCurrent { IncSearch },
398 + FlashLabel { gui = 'reverse' },
403 - GitSignsAdd{fg = DiffAdd.fg, bg = ui_backdrop },
404 - GitSignsChange{ fg = DiffChange.fg, bg = ui_backdrop },
405 - GitSignsDelete{ fg = DiffDelete.fg, bg = ui_backdrop },
400 + GitSignsAdd { fg = DiffAdd.fg, bg = ui_backdrop },
401 + GitSignsChange { fg = DiffChange.fg, bg = ui_backdrop },
402 + GitSignsDelete { fg = DiffDelete.fg, bg = ui_backdrop },
407 - GitSignsChangedelete{ GitSignsChange },
408 - GitSignsTopdelete{ GitSignsDelete },
409 - GitSignsUntracked{ GitSignsAdd },
404 + GitSignsChangedelete { GitSignsChange },
405 + GitSignsTopdelete { GitSignsDelete },
406 + GitSignsUntracked { GitSignsAdd },
411 - GitSignsAddNr{ GitSignsAdd },
412 - GitSignsChangeNr{ GitSignsChange },
413 - GitSignsDeleteNr{ GitSignsDelete },
408 + GitSignsAddNr { GitSignsAdd },
409 + GitSignsChangeNr { GitSignsChange },
410 + GitSignsDeleteNr { GitSignsDelete },
415 - GitSignsChangedeleteNr{ GitSignsChange },
416 - GitSignsTopdeleteNr{ GitSignsDelete },
417 - GitSignsUntrackedNr{ GitSignsAdd },
412 + GitSignsChangedeleteNr { GitSignsChange },
413 + GitSignsTopdeleteNr { GitSignsDelete },
414 + GitSignsUntrackedNr { GitSignsAdd },
419 - GitSignsAddLn{ GitSignsAdd },
420 - GitSignsChangeLn{ GitSignsChange },
421 - GitSignsChangedeleteLn{ GitSignsChange },
422 - GitSignsUntrackedLn{ GitSignsAdd },
416 + GitSignsAddLn { GitSignsAdd },
417 + GitSignsChangeLn { GitSignsChange },
418 + GitSignsChangedeleteLn { GitSignsChange },
419 + GitSignsUntrackedLn { GitSignsAdd },
424 - GitSignsAddPreview{ GitSignsAdd },
425 - GitSignsDeletePreview{ GitSignsDelete },
421 + GitSignsAddPreview { GitSignsAdd },
422 + GitSignsDeletePreview { GitSignsDelete },
427 - GitSignsCurrentLineBlame{ Debug },
424 + GitSignsCurrentLineBlame { Debug },
429 - GitSignsAddInline{ GitSignsAdd },
430 - GitSignsDeleteInline{ GitSignsDelete },
431 - GitSignsChangeInline{ GitSignsChange },
426 + GitSignsAddInline { GitSignsAdd },
427 + GitSignsDeleteInline { GitSignsDelete },
428 + GitSignsChangeInline { GitSignsChange },
433 - GitSignsAddLnInline{ DiffText },
434 - GitSignsDeleteLnInline{ DiffText },
435 - GitSignsChangeLnInline{ DiffText },
430 + GitSignsAddLnInline { DiffText },
431 + GitSignsDeleteLnInline { DiffText },
432 + GitSignsChangeLnInline { DiffText },
437 - GitSignsDeleteVirtLn{ GitSignsDelete },
438 - GitSignsDeleteVirtLnInLine{ DiffText },
439 - GitSignsVirtLnum{ fg = LineNr.fg },
434 + GitSignsDeleteVirtLn { GitSignsDelete },
435 + GitSignsDeleteVirtLnInLine { DiffText },
436 + GitSignsVirtLnum { fg = LineNr.fg },
441 -end)
438 +end )
443 440 return nugu

neovim/lua/bugabinga/plugins/dressing.lua

Added
new file mode 100644
1 +return {
2 + 'stevearc/dressing.nvim',
3 + opts = {}
4 +}

neovim/lua/bugabinga/plugins/flash.lua

Added
new file mode 100644
1 +return {
2 + 'folke/flash.nvim',
3 + event = "VeryLazy",
4 + opts = {},
5 + keys = {
6 + { "<cr>", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
7 + { "<s-cr>", mode = { "n", "o", "x" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
8 + { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
9 + { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
10 + { "<cr><cr>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
11 + },

neovim/lua/std/ignored.lua

Modified
19 19 'quickfix',
20 20 'help',
21 21 'nofile',
22 + 'acwrite',
24 25 local as_kv = function(list)

neovim/lua/std/project.lua

Modified
1 -local join = require'std.table'.join
1 +local ignored = require'std.ignored'
2 +local table = require'std.table'
3 +local join = table.join
2 4 local dirname = vim.fs.dirname
3 5 local normalize = vim.fs.normalize
4 -local exists = vim.loop.fs_stat
6 +local exists = vim.uv.fs_stat
5 7 local validate = vim.validate
6 -local table = require'std.table'
8 9 local cache = {}
9 10 local hasher = vim.fn.sha256
26 27 local cache_get = function(path, markers)
27 28 local hash = create_hash(path, markers)
28 29 local hit = cache[hash]
29 - -- vim.print('CACHE GET', hash, hit)
30 30 return hit
32 32 local cache_set = function(project_root, path, markers)
33 33 local hash = create_hash(path, markers)
34 - -- vim.print('CACHE SET', hash, project_root)
35 34 cache[hash] = project_root
100 99 -- stop if we reached the user defined stop instead of the file system root
101 100 local current_path = path
102 101 while current_path ~= stop do
103 - if loop_count > MAX_TRAVERSAL_COUNT then error('searching for markers reached the max traversal count!') end
102 + if loop_count > MAX_TRAVERSAL_COUNT then error(( 'searching for markers reached the max traversal count for path %s !' ):format(path)) end
105 104 local score = {
106 105 path = current_path,