My most minimal NixOS configuration.

base commit

Sunglas 67ec71f5

+1
nvim/init.lua
··· 1 + require('base')
+8
nvim/lua/base/auto.lua
··· 1 + local autocmd = vim.api.nvim_create_autocmd -- Create autocmmand 2 + 3 + -- compile latex files on write 4 + autocmd('BufWritePost', { pattern = '*.tex', command = 'silent! execute "!latexmk -f -pdf %" | redraw!' }) 5 + 6 + -- load and make folds 7 + -- autocmd( 'BufLeave' , { pattern = '*.*', command = 'mkview' } ) 8 + -- autocmd( 'BufEnter' , { pattern = '*.*', command = 'loadview' } )
+1042
nvim/lua/base/colors.lua
··· 1 + local g = vim.g 2 + local highlight = vim.api.nvim_set_hl 3 + 4 + local none = "NONE" 5 + -- Background and foreground 6 + local black = "#080808" 7 + local white = "#c6c6c6" 8 + local bg = black 9 + if g.moonflyTransparent then 10 + bg = none 11 + end 12 + -- Variations of charcoal-grey 13 + local grey0 = "#323437" 14 + local grey1 = "#373c4d" 15 + local grey254 = "#e4e4e4" 16 + local grey249 = "#b2b2b2" 17 + local grey247 = "#9e9e9e" 18 + local grey246 = "#949494" 19 + local grey244 = "#808080" 20 + local grey241 = "#626262" 21 + local grey239 = "#4e4e4e" 22 + local grey238 = "#444444" 23 + local grey237 = "#3a3a3a" 24 + local grey236 = "#303030" 25 + local grey235 = "#262626" 26 + local grey234 = "#1c1c1c" 27 + local grey233 = "#121212" 28 + -- Core theme colors 29 + local khaki = "#c2c292" 30 + local yellow = "#e3c78a" 31 + local orange = "#de935f" 32 + local coral = "#f09479" 33 + local orchid = "#e196a2" 34 + local lime = "#85dc85" 35 + local green = "#8cc85f" 36 + local emerald = "#36c692" 37 + local blue = "#80a0ff" 38 + local sky = "#74b2ff" 39 + local turquoise = "#79dac8" 40 + local purple = "#ae81ff" 41 + local cranberry = "#e65e72" 42 + local violet = "#cf87e8" 43 + local crimson = "#ff5189" 44 + local red = "#ff5454" 45 + -- Extra colors 46 + local spring = "#00875f" 47 + 48 + local M = {} 49 + 50 + M.palette = { 51 + black = black, 52 + white = white, 53 + bg = bg, 54 + grey0 = grey0, 55 + grey1 = grey1, 56 + grey254 = grey254, 57 + grey249 = grey249, 58 + grey247 = grey247, 59 + grey246 = grey246, 60 + grey244 = grey244, 61 + grey241 = grey241, 62 + grey239 = grey239, 63 + grey238 = grey238, 64 + grey237 = grey237, 65 + grey236 = grey236, 66 + grey235 = grey235, 67 + grey234 = grey234, 68 + grey233 = grey233, 69 + khaki = khaki, 70 + yellow = yellow, 71 + orange = orange, 72 + coral = coral, 73 + orchid = orchid, 74 + lime = lime, 75 + green = green, 76 + emerald = emerald, 77 + blue = blue, 78 + sky = sky, 79 + turquoise = turquoise, 80 + purple = purple, 81 + cranberry = cranberry, 82 + violet = violet, 83 + crimson = crimson, 84 + red = red, 85 + spring = spring, 86 + } 87 + 88 + M.style = function() 89 + ------------------------------------------------------------------------- 90 + -- Custom styling groups 91 + ------------------------------------------------------------------------- 92 + 93 + highlight(0, "MoonflyVisual", { bg = grey0 }) 94 + highlight(0, "MoonflyWhite", { fg = white }) 95 + highlight(0, "MoonflyGrey0", { fg = grey0 }) 96 + highlight(0, "MoonflyGrey254", { fg = grey254 }) 97 + highlight(0, "MoonflyGrey249", { fg = grey249 }) 98 + highlight(0, "MoonflyGrey247", { fg = grey247 }) 99 + highlight(0, "MoonflyGrey246", { fg = grey246 }) 100 + highlight(0, "MoonflyGrey241", { fg = grey241 }) 101 + highlight(0, "MoonflyGrey239", { fg = grey239 }) 102 + highlight(0, "MoonflyGrey238", { fg = grey238 }) 103 + highlight(0, "MoonflyGrey237", { fg = grey237 }) 104 + highlight(0, "MoonflyGrey236", { fg = grey236 }) 105 + highlight(0, "MoonflyGrey235", { fg = grey235 }) 106 + highlight(0, "MoonflyKhaki", { fg = khaki }) 107 + highlight(0, "MoonflyYellow", { fg = yellow }) 108 + highlight(0, "MoonflyOrange", { fg = orange }) 109 + highlight(0, "MoonflyCoral", { fg = coral }) 110 + highlight(0, "MoonflyOrchid", { fg = orchid }) 111 + highlight(0, "MoonflyLime", { fg = lime }) 112 + highlight(0, "MoonflyGreen", { fg = green }) 113 + highlight(0, "MoonflyEmerald", { fg = emerald }) 114 + highlight(0, "MoonflyBlue", { fg = blue }) 115 + highlight(0, "MoonflySky", { fg = sky }) 116 + highlight(0, "MoonflyTurquoise", { fg = turquoise }) 117 + highlight(0, "MoonflyPurple", { fg = purple }) 118 + highlight(0, "MoonflyCranberry", { fg = cranberry }) 119 + highlight(0, "MoonflyViolet", { fg = violet }) 120 + highlight(0, "MoonflyCrimson", { fg = crimson }) 121 + highlight(0, "MoonflyRed", { fg = red }) 122 + -- Misc helpers 123 + highlight(0, "MoonflyUnderline", { underline = true }) 124 + highlight(0, "MoonflyNoCombine", { nocombine = true }) 125 + -- Statusline helper colors 126 + highlight(0, "MoonflyBlueMode", { bg = blue, fg = grey234 }) 127 + highlight(0, "MoonflyEmeraldMode", { bg = emerald, fg = grey234 }) 128 + highlight(0, "MoonflyPurpleMode", { bg = purple, fg = grey234 }) 129 + highlight(0, "MoonflyCrimsonMode", { bg = crimson, fg = grey234 }) 130 + highlight(0, "MoonflyYellowMode", { bg = yellow, fg = grey234 }) 131 + highlight(0, "MoonflyTurquoiseMode", { bg = turquoise, fg = grey234 }) 132 + -- Generic line helper colors 133 + highlight(0, "MoonflyCrimsonLine", { bg = grey236, fg = crimson }) 134 + highlight(0, "MoonflyEmeraldLine", { bg = grey236, fg = emerald }) 135 + highlight(0, "MoonflyGrey246Line", { bg = grey234, fg = grey246 }) 136 + highlight(0, "MoonflyYellowLine", { bg = grey234, fg = yellow }) 137 + highlight(0, "MoonflyBlueLineActive", { bg = grey238, fg = blue }) 138 + highlight(0, "MoonflyRedLineActive", { bg = grey238, fg = red }) 139 + highlight(0, "MoonflyWhiteLineActive", { bg = grey238, fg = grey254 }) 140 + highlight(0, "MoonflyYellowLineActive", { bg = grey238, fg = yellow }) 141 + -- Diagnostic helper colors 142 + highlight(0, "MoonflyDiagnosticUndercurlError", { undercurl = true, sp = red }) 143 + highlight(0, "MoonflyDiagnosticUndercurlWarn", { undercurl = true, sp = yellow }) 144 + highlight(0, "MoonflyDiagnosticUndercurlInfo", { undercurl = true, sp = sky }) 145 + highlight(0, "MoonflyDiagnosticUndercurlHint", { undercurl = true, sp = white }) 146 + highlight(0, "MoonflyDiagnosticUnderlineError", { underline = true, sp = red }) 147 + highlight(0, "MoonflyDiagnosticUnderlineWarn", { underline = true, sp = yellow }) 148 + highlight(0, "MoonflyDiagnosticUnderlineInfo", { underline = true, sp = sky }) 149 + highlight(0, "MoonflyDiagnosticUnderlineHint", { underline = true, sp = white }) 150 + highlight(0, "MoonflyDiagnosticVirtualTextError", { bg = grey234, fg = red }) 151 + highlight(0, "MoonflyDiagnosticVirtualTextWarn", { bg = grey234, fg = yellow }) 152 + highlight(0, "MoonflyDiagnosticVirtualTextInfo", { bg = grey234, fg = sky }) 153 + highlight(0, "MoonflyDiagnosticVirtualTextHint", { bg = grey234, fg = white }) 154 + 155 + ------------------------------------------------------------------------- 156 + -- Standard styling 157 + ------------------------------------------------------------------------- 158 + 159 + -- Specify the colors used by the inbuilt terminal 160 + if g.moonflyTerminalColors then 161 + g.terminal_color_0 = grey0 162 + g.terminal_color_1 = red 163 + g.terminal_color_2 = green 164 + g.terminal_color_3 = yellow 165 + g.terminal_color_4 = blue 166 + g.terminal_color_5 = violet 167 + g.terminal_color_6 = turquoise 168 + g.terminal_color_7 = white 169 + g.terminal_color_8 = grey246 170 + g.terminal_color_9 = crimson 171 + g.terminal_color_10 = emerald 172 + g.terminal_color_11 = khaki 173 + g.terminal_color_12 = sky 174 + g.terminal_color_13 = purple 175 + g.terminal_color_14 = lime 176 + g.terminal_color_15 = grey254 177 + end 178 + 179 + -- Background and text 180 + highlight(0, "Normal", { bg = bg, fg = white }) 181 + 182 + -- Color of mode text, -- INSERT -- 183 + highlight(0, "ModeMsg", { fg = grey247 }) 184 + 185 + -- Comments 186 + if g.moonflyItalics then 187 + highlight(0, "Comment", { fg = grey246, italic = true }) 188 + else 189 + highlight(0, "Comment", { link = "MoonflyGrey246" }) 190 + end 191 + 192 + -- Functions 193 + highlight(0, "Function", { link = "MoonflySky" }) 194 + 195 + -- Strings 196 + highlight(0, "String", { link = "MoonflyKhaki" }) 197 + 198 + -- Booleans 199 + highlight(0, "Boolean", { link = "MoonflyCranberry" }) 200 + 201 + -- Identifiers 202 + highlight(0, "Identifier", { link = "MoonflyTurquoise" }) 203 + 204 + -- Color of titles 205 + highlight(0, "Title", { fg = orange }) 206 + 207 + -- const, static 208 + highlight(0, "StorageClass", { link = "MoonflyCoral" }) 209 + 210 + -- void, intptr_t 211 + highlight(0, "Type", { fg = emerald }) 212 + 213 + -- Numbers 214 + highlight(0, "Constant", { link = "MoonflyOrange" }) 215 + 216 + -- Character constants 217 + highlight(0, "Character", { link = "MoonflyPurple" }) 218 + 219 + -- Exceptions 220 + highlight(0, "Exception", { link = "MoonflyCrimson" }) 221 + 222 + -- ifdef/endif 223 + highlight(0, "PreProc", { link = "MoonflyCranberry" }) 224 + 225 + -- case in switch statement 226 + highlight(0, "Label", { link = "MoonflyTurquoise" }) 227 + 228 + -- end-of-line '$', end-of-file '~' 229 + highlight(0, "NonText", { fg = grey241 }) 230 + 231 + -- sizeof 232 + highlight(0, "Operator", { link = "MoonflyCranberry" }) 233 + 234 + -- for, while 235 + highlight(0, "Repeat", { link = "MoonflyViolet" }) 236 + 237 + -- Search 238 + highlight(0, "Search", { bg = grey1, fg = grey254 }) 239 + highlight(0, "CurSearch", { bg = coral, fg = black }) 240 + highlight(0, "IncSearch", { bg = yellow, fg = black }) 241 + 242 + -- '\n' sequences 243 + highlight(0, "Special", { link = "MoonflyCranberry" }) 244 + 245 + -- if, else 246 + highlight(0, "Statement", { fg = violet }) 247 + 248 + -- struct, union, enum, typedef 249 + highlight(0, "Structure", { link = "MoonflyBlue" }) 250 + 251 + -- Status, split and tab lines 252 + highlight(0, "StatusLine", { bg = grey236, fg = white }) 253 + highlight(0, "StatusLineNC", { bg = grey236, fg = grey247 }) 254 + highlight(0, "Tabline", { bg = grey236, fg = grey247 }) 255 + highlight(0, "TablineSel", { bg = grey234, fg = blue }) 256 + highlight(0, "TablineSelSymbol", { bg = grey234, fg = emerald }) 257 + highlight(0, "TablineFill", { bg = grey236, fg = grey236 }) 258 + highlight(0, "StatusLineTerm", { bg = grey236, fg = white }) 259 + highlight(0, "StatusLineTermNC", { bg = grey236, fg = grey247 }) 260 + if g.moonflyWinSeparator == 0 then 261 + highlight(0, "VertSplit", { bg = black, fg = black }) 262 + elseif g.moonflyWinSeparator == 1 then 263 + highlight(0, "VertSplit", { bg = grey236, fg = grey236 }) 264 + else 265 + highlight(0, "VertSplit", { bg = none, fg = grey236 }) 266 + end 267 + 268 + -- Visual selection 269 + highlight(0, "Visual", { link = "MoonflyVisual" }) 270 + highlight(0, "VisualNOS", { bg = grey0, fg = white }) 271 + highlight(0, "VisualInDiff", { bg = grey0, fg = white }) 272 + 273 + -- Errors, warnings and whitespace-eol 274 + highlight(0, "Error", { bg = bg, fg = red }) 275 + highlight(0, "ErrorMsg", { bg = bg, fg = red }) 276 + highlight(0, "WarningMsg", { bg = bg, fg = orange }) 277 + 278 + -- Auto-text-completion menu 279 + highlight(0, "Pmenu", { bg = grey235, fg = white }) 280 + highlight(0, "PmenuSel", { bg = spring, fg = grey254 }) 281 + highlight(0, "PmenuSbar", { bg = grey235 }) 282 + highlight(0, "PmenuThumb", { bg = grey244 }) 283 + highlight(0, "WildMenu", { bg = spring, fg = grey254 }) 284 + 285 + -- Spelling errors 286 + if g.moonflyUndercurls then 287 + highlight(0, "SpellBad", { bg = none, undercurl = true, sp = red }) 288 + highlight(0, "SpellCap", { bg = none, undercurl = true, sp = blue }) 289 + highlight(0, "SpellRare", { bg = none, undercurl = true, sp = yellow }) 290 + highlight(0, "SpellLocal", { bg = none, undercurl = true, sp = sky }) 291 + else 292 + highlight(0, "SpellBad", { bg = none, fg = red, underline = true, sp = red }) 293 + highlight(0, "SpellCap", { bg = none, fg = blue, underline = true, sp = blue }) 294 + highlight(0, "SpellRare", { bg = none, fg = yellow, underline = true, sp = yellow }) 295 + highlight(0, "SpellLocal", { bg = none, fg = sky, underline = true, sp = sky }) 296 + end 297 + 298 + -- Misc 299 + highlight(0, "Question", { fg = lime }) 300 + highlight(0, "MoreMsg", { fg = red }) 301 + highlight(0, "LineNr", { bg = bg, fg = grey241 }) 302 + if g.moonflyCursorColor then 303 + highlight(0, "Cursor", { fg = bg, bg = blue }) 304 + else 305 + highlight(0, "Cursor", { fg = bg, bg = grey247 }) 306 + end 307 + highlight(0, "lCursor", { fg = bg, bg = grey247 }) 308 + highlight(0, "CursorLineNr", { bg = grey234, fg = blue }) 309 + highlight(0, "CursorColumn", { bg = grey234 }) 310 + highlight(0, "CursorLine", { bg = grey234 }) 311 + highlight(0, "Folded", { bg = grey234, fg = lime }) 312 + highlight(0, "FoldColumn", { bg = grey236, fg = lime }) 313 + highlight(0, "SignColumn", { bg = bg, fg = lime }) 314 + highlight(0, "Todo", { bg = grey235, fg = yellow }) 315 + highlight(0, "SpecialKey", { bg = bg, fg = sky }) 316 + if g.moonflyUnderlineMatchParen then 317 + highlight(0, "MatchParen", { bg = bg, underline = true }) 318 + else 319 + highlight(0, "MatchParen", { link = "MoonflyVisual" }) 320 + end 321 + highlight(0, "Ignore", { link = "MoonflySky" }) 322 + highlight(0, "Underlined", { fg = emerald }) 323 + highlight(0, "QuickFixLine", { bg = grey237 }) 324 + highlight(0, "Delimiter", { link = "MoonflyWhite" }) 325 + highlight(0, "qfFileName", { link = "MoonflyEmerald" }) 326 + 327 + -- Color column (after line 80) 328 + highlight(0, "ColorColumn", { bg = grey233 }) 329 + 330 + -- Conceal color 331 + highlight(0, "Conceal", { bg = none, fg = grey249 }) 332 + 333 + -- nvim -d 334 + highlight(0, "DiffAdd", { bg = emerald, fg = black }) 335 + highlight(0, "DiffChange", { bg = grey236 }) 336 + highlight(0, "DiffDelete", { bg = grey236, fg = grey241 }) 337 + highlight(0, "DiffText", { bg = blue, fg = black }) 338 + 339 + ------------------------------------------------------------------------- 340 + -- Neovim standard styling 341 + ------------------------------------------------------------------------- 342 + 343 + highlight(0, "Whitespace", { fg = grey0 }) 344 + highlight(0, "TermCursor", { bg = grey247, fg = black }) 345 + if g.moonflyNormalFloat then 346 + highlight(0, "NormalFloat", { bg = bg, fg = grey249 }) 347 + else 348 + highlight(0, "NormalFloat", { bg = grey234, fg = white }) 349 + end 350 + highlight(0, "FloatBorder", { bg = bg, fg = grey236 }) 351 + highlight(0, "WinBar", { bg = grey235, fg = white }) 352 + highlight(0, "WinBarNC", { bg = grey235, fg = grey247 }) 353 + highlight(0, "WinSeparator", { link = "VertSplit" }) 354 + 355 + -- Neovim check-health 356 + highlight(0, "healthSuccess", { link = "DiffAdd" }) 357 + highlight(0, "healthHeadingChar", { link = "MoonflyBlue" }) 358 + highlight(0, "helpHeader", { link = "MoonflyTurquoise" }) 359 + 360 + -- Neovim Tree-sitter 361 + highlight(0, "@annotation", { link = "MoonflyViolet" }) 362 + highlight(0, "@attribute", { link = "MoonflySky" }) 363 + highlight(0, "@constant", { link = "MoonflyTurquoise" }) 364 + highlight(0, "@constant.builtin", { link = "MoonflyGreen" }) 365 + highlight(0, "@constant.macro", { link = "MoonflyViolet" }) 366 + highlight(0, "@constructor", { link = "MoonflyEmerald" }) 367 + highlight(0, "@danger", { link = "Todo" }) 368 + highlight(0, "@error", { link = "MoonflyRed" }) 369 + highlight(0, "@exception", { link = "MoonflyViolet" }) 370 + highlight(0, "@function.builtin", { link = "MoonflySky" }) 371 + highlight(0, "@function.call", { link = "MoonflySky" }) 372 + highlight(0, "@function.macro", { link = "MoonflySky" }) 373 + highlight(0, "@include", { link = "MoonflyCranberry" }) 374 + highlight(0, "@keyword.operator", { link = "MoonflyViolet" }) 375 + highlight(0, "@namespace", { link = "MoonflyTurquoise" }) 376 + highlight(0, "@none", {}) 377 + highlight(0, "@parameter", { link = "MoonflyOrchid" }) 378 + highlight(0, "@property", { link = "MoonflyTurquoise" }) 379 + highlight(0, "@punctuation.special", { link = "MoonflyCranberry" }) 380 + highlight(0, "@string.regex", { link = "MoonflyTurquoise" }) 381 + highlight(0, "@symbol", { link = "MoonflyPurple" }) 382 + highlight(0, "@tag", { link = "MoonflyBlue" }) 383 + highlight(0, "@tag.attribute", { link = "MoonflyTurquoise" }) 384 + highlight(0, "@tag.delimiter", { link = "MoonflyLime" }) 385 + highlight(0, "@text.danger", { link = "MoonflyRed" }) 386 + highlight(0, "@text.diff.add", { link = "DiffAdd" }) 387 + highlight(0, "@text.diff.delete", { link = "DiffDelete" }) 388 + highlight(0, "@text.emphasis", { fg = orchid, italic = true }) 389 + highlight(0, "@text.environment", { link = "MoonflyCranberry" }) 390 + highlight(0, "@text.environment.name", { link = "MoonflyEmerald" }) 391 + highlight(0, "@text.literal", { link = "String" }) 392 + highlight(0, "@text.math", { link = "MoonflyCranberry" }) 393 + highlight(0, "@text.note", { link = "MoonflyGrey246" }) 394 + highlight(0, "@text.reference", { link = "MoonflyGreen" }) 395 + highlight(0, "@text.strike", { strikethrough = true }) 396 + highlight(0, "@text.strong", { link = "MoonflyOrchid" }) 397 + highlight(0, "@text.title", { link = "MoonflyBlue" }) 398 + highlight(0, "@text.todo", { link = "Todo" }) 399 + highlight(0, "@text.underline", { underline = true }) 400 + highlight(0, "@text.uri", { link = "MoonflyPurple" }) 401 + highlight(0, "@text.warning", { link = "MoonflyYellow" }) 402 + highlight(0, "@type.builtin", { link = "MoonflyEmerald" }) 403 + highlight(0, "@type.qualifier", { link = "MoonflyViolet" }) 404 + highlight(0, "@variable", { link = "MoonflyWhite" }) 405 + highlight(0, "@variable.builtin", { link = "MoonflyLime" }) 406 + -- Language specific Tree-sitter overrides. 407 + highlight(0, "@field.yaml", { link = "MoonflyBlue" }) 408 + highlight(0, "@keyword.gitcommit", { link = "MoonflySky" }) 409 + highlight(0, "@parameter.bash", { link = "MoonflyTurquoise" }) 410 + highlight(0, "@punctuation.delimiter.astro", { link = "MoonflyCranberry" }) 411 + highlight(0, "@punctuation.delimiter.css", { link = "MoonflyCranberry" }) 412 + highlight(0, "@punctuation.delimiter.scss", { link = "MoonflyCranberry" }) 413 + highlight(0, "@punctuation.delimiter.yaml", { link = "MoonflyCranberry" }) 414 + highlight(0, "@storageclass.rust", { link = "MoonflyViolet" }) 415 + highlight(0, "@text.reference.gitcommit", { link = "MoonflyBlue" }) 416 + highlight(0, "@text.title.astro", { link = "MoonflyViolet" }) 417 + highlight(0, "@text.title.gitcommit", { link = "MoonflyViolet" }) 418 + highlight(0, "@text.title.help", { link = "MoonflySky" }) 419 + highlight(0, "@text.title.html", { link = "MoonflyViolet" }) 420 + highlight(0, "@text.title.svelte", { link = "MoonflyViolet" }) 421 + highlight(0, "@text.title.vue", { link = "MoonflyViolet" }) 422 + highlight(0, "@text.uri.gitcommit", { link = "MoonflyEmerald" }) 423 + if g.moonflyItalics then 424 + highlight(0, "@text.uri.astro", { fg = violet, italic = true }) 425 + highlight(0, "@text.uri.html", { fg = violet, italic = true }) 426 + highlight(0, "@text.uri.svelte", { fg = violet, italic = true }) 427 + highlight(0, "@text.uri.vue", { fg = violet, italic = true }) 428 + else 429 + highlight(0, "@text.uri.astro", { link = "MoonflyViolet" }) 430 + highlight(0, "@text.uri.html", { link = "MoonflyViolet" }) 431 + highlight(0, "@text.uri.svelte", { link = "MoonflyViolet" }) 432 + highlight(0, "@text.uri.vue", { link = "MoonflyViolet" }) 433 + end 434 + highlight(0, "@variable.scss", { link = "MoonflyTurquoise" }) 435 + highlight(0, "@variable.vim", { link = "MoonflyTurquoise" }) 436 + highlight(0, "@variable.builtin.vim", { link = "MoonflyEmerald" }) 437 + 438 + -- Neovim LSP semantic highlights. 439 + highlight(0, "@lsp.mod.deprecated", { link = "@constant" }) 440 + highlight(0, "@lsp.mod.readonly", { link = "@constant" }) 441 + highlight(0, "@lsp.mod.typeHint", { link = "@type" }) 442 + highlight(0, "@lsp.type.boolean", { link = "@boolean" }) 443 + highlight(0, "@lsp.type.builtinConstant", { link = "@constant.builtin" }) 444 + highlight(0, "@lsp.type.builtinType", { link = "@type.builtin" }) 445 + highlight(0, "@lsp.type.class", { link = "@type" }) 446 + highlight(0, "@lsp.type.enum", { link = "@type" }) 447 + highlight(0, "@lsp.type.enumMember", { link = "@property" }) 448 + highlight(0, "@lsp.type.escapeSequence", { link = "@string.escape" }) 449 + highlight(0, "@lsp.type.formatSpecifier", { link = "@punctuation.special" }) 450 + highlight(0, "@lsp.type.interface", { link = "@type" }) 451 + highlight(0, "@lsp.type.keyword", { link = "@keyword" }) 452 + highlight(0, "@lsp.type.magicFunction", { link = "@function.builtin" }) 453 + highlight(0, "@lsp.type.namespace", { link = "@namespace" }) 454 + highlight(0, "@lsp.type.number", { link = "@number" }) 455 + highlight(0, "@lsp.type.operator", { link = "@operator" }) 456 + highlight(0, "@lsp.type.parameter", { link = "@parameter" }) 457 + highlight(0, "@lsp.type.property", { link = "@property" }) 458 + highlight(0, "@lsp.type.selfKeyword", { link = "@variable.builtin" }) 459 + highlight(0, "@lsp.type.selfParameter", { link = "@variable.builtin" }) 460 + highlight(0, "@lsp.type.struct", { link = "@type" }) 461 + highlight(0, "@lsp.type.typeAlias", { link = "@type.definition" }) 462 + highlight(0, "@lsp.type.unresolvedReference", { link = "@error" }) 463 + highlight(0, "@lsp.type.variable", { link = "@variable" }) 464 + highlight(0, "@lsp.typemod.class.defaultLibrary", { link = "@type.builtin" }) 465 + highlight(0, "@lsp.typemod.enum.defaultLibrary", { link = "@type" }) 466 + highlight(0, "@lsp.typemod.enumMember.defaultLibrary", { link = "@constant.builtin" }) 467 + highlight(0, "@lsp.typemod.function.defaultLibrary", { link = "@function.builtin" }) 468 + highlight(0, "@lsp.typemod.keyword.async", { link = "@keyword" }) 469 + highlight(0, "@lsp.typemod.method.defaultLibrary", { link = "@function.builtin" }) 470 + highlight(0, "@lsp.typemod.operator.injected", { link = "@operator" }) 471 + highlight(0, "@lsp.typemod.string.injected", { link = "@string" }) 472 + highlight(0, "@lsp.typemod.variable.defaultLibrary", { link = "@variable.builtin" }) 473 + highlight(0, "@lsp.typemod.variable.global", { link = "@constant" }) 474 + highlight(0, "@lsp.typemod.variable.injected", { link = "@variable" }) 475 + highlight(0, "@lsp.typemod.variable.readonly", { link = "@constant" }) 476 + highlight(0, "@lsp.typemod.variable.static", { link = "@constant" }) 477 + -- Language specific LSP semantic overrides. 478 + highlight(0, "@lsp.type.macro.rust", { link = "@function" }) 479 + highlight(0, "@lsp.type.parameter.dockerfile", { link = "@property" }) 480 + highlight(0, "@lsp.type.variable.dockerfile", { link = "@function" }) 481 + 482 + -- Neovim Diagnostic 483 + highlight(0, "DiagnosticError", { link = "MoonflyRed" }) 484 + highlight(0, "DiagnosticWarn", { link = "MoonflyYellow" }) 485 + highlight(0, "DiagnosticInfo", { link = "MoonflySky" }) 486 + highlight(0, "DiagnosticHint", { link = "MoonflyWhite" }) 487 + if g.moonflyUndercurls then 488 + highlight(0, "DiagnosticUnderlineError", { link = "MoonflyDiagnosticUndercurlError" }) 489 + highlight(0, "DiagnosticUnderlineWarn", { link = "MoonflyDiagnosticUndercurlWarn" }) 490 + highlight(0, "DiagnosticUnderlineInfo", { link = "MoonflyDiagnosticUndercurlInfo" }) 491 + highlight(0, "DiagnosticUnderlineHint", { link = "MoonflyDiagnosticUndercurlHint" }) 492 + else 493 + highlight(0, "DiagnosticUnderlineError", { link = "MoonflyDiagnosticUnderlineError" }) 494 + highlight(0, "DiagnosticUnderlineWarn", { link = "MoonflyDiagnosticUnderlineWarn" }) 495 + highlight(0, "DiagnosticUnderlineInfo", { link = "MoonflyDiagnosticUnderlineInfo" }) 496 + highlight(0, "DiagnosticUnderlineHint", { link = "MoonflyDiagnosticUnderlineHint" }) 497 + end 498 + if g.moonflyVirtualTextColor then 499 + highlight(0, "DiagnosticVirtualTextError", { link = "MoonflyDiagnosticVirtualTextError" }) 500 + highlight(0, "DiagnosticVirtualTextWarn", { link = "MoonflyDiagnosticVirtualTextWarn" }) 501 + highlight(0, "DiagnosticVirtualTextInfo", { link = "MoonflyDiagnosticVirtualTextInfo" }) 502 + highlight(0, "DiagnosticVirtualTextHint", { link = "MoonflyDiagnosticVirtualTextHint" }) 503 + else 504 + highlight(0, "DiagnosticVirtualTextError", { link = "MoonflyGrey241" }) 505 + highlight(0, "DiagnosticVirtualTextWarn", { link = "MoonflyGrey241" }) 506 + highlight(0, "DiagnosticVirtualTextInfo", { link = "MoonflyGrey241" }) 507 + highlight(0, "DiagnosticVirtualTextHint", { link = "MoonflyGrey241" }) 508 + end 509 + highlight(0, "DiagnosticSignError", { link = "MoonflyRed" }) 510 + highlight(0, "DiagnosticSignWarn", { link = "MoonflyYellow" }) 511 + highlight(0, "DiagnosticSignInfo", { link = "MoonflySky" }) 512 + highlight(0, "DiagnosticSignHint", { link = "MoonflyWhite" }) 513 + highlight(0, "DiagnosticFloatingError", { link = "MoonflyRed" }) 514 + highlight(0, "DiagnosticFloatingWarn", { link = "MoonflyYellow" }) 515 + highlight(0, "DiagnosticFloatingInfo", { link = "MoonflySky" }) 516 + highlight(0, "DiagnosticFloatingHint", { link = "MoonflyWhite" }) 517 + 518 + -- Neovim LSP 519 + highlight(0, "LspCodeLens", { link = "MoonflyGrey241" }) 520 + highlight(0, "LspCodeLensSeparator", { link = "MoonflyGrey241" }) 521 + highlight(0, "LspInfoBorder", { link = "FloatBorder" }) 522 + highlight(0, "LspInlayHint", { bg = grey234, fg = grey246 }) 523 + highlight(0, "LspReferenceText", { link = "MoonflyVisual" }) 524 + highlight(0, "LspReferenceRead", { link = "MoonflyVisual" }) 525 + highlight(0, "LspReferenceWrite", { link = "MoonflyVisual" }) 526 + highlight(0, "LspSignatureActiveParameter", { bg = grey236 }) 527 + 528 + ------------------------------------------------------------------------- 529 + -- Legacy language styling 530 + ------------------------------------------------------------------------- 531 + 532 + -- Markdown, 'tpope/vim-markdown' plugin 533 + highlight(0, "markdownBold", { link = "MoonflyYellow" }) 534 + highlight(0, "markdownCode", { link = "MoonflyKhaki" }) 535 + highlight(0, "markdownCodeDelimiter", { link = "MoonflyKhaki" }) 536 + highlight(0, "markdownError", { link = "NormalNC" }) 537 + highlight(0, "markdownH1", { link = "MoonflyBlue" }) 538 + highlight(0, "markdownH2", { link = "MoonflyBlue" }) 539 + highlight(0, "markdownHeadingRule", { link = "MoonflyCranberry" }) 540 + highlight(0, "markdownItalic", { link = "MoonflyOrchid" }) 541 + highlight(0, "markdownUrl", { link = "MoonflyPurple" }) 542 + 543 + -- Markdown, 'plasticboy/vim-markdown' plugin 544 + highlight(0, "mkdDelimiter", { link = "MoonflyWhite" }) 545 + highlight(0, "mkdLineBreak", { link = "NormalNC" }) 546 + highlight(0, "mkdListItem", { link = "MoonflyBlue" }) 547 + highlight(0, "mkdURL", { link = "MoonflyPurple" }) 548 + 549 + -- Shell 550 + highlight(0, "shAlias", { link = "MoonflyTurquoise" }) 551 + highlight(0, "shCommandSub", { link = "MoonflyWhite" }) 552 + highlight(0, "shCtrlSeq", { link = "MoonflyKhaki" }) 553 + highlight(0, "shLoop", { link = "MoonflyViolet" }) 554 + highlight(0, "shRange", { link = "MoonflyWhite" }) 555 + highlight(0, "shSetList", { link = "MoonflyTurquoise" }) 556 + highlight(0, "shShellVariables", { link = "MoonflyTurquoise" }) 557 + highlight(0, "shVariable", { link = "MoonflyTurquoise" }) 558 + 559 + -- XML 560 + highlight(0, "xmlAttrib", { link = "MoonflyLime" }) 561 + highlight(0, "xmlEndTag", { link = "MoonflyBlue" }) 562 + highlight(0, "xmlTag", { link = "MoonflyLime" }) 563 + highlight(0, "xmlTagName", { link = "MoonflyBlue" }) 564 + 565 + ------------------------------------------------------------------------- 566 + -- Legacy plugin styling 567 + ------------------------------------------------------------------------- 568 + 569 + -- Git commits 570 + highlight(0, "gitCommitBranch", { link = "MoonflySky" }) 571 + highlight(0, "gitCommitDiscardedFile", { link = "MoonflyCrimson" }) 572 + highlight(0, "gitCommitDiscardedType", { link = "MoonflySky" }) 573 + highlight(0, "gitCommitHeader", { link = "MoonflyPurple" }) 574 + highlight(0, "gitCommitSelectedFile", { link = "MoonflyEmerald" }) 575 + highlight(0, "gitCommitSelectedType", { link = "MoonflySky" }) 576 + highlight(0, "gitCommitUntrackedFile", { link = "MoonflyCranberry" }) 577 + highlight(0, "gitEmail", { link = "MoonflyBlue" }) 578 + 579 + -- Git commit diffs 580 + highlight(0, "diffAdded", { link = "MoonflyGreen" }) 581 + highlight(0, "diffChanged", { link = "MoonflyCrimson" }) 582 + highlight(0, "diffIndexLine", { link = "MoonflyCrimson" }) 583 + highlight(0, "diffLine", { link = "MoonflySky" }) 584 + highlight(0, "diffRemoved", { link = "MoonflyRed" }) 585 + highlight(0, "diffSubname", { link = "MoonflySky" }) 586 + 587 + -- Tagbar plugin 588 + highlight(0, "TagbarFoldIcon", { link = "MoonflyGrey247" }) 589 + highlight(0, "TagbarVisibilityPublic", { link = "MoonflyLime" }) 590 + highlight(0, "TagbarVisibilityProtected", { link = "MoonflyLime" }) 591 + highlight(0, "TagbarVisibilityPrivate", { link = "MoonflyLime" }) 592 + highlight(0, "TagbarKind", { link = "MoonflyEmerald" }) 593 + 594 + -- fern.vim plugin 595 + highlight(0, "FernBranchSymbol", { link = "MoonflyGrey246" }) 596 + highlight(0, "FernLeafSymbol", { link = "MoonflyBlue" }) 597 + highlight(0, "FernLeaderSymbol", { link = "MoonflyGrey237" }) 598 + highlight(0, "FernBranchText", { link = "MoonflyBlue" }) 599 + highlight(0, "FernMarkedLine", { link = "MoonflyVisual" }) 600 + highlight(0, "FernMarkedText", { link = "MoonflyCrimson" }) 601 + highlight(0, "FernRootSymbol", { link = "MoonflyPurple" }) 602 + highlight(0, "FernRootText", { link = "MoonflyPurple" }) 603 + 604 + -- fern-git-status.vim plugin 605 + highlight(0, "FernGitStatusBracket", { link = "MoonflyGrey246" }) 606 + highlight(0, "FernGitStatusIndex", { link = "MoonflyEmerald" }) 607 + highlight(0, "FernGitStatusWorktree", { link = "MoonflyCrimson" }) 608 + 609 + -- Glyph palette 610 + highlight(0, "GlyphPalette1", { link = "MoonflyCranberry" }) 611 + highlight(0, "GlyphPalette2", { link = "MoonflyEmerald" }) 612 + highlight(0, "GlyphPalette3", { link = "MoonflyYellow" }) 613 + highlight(0, "GlyphPalette4", { link = "MoonflyBlue" }) 614 + highlight(0, "GlyphPalette6", { link = "MoonflyTurquoise" }) 615 + highlight(0, "GlyphPalette7", { link = "MoonflyWhite" }) 616 + highlight(0, "GlyphPalette9", { link = "MoonflyCrimson" }) 617 + 618 + -- Misc items 619 + highlight(0, "bufExplorerHelp", { link = "MoonflyGrey247" }) 620 + highlight(0, "bufExplorerSortBy", { link = "MoonflyGrey247" }) 621 + highlight(0, "CleverFDefaultLabel", { link = "MoonflyCrimson" }) 622 + highlight(0, "CtrlPMatch", { link = "MoonflyCoral" }) 623 + highlight(0, "Directory", { link = "MoonflyBlue" }) 624 + highlight(0, "erubyDelimiter", { link = "MoonflyCrimson" }) 625 + highlight(0, "helpHeadline", { link = "MoonflyBlue" }) 626 + highlight(0, "helpSectionDelim", { link = "MoonflyBlue" }) 627 + highlight(0, "jsonKeyword", { link = "MoonflySky" }) 628 + highlight(0, "jsonQuote", { link = "MoonflyWhite" }) 629 + highlight(0, "netrwClassify", { link = "MoonflyCranberry" }) 630 + highlight(0, "netrwDir", { link = "MoonflySky" }) 631 + highlight(0, "netrwExe", { link = "MoonflyKhaki" }) 632 + highlight(0, "tagName", { link = "MoonflyTurquoise" }) 633 + highlight(0, "Cheat40Header", { link = "MoonflyBlue" }) 634 + highlight(0, "yamlBlockMappingKey", { link = "MoonflySky" }) 635 + highlight(0, "yamlFlowMappingKey", { link = "MoonflySky" }) 636 + if g.moonflyUnderlineMatchParen then 637 + highlight(0, "MatchWord", { underline = true, sp = coral }) 638 + else 639 + highlight(0, "MatchWord", { link = "MoonflyCoral" }) 640 + end 641 + highlight(0, "snipLeadingSpaces", { bg = bg, fg = white }) 642 + highlight(0, "MatchWordCur", { bg = bg }) 643 + highlight(0, "fishVariable", { link = "MoonflyTurquoise" }) 644 + highlight(0, "fishInnerVariable", { link = "MoonflyTurquoise" }) 645 + 646 + -- FZF plugin 647 + highlight(0, "fzf1", { fg = crimson, bg = grey236 }) 648 + highlight(0, "fzf2", { fg = blue, bg = grey236 }) 649 + highlight(0, "fzf3", { fg = emerald, bg = grey236 }) 650 + highlight(0, "fzfNormal", { fg = grey249 }) 651 + highlight(0, "fzfFgPlus", { fg = grey254 }) 652 + highlight(0, "fzfBorder", { fg = grey236 }) 653 + highlight(0, "fzfSubstring", { fg = coral }) 654 + g.fzf_colors = { 655 + ["fg"] = { "fg", "fzfNormal" }, 656 + ["bg"] = { "bg", "Normal" }, 657 + ["hl"] = { "fg", "fzfSubstring" }, 658 + ["fg+"] = { "fg", "fzfFgPlus" }, 659 + ["bg+"] = { "bg", "Pmenu" }, 660 + ["hl+"] = { "fg", "fzfSubstring" }, 661 + ["info"] = { "fg", "String" }, 662 + ["border"] = { "fg", "fzfBorder" }, 663 + ["prompt"] = { "fg", "fzf2" }, 664 + ["pointer"] = { "fg", "Exception" }, 665 + ["marker"] = { "fg", "StorageClass" }, 666 + ["spinner"] = { "fg", "Type" }, 667 + ["header"] = { "fg", "CursorLineNr" }, 668 + } 669 + 670 + -- mistfly-statusline plugin 671 + highlight(0, "MistflyNormal", { link = "MoonflyBlueMode" }) 672 + highlight(0, "MistflyInsert", { link = "MoonflyEmeraldMode" }) 673 + highlight(0, "MistflyVisual", { link = "MoonflyPurpleMode" }) 674 + highlight(0, "MistflyCommand", { link = "MoonflyYellowMode" }) 675 + highlight(0, "MistflyReplace", { link = "MoonflyCrimsonMode" }) 676 + 677 + -- Coc plugin (see issue: https://github.com/bluz71/vim-nightfly-colors/issues/31) 678 + highlight(0, "CocUnusedHighlight", { link = "MoonflyGrey249" }) 679 + 680 + ------------------------------------------------------------------------- 681 + -- Neovim plugin styling 682 + ------------------------------------------------------------------------- 683 + 684 + -- NvimTree plugin 685 + highlight(0, "NvimTreeFolderIcon", { link = "MoonflyGrey246" }) 686 + highlight(0, "NvimTreeFolderName", { link = "MoonflyBlue" }) 687 + highlight(0, "NvimTreeIndentMarker", { link = "MoonflyGrey237" }) 688 + highlight(0, "NvimTreeOpenedFolderName", { link = "MoonflyBlue" }) 689 + highlight(0, "NvimTreeRootFolder", { link = "MoonflyPurple" }) 690 + highlight(0, "NvimTreeSpecialFile", { link = "MoonflyYellow" }) 691 + highlight(0, "NvimTreeWindowPicker", { link = "DiffChange" }) 692 + highlight(0, "NvimTreeCursorLine", { bg = grey235 }) 693 + highlight(0, "NvimTreeExecFile", { fg = green }) 694 + highlight(0, "NvimTreeImageFile", { fg = violet }) 695 + if g.moonflyTransparent ~= true and g.moonflyNormalFloat ~= true then 696 + highlight(0, "NormalFloat", { bg = bg, fg = grey249 }) 697 + end 698 + highlight(0, "NvimTreeOpenedFile", { fg = yellow }) 699 + highlight(0, "NvimTreeSymlink", { fg = turquoise }) 700 + 701 + -- Neo-tree plugin 702 + highlight(0, "NeoTreeCursorLine", { bg = grey235 }) 703 + highlight(0, "NeoTreeDimText", { link = "MoonflyGrey239" }) 704 + highlight(0, "NeoTreeDirectoryIcon", { link = "MoonflyGrey246" }) 705 + highlight(0, "NeoTreeDotfile", { link = "MoonflyGrey246" }) 706 + highlight(0, "NeoTreeFloatTitle", { bg = grey236, fg = white }) 707 + highlight(0, "NeoTreeFilterTerm", { link = "MoonflyBlue" }) 708 + highlight(0, "NeoTreeGitAdded", { link = "MoonflyGreen" }) 709 + highlight(0, "NeoTreeGitConflict", { link = "MoonflyCrimson" }) 710 + highlight(0, "NeoTreeGitModified", { link = "MoonflyTurquoise" }) 711 + highlight(0, "NeoTreeGitUntracked", { link = "MoonflyOrchid" }) 712 + highlight(0, "NeoTreeIndentMarker", { link = "MoonflyGrey237" }) 713 + highlight(0, "NeoTreeMessage", { link = "MoonflyGrey247" }) 714 + highlight(0, "NeoTreeModified", { link = "MoonflyYellow" }) 715 + highlight(0, "NeoTreeRootName", { link = "MoonflyPurple" }) 716 + highlight(0, "NeoTreeTitleBar", { bg = grey236, fg = white }) 717 + 718 + -- Telescope plugin 719 + highlight(0, "TelescopeBorder", { link = "FloatBorder" }) 720 + highlight(0, "TelescopeMatching", { link = "MoonflyCoral" }) 721 + highlight(0, "TelescopeMultiIcon", { link = "MoonflyCrimson" }) 722 + highlight(0, "TelescopeMultiSelection", { link = "MoonflyEmerald" }) 723 + highlight(0, "TelescopeNormal", { link = "MoonflyGrey249" }) 724 + highlight(0, "TelescopePreviewDate", { link = "MoonflyGrey246" }) 725 + highlight(0, "TelescopePreviewGroup", { link = "MoonflyGrey246" }) 726 + highlight(0, "TelescopePreviewLink", { link = "MoonflyTurquoise" }) 727 + highlight(0, "TelescopePreviewMatch", { link = "MoonflyVisual" }) 728 + highlight(0, "TelescopePreviewRead", { link = "MoonflyOrange" }) 729 + highlight(0, "TelescopePreviewSize", { link = "MoonflyEmerald" }) 730 + highlight(0, "TelescopePreviewUser", { link = "MoonflyGrey246" }) 731 + highlight(0, "TelescopePromptPrefix", { link = "MoonflyBlue" }) 732 + highlight(0, "TelescopeResultsDiffAdd", { link = "MoonflyGreen" }) 733 + highlight(0, "TelescopeResultsDiffChange", { link = "MoonflyRed" }) 734 + highlight(0, "TelescopeResultsDiffDelete", { link = "MoonflyCrimsonLine" }) 735 + highlight(0, "TelescopeResultsSpecialComment", { link = "MoonflyGrey241" }) 736 + highlight(0, "TelescopeSelectionCaret", { link = "MoonflyCrimson" }) 737 + highlight(0, "TelescopeTitle", { link = "MoonflyGrey241" }) 738 + highlight(0, "TelescopeSelection", { bg = grey0, fg = grey254 }) 739 + 740 + -- gitsigns.nvim plugin 741 + -- sign column 742 + highlight(0, "GitSignsAdd", { link = "MoonflyEmerald" }) 743 + highlight(0, "GitSignsChange", { link = "MoonflySky" }) 744 + highlight(0, "GitSignsChangeDelete", { link = "MoonflyCoral" }) 745 + highlight(0, "GitSignsDelete", { link = "MoonflyRed" }) 746 + highlight(0, "GitSignsUntracked", { link = "MoonflyGrey241" }) 747 + -- line highlights 748 + highlight(0, "GitSignsAddLn", { bg = grey235 }) 749 + highlight(0, "GitSignsChangeLn", { bg = grey234 }) 750 + -- word diff 751 + highlight(0, "GitSignsAddLnInline", { bg = grey1 }) 752 + highlight(0, "GitSignsChangeLnInline", { bg = grey1 }) 753 + -- word diff in preview 754 + highlight(0, "GitSignsAddInline", { bg = green, fg = black }) 755 + highlight(0, "GitSignsChangeInline", { bg = yellow, fg = black }) 756 + highlight(0, "GitSignsDeleteInline", { bg = red, fg = black }) 757 + -- misc 758 + highlight(0, "GitSignsAddPreview", { link = "MoonflyEmeraldLine" }) 759 + highlight(0, "GitSignsDeletePreview", { link = "MoonflyCrimsonLine" }) 760 + highlight(0, "GitSignsDeleteVirtLn", { link = "MoonflyCrimsonLine" }) 761 + 762 + -- Hop plugin 763 + highlight(0, "HopCursor", { link = "IncSearch" }) 764 + highlight(0, "HopNextKey", { link = "MoonflyYellow" }) 765 + highlight(0, "HopNextKey1", { link = "MoonflyBlue" }) 766 + highlight(0, "HopNextKey2", { link = "MoonflyCrimson" }) 767 + highlight(0, "HopUnmatched", { link = "MoonflyGrey247" }) 768 + 769 + -- Barbar plugin 770 + highlight(0, "BufferCurrent", { link = "MoonflyWhiteLineActive" }) 771 + highlight(0, "BufferCurrentIndex", { link = "MoonflyWhiteLineActive" }) 772 + highlight(0, "BufferCurrentMod", { link = "MoonflyYellowLineActive" }) 773 + highlight(0, "BufferCurrentSign", { link = "MoonflyBlueLineActive" }) 774 + highlight(0, "BufferCurrentERROR", { link = "MoonflyRedLineActive" }) 775 + highlight(0, "BufferCurrentWARN", { link = "MoonflyYellowLineActive" }) 776 + highlight(0, "BufferCurrentINFO", { link = "MoonflyBlueLineActive" }) 777 + highlight(0, "BufferCurrentHINT", { link = "MoonflyWhiteLineActive" }) 778 + highlight(0, "BufferTabpages", { bg = grey236, fg = blue }) 779 + highlight(0, "BufferVisible", { link = "MoonflyGrey246Line" }) 780 + highlight(0, "BufferVisibleIndex", { link = "MoonflyGrey246Line" }) 781 + highlight(0, "BufferVisibleMod", { link = "MoonflyYellowLine" }) 782 + highlight(0, "BufferVisibleSign", { link = "MoonflyGrey246Line" }) 783 + highlight(0, "BufferVisibleERROR", { bg = grey234, fg = red }) 784 + highlight(0, "BufferVisibleWARN", { bg = grey234, fg = yellow }) 785 + highlight(0, "BufferVisibleINFO", { bg = grey234, fg = blue }) 786 + highlight(0, "BufferVisibleHINT", { bg = grey234, fg = white }) 787 + highlight(0, "BufferInactive", { bg = grey236, fg = grey246 }) 788 + highlight(0, "BufferInactiveMod", { bg = grey236, fg = yellow }) 789 + highlight(0, "BufferInactiveSign", { bg = grey236, fg = grey247 }) 790 + highlight(0, "BufferInactiveERROR", { bg = grey236, fg = red }) 791 + highlight(0, "BufferInactiveWARN", { bg = grey236, fg = yellow }) 792 + highlight(0, "BufferInactiveINFO", { bg = grey236, fg = blue }) 793 + highlight(0, "BufferInactiveHINT", { bg = grey236, fg = white }) 794 + highlight(0, "BufferAlternate", { link = "BufferCurrent" }) 795 + highlight(0, "BufferAlternateIndex", { link = "BufferCurrentIndex" }) 796 + highlight(0, "BufferAlternateMod", { link = "BufferCurrentMod" }) 797 + highlight(0, "BufferAlternateSign", { link = "BufferCurrentSign" }) 798 + highlight(0, "BufferAlternateERROR", { link = "BufferCurrentERROR" }) 799 + highlight(0, "BufferAlternateWARN", { link = "BufferCurrentWARN" }) 800 + highlight(0, "BufferAlternateINFO", { link = "BufferCurrentINFO" }) 801 + highlight(0, "BufferAlternateHINT", { link = "BufferCurrentHINT" }) 802 + 803 + -- Bufferline plugin 804 + highlight(0, "BufferLineTabSelected", { fg = blue }) 805 + highlight(0, "BufferLineIndicatorSelected", { fg = blue }) 806 + 807 + -- nvim-cmp plugin 808 + highlight(0, "CmpItemAbbrMatch", { link = "MoonflyYellow" }) 809 + highlight(0, "CmpItemAbbrMatchFuzzy", { link = "MoonflyCoral" }) 810 + highlight(0, "CmpItemKind", { link = "MoonflyWhite" }) 811 + highlight(0, "CmpItemKindClass", { link = "MoonflyEmerald" }) 812 + highlight(0, "CmpItemKindColor", { link = "MoonflyTurquoise" }) 813 + highlight(0, "CmpItemKindConstant", { link = "MoonflyPurple" }) 814 + highlight(0, "CmpItemKindConstructor", { link = "MoonflySky" }) 815 + highlight(0, "CmpItemKindEnum", { link = "MoonflyViolet" }) 816 + highlight(0, "CmpItemKindEnumMember", { link = "MoonflyTurquoise" }) 817 + highlight(0, "CmpItemKindEvent", { link = "MoonflyViolet" }) 818 + highlight(0, "CmpItemKindField", { link = "MoonflyTurquoise" }) 819 + highlight(0, "CmpItemKindFile", { link = "MoonflyBlue" }) 820 + highlight(0, "CmpItemKindFolder", { link = "MoonflyBlue" }) 821 + highlight(0, "CmpItemKindFunction", { link = "MoonflySky" }) 822 + highlight(0, "CmpItemKindInterface", { link = "MoonflyEmerald" }) 823 + highlight(0, "CmpItemKindKeyword", { link = "MoonflyViolet" }) 824 + highlight(0, "CmpItemKindMethod", { link = "MoonflySky" }) 825 + highlight(0, "CmpItemKindModule", { link = "MoonflyEmerald" }) 826 + highlight(0, "CmpItemKindOperator", { link = "MoonflyViolet" }) 827 + highlight(0, "CmpItemKindProperty", { link = "MoonflyTurquoise" }) 828 + highlight(0, "CmpItemKindReference", { link = "MoonflyTurquoise" }) 829 + highlight(0, "CmpItemKindSnippet", { link = "MoonflyGreen" }) 830 + highlight(0, "CmpItemKindStruct", { link = "MoonflyEmerald" }) 831 + highlight(0, "CmpItemKindText", { link = "MoonflyGrey249" }) 832 + highlight(0, "CmpItemKindTypeParameter", { link = "MoonflyEmerald" }) 833 + highlight(0, "CmpItemKindUnit", { link = "MoonflyTurquoise" }) 834 + highlight(0, "CmpItemKindValue", { link = "MoonflyTurquoise" }) 835 + highlight(0, "CmpItemKindVariable", { link = "MoonflyTurquoise" }) 836 + highlight(0, "CmpItemMenu", { link = "MoonflyGrey247" }) 837 + 838 + -- Indent Blankline plugin 839 + highlight(0, "IndentBlanklineChar", { fg = grey235, nocombine = true }) 840 + highlight(0, "IndentBlanklineSpaceChar", { fg = grey235, nocombine = true }) 841 + highlight(0, "IndentBlanklineSpaceCharBlankline", { fg = grey235, nocombine = true }) 842 + highlight(0, "IndentBlanklineIndent6", { link = "MoonflyOrchid" }) 843 + highlight(0, "IndentBlanklineIndent5", { link = "MoonflyViolet" }) 844 + highlight(0, "IndentBlanklineIndent4", { link = "MoonflyBlue" }) 845 + highlight(0, "IndentBlanklineIndent3", { link = "MoonflyTurquoise" }) 846 + highlight(0, "IndentBlanklineIndent2", { link = "MoonflyYellow" }) 847 + highlight(0, "IndentBlanklineIndent1", { link = "MoonflyCrimson" }) 848 + 849 + -- Mini.nvim plugin 850 + highlight(0, "MiniCompletionActiveParameter", { link = "MoonflyVisual" }) 851 + highlight(0, "MiniCursorword", { link = "MoonflyUnderline" }) 852 + highlight(0, "MiniCursorwordCurrent", { link = "MoonflyUnderline" }) 853 + highlight(0, "MiniIndentscopePrefix", { link = "MoonflyNoCombine" }) 854 + highlight(0, "MiniIndentscopeSymbol", { link = "MoonflyWhite" }) 855 + highlight(0, "MiniJump", { link = "SpellRare" }) 856 + highlight(0, "MiniStarterCurrent", { link = "MoonflyNoCombine" }) 857 + highlight(0, "MiniStarterFooter", { link = "Title" }) 858 + highlight(0, "MiniStarterHeader", { link = "MoonflyViolet" }) 859 + highlight(0, "MiniStarterInactive", { link = "Comment" }) 860 + highlight(0, "MiniStarterItem", { link = "Normal" }) 861 + highlight(0, "MiniStarterItemBullet", { link = "Delimiter" }) 862 + highlight(0, "MiniStarterItemPrefix", { link = "MoonflyYellow" }) 863 + highlight(0, "MiniStarterQuery", { link = "MoonflySky" }) 864 + highlight(0, "MiniStarterSection", { link = "MoonflyCrimson" }) 865 + highlight(0, "MiniStatuslineModeCommand", { link = "MoonflyYellowMode" }) 866 + highlight(0, "MiniStatuslineModeInsert", { link = "MoonflyEmeraldMode" }) 867 + highlight(0, "MiniStatuslineModeNormal", { link = "MoonflyBlueMode" }) 868 + highlight(0, "MiniStatuslineModeOther", { link = "MoonflyTurquoiseMode" }) 869 + highlight(0, "MiniStatuslineModeReplace", { link = "MoonflyCrimsonMode" }) 870 + highlight(0, "MiniStatuslineModeVisual", { link = "MoonflyPurpleMode" }) 871 + highlight(0, "MiniSurround", { link = "IncSearch" }) 872 + highlight(0, "MiniTablineCurrent", { link = "MoonflyWhiteLineActive" }) 873 + highlight(0, "MiniTablineFill", { link = "TabLineFill" }) 874 + highlight(0, "MiniTablineModifiedCurrent", { link = "MoonflyYellowLineActive" }) 875 + highlight(0, "MiniTablineModifiedVisible", { link = "MoonflyYellowLine" }) 876 + highlight(0, "MiniTablineTabpagesection", { link = "MoonflyBlueMode" }) 877 + highlight(0, "MiniTablineVisible", { link = "MoonflyGrey246Line" }) 878 + highlight(0, "MiniTestEmphasis", { link = "MoonflyUnderline" }) 879 + highlight(0, "MiniTestFail", { link = "MoonflyRed" }) 880 + highlight(0, "MiniTestPass", { link = "MoonflyGreen" }) 881 + highlight(0, "MiniTrailspace", { link = "MoonflyCrimsonMode" }) 882 + highlight(0, "MiniJump2dSpot", { fg = yellow, underline = true, nocombine = true }) 883 + highlight(0, "MiniStatuslineDevinfo", { bg = grey241, fg = white }) 884 + highlight(0, "MiniStatuslineFileinfo", { bg = grey241, fg = white }) 885 + highlight(0, "MiniStatuslineFilename", { bg = grey236, fg = grey247 }) 886 + highlight(0, "MiniStatuslineInactive", { bg = grey236, fg = grey247 }) 887 + highlight(0, "MiniTablineHidden", { bg = grey236, fg = grey246 }) 888 + highlight(0, "MiniTablineModifiedHidden", { bg = grey236, fg = yellow }) 889 + 890 + -- Dashboard plugin 891 + highlight(0, "DashboardCenter", { link = "MoonflyViolet" }) 892 + highlight(0, "DashboardFooter", { link = "MoonflyCoral" }) 893 + highlight(0, "DashboardHeader", { link = "MoonflyBlue" }) 894 + highlight(0, "DashboardShortCut", { link = "MoonflyTurquoise" }) 895 + 896 + -- nvim-notify plugin 897 + highlight(0, "NotifyERRORBorder", { link = "FloatBorder" }) 898 + highlight(0, "NotifyWARNBorder", { link = "FloatBorder" }) 899 + highlight(0, "NotifyINFOBorder", { link = "FloatBorder" }) 900 + highlight(0, "NotifyDEBUGBorder", { link = "FloatBorder" }) 901 + highlight(0, "NotifyTRACEBorder", { link = "FloatBorder" }) 902 + highlight(0, "NotifyERRORIcon", { link = "MoonflyRed" }) 903 + highlight(0, "NotifyWARNIcon", { link = "MoonflyYellow" }) 904 + highlight(0, "NotifyINFOIcon", { link = "MoonflyBlue" }) 905 + highlight(0, "NotifyDEBUGIcon", { link = "MoonflyGrey246" }) 906 + highlight(0, "NotifyTRACEIcon", { link = "MoonflyPurple" }) 907 + highlight(0, "NotifyERRORTitle", { link = "MoonflyRed" }) 908 + highlight(0, "NotifyWARNTitle", { link = "MoonflyYellow" }) 909 + highlight(0, "NotifyINFOTitle", { link = "MoonflyBlue" }) 910 + highlight(0, "NotifyDEBUGTitle", { link = "MoonflyGrey246" }) 911 + highlight(0, "NotifyTRACETitle", { link = "MoonflyPurple" }) 912 + 913 + -- lazy.nvim plugin 914 + highlight(0, "LazyCommit", { link = "MoonflyEmerald" }) 915 + highlight(0, "LazyCommitType", { link = "MoonflyViolet" }) 916 + highlight(0, "LazyH1", { link = "MoonflyBlueMode" }) 917 + highlight(0, "LazyProgressDone", { link = "MoonflyBlue" }) 918 + highlight(0, "LazyProgressTodo", { link = "MoonflyGrey0" }) 919 + highlight(0, "LazyReasonCmd", { link = "MoonflyGreen" }) 920 + highlight(0, "LazyReasonPlugin", { link = "MoonflyOrchid" }) 921 + highlight(0, "LazyReasonRuntime", { link = "MoonflyViolet" }) 922 + highlight(0, "LazySpecial", { link = "MoonflyBlue" }) 923 + highlight(0, "LazyButton", { bg = grey235, fg = white }) 924 + highlight(0, "LazyButtonActive", { bg = grey239, fg = grey254 }) 925 + if g.moonflyNormalFloat ~= true then 926 + highlight(0, "LazyNormal", { bg = grey233, fg = white }) 927 + end 928 + 929 + -- mason.nvim plugin 930 + highlight(0, "MasonError", { link = "MoonflyRed" }) 931 + highlight(0, "MasonHeader", { link = "MoonflyBlueMode" }) 932 + highlight(0, "MasonHeaderSecondary", { link = "MoonflyBlueMode" }) 933 + highlight(0, "MasonHeading", { link = "MoonflyGrey254" }) 934 + highlight(0, "MasonHighlight", { link = "MoonflyBlue" }) 935 + highlight(0, "MasonHighlightBlock", { link = "MoonflyBlueMode" }) 936 + highlight(0, "MasonHighlightBlockBold", { link = "MoonflyBlueMode" }) 937 + highlight(0, "MasonHighlightBlockBoldSecondary", { link = "MoonflyEmeraldMode" }) 938 + highlight(0, "MasonHighlightBlockSecondary", { link = "MoonflyEmeraldMode" }) 939 + highlight(0, "MasonHighlightSecondary", { link = "MoonflyEmerald" }) 940 + highlight(0, "MasonLink", { link = "MoonflyPurple" }) 941 + highlight(0, "MasonMuted", { link = "MoonflyGrey241" }) 942 + highlight(0, "MasonMutedBlock", { bg = grey235, fg = white }) 943 + highlight(0, "MasonMutedBlockBold", { bg = grey235, fg = grey254 }) 944 + 945 + -- linefly plugin 946 + highlight(0, "LineflyNormal", { link = "MoonflyBlueMode" }) 947 + highlight(0, "LineflyInsert", { link = "MoonflyEmeraldMode" }) 948 + highlight(0, "LineflyVisual", { link = "MoonflyPurpleMode" }) 949 + highlight(0, "LineflyCommand", { link = "MoonflyYellowMode" }) 950 + highlight(0, "LineflyReplace", { link = "MoonflyCrimsonMode" }) 951 + 952 + -- lspsaga.nvim plugin 953 + highlight(0, "TitleString", { link = "MoonflyBlue" }) 954 + highlight(0, "TitleIcon", { link = "MoonflyBlue" }) 955 + highlight(0, "TitleSymbol", { link = "MoonflyBlue" }) 956 + highlight(0, "SagaBorder", { link = "FloatBorder" }) 957 + highlight(0, "SagaNormal", { link = "Normal" }) 958 + highlight(0, "SagaExpand", { link = "MoonflyCranberry" }) 959 + highlight(0, "SagaCollapse", { link = "MoonflyCranberry" }) 960 + highlight(0, "SagaBeacon", { link = "MoonflyPurpleMode" }) 961 + highlight(0, "ActionPreviewTitle", { link = "MoonflyBlue" }) 962 + highlight(0, "CodeActionText", { link = "MoonflyYellow" }) 963 + highlight(0, "CodeActionConceal", { link = "MoonflyGreen" }) 964 + highlight(0, "FinderSelection", { link = "MoonflyTurquoise" }) 965 + highlight(0, "FinderFName", { link = "MoonflyWhite" }) 966 + highlight(0, "FinderCode", { link = "MoonflyWhite" }) 967 + highlight(0, "FinderIcon", { link = "MoonflyTurquoise" }) 968 + highlight(0, "FinderType", { link = "MoonflyViolet" }) 969 + highlight(0, "FinderSpinnerTitle", { link = "MoonflyPurple" }) 970 + highlight(0, "FinderSpinner", { link = "MoonflyPurple" }) 971 + highlight(0, "RenameNormal", { link = "MoonflyOrange" }) 972 + highlight(0, "DiagnosticSource", { link = "MoonflyGrey241" }) 973 + highlight(0, "DiagnosticText", { link = "MoonflyRed" }) 974 + highlight(0, "CallHierarchyIcon", { link = "MoonflyViolet" }) 975 + highlight(0, "CallHierarchyTitle", { link = "MoonflyCranberry" }) 976 + highlight(0, "SagaShadow", { link = "Normal" }) 977 + highlight(0, "OutlineIndent", { link = "MoonflyPurple" }) 978 + 979 + -- Noice plugin 980 + highlight(0, "NoiceCmdlinePopup", { link = "MoonflyGrey244" }) 981 + highlight(0, "NoiceCmdlinePopupBorder", { link = "MoonflyGrey238" }) 982 + highlight(0, "NoiceCmdlinePopupBorderSearch", { link = "MoonflyGrey238" }) 983 + highlight(0, "NoiceCmdlinePrompt", { link = "MoonflyBlue" }) 984 + highlight(0, "NoiceCompletionItemKindDefault", { link = "MoonflyTurquoise" }) 985 + highlight(0, "NoiceConfirmBorder", { link = "MoonflyBlue" }) 986 + highlight(0, "NoiceFormatTitle", { link = "MoonflyCranberry" }) 987 + 988 + -- nvim-navic plugin 989 + highlight(0, "NavicText", { bg = grey236, fg = grey249 }) 990 + highlight(0, "NavicSeparator", { bg = grey236, fg = white }) 991 + highlight(0, "NavicIconsOperator", { bg = grey236, fg = cranberry }) 992 + highlight(0, "NavicIconsBoolean", { link = "NavicIconsOperator" }) 993 + highlight(0, "NavicIconsClass", { bg = grey236, fg = emerald }) 994 + highlight(0, "NavicIconsConstant", { bg = grey236, fg = orange }) 995 + highlight(0, "NavicIconsConstructor", { bg = grey236, fg = sky }) 996 + highlight(0, "NavicIconsEnum", { bg = grey236, fg = violet }) 997 + highlight(0, "NavicIconsEnumMember", { bg = grey236, fg = turquoise }) 998 + highlight(0, "NavicIconsEvent", { link = "NavicIconsConstant" }) 999 + highlight(0, "NavicIconsField", { link = "NavicIconsEnumMember" }) 1000 + highlight(0, "NavicIconsFile", { bg = grey236, fg = blue }) 1001 + highlight(0, "NavicIconsFunction", { link = "NavicIconsConstructor" }) 1002 + highlight(0, "NavicIconsInterface", { link = "NavicIconsEnum" }) 1003 + highlight(0, "NavicIconsKey", { link = "NavicIconsEnumMember" }) 1004 + highlight(0, "NavicIconsMethod", { link = "NavicIconsConstructor" }) 1005 + highlight(0, "NavicIconsModule", { link = "NavicIconsEnumMember" }) 1006 + highlight(0, "NavicIconsNamespace", { link = "NavicIconsEnumMember" }) 1007 + highlight(0, "NavicIconsNull", { bg = grey236, fg = green }) 1008 + highlight(0, "NavicIconsNumber", { link = "NavicIconsConstant" }) 1009 + highlight(0, "NavicIconsObject", { link = "NavicIconsEnumMember" }) 1010 + highlight(0, "NavicIconsPackage", { link = "NavicIconsEnumMember" }) 1011 + highlight(0, "NavicIconsProperty", { link = "NavicIconsEnumMember" }) 1012 + highlight(0, "NavicIconsString", { bg = grey236, fg = khaki }) 1013 + highlight(0, "NavicIconsStruct", { link = "NavicIconsClass" }) 1014 + highlight(0, "NavicIconsTypeParameter", { link = "NavicIconsEnumMember" }) 1015 + highlight(0, "NavicIconsVariable", { link = "NavicIconsEnumMember" }) 1016 + 1017 + -- Rainbow Delimiters plugin 1018 + highlight(0, "RainbowDelimiterRed", { link = "MoonflyRed" }) 1019 + highlight(0, "RainbowDelimiterYellow", { link = "MoonflyYellow" }) 1020 + highlight(0, "RainbowDelimiterBlue", { link = "MoonflyBlue" }) 1021 + highlight(0, "RainbowDelimiterOrange", { link = "MoonflyOrange" }) 1022 + highlight(0, "RainbowDelimiterGreen", { link = "MoonflyGreen" }) 1023 + highlight(0, "RainbowDelimiterViolet", { link = "MoonflyViolet" }) 1024 + highlight(0, "RainbowDelimiterCyan", { link = "MoonflyTurquoise" }) 1025 + 1026 + -- Neogit plugin 1027 + highlight(0, "NeogitBranch", { link = "MoonflySky" }) 1028 + highlight(0, "NeogitDiffAddHighlight", { link = "MoonflyEmeraldLine" }) 1029 + highlight(0, "NeogitDiffContextHighlight", { bg = grey234 }) 1030 + highlight(0, "NeogitDiffDeleteHighlight", { link = "MoonflyCrimsonLine" }) 1031 + highlight(0, "NeogitHunkHeader", { link = "Pmenu" }) 1032 + highlight(0, "NeogitHunkHeaderHighlight", { link = "MoonflyBlueLineActive" }) 1033 + highlight(0, "NeogitRemote", { link = "MoonflyPurple" }) 1034 + 1035 + -- nvim-window-picker plugin 1036 + highlight(0, "WindowPickerStatusLine", { link = "WinBar" }) 1037 + highlight(0, "WindowPickerStatusLineNC", { link = "WinBar" }) 1038 + highlight(0, "WindowPickerWinBar", { link = "WinBar" }) 1039 + highlight(0, "WindowPickerWinBarNC", { link = "WinBar" }) 1040 + end 1041 + 1042 + return M
+4
nvim/lua/base/init.lua
··· 1 + require('base.auto') 2 + require('base.colors') 3 + require('base.remap') 4 + require('base.settings')
+64
nvim/lua/base/remap.lua
··· 1 + vim.g.mapleader = " " 2 + -- vim.keymap.set("n", "<leader>pv", vim.cmd.Ex) 3 + 4 + local keymap = vim.api.nvim_set_keymap 5 + local opts = { noremap = true, silent = true } 6 + 7 + -- Modes 8 + -- normal_mode = "n" 9 + -- insert_mode = "i" 10 + -- visual_mode = "v" 11 + -- visual_block_mode = "x" 12 + -- term_mode = "t" 13 + -- command_mode = "c" 14 + 15 + -- dvorak movement (normal) 16 + keymap("n", "t", "j", opts) 17 + keymap("n", "n", "k", opts) 18 + keymap("n", "s", "l", opts) 19 + -- reverse keymap 20 + keymap("n", "j", "t", opts) 21 + keymap("n", "k", "n", opts) 22 + keymap("n", "l", "s", opts) 23 + 24 + keymap("n", "T", "J", opts) 25 + keymap("n", "N", "K", opts) 26 + keymap("n", "S", "L", opts) 27 + -- reverse keymap 28 + keymap("n", "J", "T", opts) 29 + keymap("n", "K", "N", opts) 30 + keymap("n", "L", "S", opts) 31 + 32 + -- dvorak movement (visual) 33 + keymap("v", "t", "j", opts) 34 + keymap("v", "n", "k", opts) 35 + keymap("v", "s", "l", opts) 36 + -- reverse keymap 37 + keymap("v", "j", "t", opts) 38 + keymap("v", "k", "n", opts) 39 + keymap("v", "l", "s", opts) 40 + 41 + keymap("v", "T", "J", opts) 42 + keymap("v", "N", "K", opts) 43 + keymap("v", "S", "L", opts) 44 + -- reverse keymap 45 + keymap("v", "J", "T", opts) 46 + keymap("v", "K", "N", opts) 47 + keymap("v", "L", "S", opts) 48 + 49 + -- dvorak movement (term_mode) 50 + keymap("t", "t", "j", opts) 51 + keymap("t", "n", "k", opts) 52 + keymap("t", "s", "l", opts) 53 + -- reverse keymap 54 + keymap("t", "j", "t", opts) 55 + keymap("t", "k", "n", opts) 56 + keymap("t", "l", "s", opts) 57 + 58 + keymap("t", "T", "J", opts) 59 + keymap("t", "N", "K", opts) 60 + keymap("t", "S", "L", opts) 61 + -- reverse keymap 62 + keymap("t", "J", "T", opts) 63 + keymap("t", "K", "N", opts) 64 + keymap("t", "L", "S", opts)
+49
nvim/lua/base/settings.lua
··· 1 + local g = vim.g 2 + local o = vim.o 3 + 4 + -- general settings 5 + vim.api.nvim_command('filetype plugin indent on') 6 + vim.api.nvim_command('set colorcolumn=80') 7 + vim.cmd [[colorscheme moonfly]] 8 + 9 + -- editor settings 10 + o.ignorecase = true 11 + o.smartcase = true 12 + o.ruler = true 13 + o.ttyfast = true 14 + o.confirm = true 15 + o.shiftwidth = 8 16 + o.softtabstop = 8 17 + o.expandtab = false 18 + o.cindent = true 19 + o.wrap = false 20 + -- o.textwidth = 80 21 + o.list = true 22 + o.viewoptions = 'cursor,folds,slash,unix' 23 + o.jumpoptions = 'view' 24 + o.termguicolors = true 25 + 26 + -- line numbers 27 + o.relativenumber = true 28 + o.number = true 29 + o.numberwidth = 2 30 + o.signcolumn = 'yes:1' 31 + o.cursorline = true 32 + 33 + -- set same clipboard as OS 34 + o.clipboard = 'unnamedplus' 35 + 36 + -- neovide settings 37 + -- Set transparency and background color (title bar color) 38 + g.neovide_transparency = 1.0 39 + g.neovide_transparency_point = 1.0 40 + g.neovide_background_color = "#080808" 41 + 42 + -- fold options 43 + o.foldcolumn = '1' 44 + o.foldlevel = 99 45 + o.foldlevelstart = 99 46 + vim.foldenable = true 47 + 48 + -- neovide 49 + g.neovide_background_color = "#080808"
+62
tmux/tmux.conf
··· 1 + tmux_conf_24b_colour=true 2 + 3 + # default conf binds 4 + set -g xterm-keys on 5 + set -s escape-time 10 # faster command sequences 6 + set -sg repeat-time 600 # increase repeat timeout 7 + set -s focus-events on 8 + 9 + set -g prefix2 C-a 10 + bind C-a send-prefix -2 11 + 12 + unbind n 13 + unbind p 14 + 15 + # increase history size 16 + set -g history-limit 10000 17 + 18 + # start with mouse mode enabled 19 + set -g mouse on 20 + 21 + # force vi mode 22 + set -g status-keys vi 23 + set -g mode-keys vi 24 + 25 + # replace C-b by C-a instead of using both prefixes 26 + unbind C-a 27 + set -g prefix C-p 28 + 29 + # dealing with the scrollback buffer 30 + bind -n C-s copy-mode 31 + bind -T copy-mode-vi n send-keys -X scroll-up 32 + bind -T copy-mode-vi t send-keys -X scroll-up 33 + bind -T copy-mode-vi u send-keys -X scroll-up 34 + bind -T copy-mode-vi d send-keys -X scroll-up 35 + 36 + # split `r`ight or `d`own 37 + bind r split-window -h 38 + bind d split-window -v 39 + 40 + #fast pane switching 41 + bind -n M-Left select-pane -L 42 + bind -n M-Right select-pane -R 43 + bind -n M-Up select-pane -U 44 + bind -n M-Down select-pane -D 45 + bind -n M-h select-pane -L 46 + bind -n M-s select-pane -R 47 + bind -n M-n select-pane -U 48 + bind -n M-t select-pane -D 49 + 50 + # search 51 + bind s copy-mode\; send-key ? 52 + 53 + # truecolor 54 + set -g default-terminal "tmux-256color" 55 + set -ag terminal-overrides ",xterm-256color:RGB" 56 + 57 + # colors 58 + set -g pane-active-border-style fg=white 59 + set -g pane-border-style fg=black 60 + 61 + set -g status-bg black 62 + set -g status-fg white
+37
zsh/.zshenv
··· 1 + # XDG directories 2 + export XDG_DATA_HOME="$HOME/.local/share" 3 + export XDG_CONFIG_HOME="$HOME/.config" 4 + export XDG_STATE_HOME="$HOME/.local/state" 5 + export XDG_CACHE_HOME="$HOME/.cache" 6 + 7 + # paths 8 + export PATH="$HOME/.local/bin:$XDG_DATA_HOME/cargo/bin:$HOME/.cabal/bin:/opt/texlive/2023/bin/x86_64-linux:$PATH" 9 + 10 + # global env vars 11 + export EDITOR="nvim" 12 + export READER="zathura" 13 + export VISUAL="nvim" 14 + export TERMINAL="st" 15 + export VIDEO="mpv" 16 + export OPENER="xdg-open" 17 + export PAGER="bat -n -S --color always --italic-text always -P" 18 + export WM="dwm" 19 + export LESSHISTFILE=- 20 + export MANGOHUD=1 21 + export TEXINPUTS=".:$HOME/casa/Documents/texpackages//::" 22 + export COLORTERM=truecolor 23 + export NIXPKGS_ALLOW_UNFREE=1 24 + 25 + export CARGO_HOME="$XDG_DATA_HOME"/cargo 26 + export GNUPGHOME="$XDG_DATA_HOME"/gnupg 27 + export TERMINFO="$XDG_DATA_HOME"/terminfo 28 + export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:usr/share/terminfo 29 + export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java 30 + export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass 31 + export RUSTUP_HOME="$XDG_DATA_HOME"/rustup 32 + export SPICETIFY_CONFIG="$XDG_CONFIG_HOME/spicetify" 33 + export W3M_DIR="$XDG_DATA_HOME"/w3m 34 + export WINEPREFIX="$XDG_DATA_HOME"/wine 35 + export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority 36 + export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc 37 + . "$XDG_DATA_HOME/cargo/env"
+212
zsh/.zshrc
··· 1 + [ -w "/home/void/.bash_logout" ] && \ 2 + rm "/home/void/.bash_logout" 3 + 4 + [ -w "/home/void/.bash_profile" ] && \ 5 + rm "/home/void/.bash_profile" 6 + 7 + [ -w "/home/void/.bashrc" ] && \ 8 + rm "/home/void/.bashrc" 9 + 10 + [ -w "/home/void/.pki" ] && \ 11 + rm -rf "/home/void/.pki" 12 + 13 + [ -s "/home/void/.lyrics" ] && \ 14 + rm -rf "/home/void/.lyrics" 15 + 16 + [ -w "/home/void/.gmrun_history" ] && \ 17 + rm "/home/void/.gmrun_history" 18 + 19 + [ -w "/home/void/.gnuplot_history" ] && \ 20 + rm "/home/void/.gnuplot_history" 21 + 22 + [ -w "/home/void/.python_history" ] && \ 23 + rm "/home/void/.python_history" 24 + 25 + [ -w "/home/void/neovide_backtraces.log" ] && 26 + rm "/home/void/neovide_backtraces.log" 27 + 28 + [ -w "/home/void/.bash_history" ] && \ 29 + rm "/home/void/.bash_history" 30 + 31 + [ -s "/home/void/.avidemux6" ] && \ 32 + rm -rf "/home/void/.avidemux6" 33 + 34 + #EDIDTOR="swallow neovide --multigrid --nofork" 35 + EDITOR="nvim" 36 + 37 + alias bat="bat -n -S --color always --italic-text always -P --theme moonfly" 38 + alias home="cd $HOME/casa" 39 + alias zathura="zathura --fork" 40 + alias ccz="$EDITOR $XDG_CONFIG_HOME/zsh/.zshrc" 41 + alias cczenv="$EDITOR $XDG_CONFIG_HOME/zsh/.zshenv" 42 + alias ccd="$EDITOR $HOME/casa/Documents/git/my-dwl/dwl/config.h" 43 + alias ccds="$EDITOR $HOME/casa/Documents/git/my-dwl/dwlstart_20230602.dash" 44 + alias cct="$EDITOR $HOME/casa/Documents/git/my-st/st/config.h" 45 + alias radio="mpv --no-video" 46 + alias w3m="w3m -v" 47 + alias fucking="doas" 48 + alias ytd="yt-dlp --config $HOME/.config/yt-dlp_config" 49 + alias xrs="xmonad --recompile && xmonad --restart" 50 + alias spotd="spotifyd -B 320 -d Toilet -u 'dsciencekid' -P 'pass show spotify'" 51 + alias ex="exa --icons -a --group-directories-first" 52 + alias grep="grep --color=auto" 53 + alias dv="doas $EDIDTOR" 54 + alias v="$EDITOR" 55 + alias FUCKING="doas" 56 + alias gc="gix clone" 57 + alias wiki="$EDITOR -- -c VimwikiIndex" 58 + alias rg="rg -i" 59 + alias Search="xbps-query -Rs" 60 + alias Install="doas xbps-install -S" 61 + alias Update="doas xbps-install -Su" 62 + alias Remove="doas xbps-remove -Rf" 63 + alias List="xbps-query -f" 64 + alias CleanCache="xbps-remove -O" 65 + alias CleanOrphans="doas xbps-remove -of" 66 + alias pomodoro="pomo -l 30 -p 60 -s 10" 67 + alias irssi=irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi 68 + alias wget=wget --hsts-file="$XDG_DATA_HOME"/wget-hsts 69 + alias neovide="WINIT_UNIX_BACKEND=x11 neovide" 70 + alias scrot="maim -o -s | tee /tmp/image.png | xclip -sel clip -t image/png" 71 + 72 + cco() { 73 + full_path="$(fd -t f . $HOME/.config -d 2 | fzf)" 74 + file="$(coreutils basename "$file_full")" 75 + path_to_dir="${full_path%/*}" 76 + cd "$path_to_dir" && $EDITOR $file 77 + } 78 + 79 + pd() { 80 + rdbm set last-dir "$(pwd)" 81 + } 82 + 83 + gd() { 84 + cd "$(rdbm get last-dir)" 85 + } 86 + 87 + new() { 88 + DATE="$(date +%Y%m%d)" 89 + EXT=${@#*.} 90 + NAME=${@%%.*} 91 + FULL_NAME="${NAME}_${DATE}.${EXT}" 92 + touch "$FULL_NAME" 93 + $EDITOR "$FULL_NAME" 94 + } 95 + 96 + cl() { 97 + cd "$@" && exa -a --icons --group-directories-first 98 + } 99 + 100 + mkcd() { 101 + mkdir -p "$@" && cd "$@" || exit 102 + } 103 + 104 + vv() { 105 + swallow neovide --multigrid --nofork "$@" 106 + } 107 + 108 + mktex() { 109 + cp "$HOME/Documents/LaTex/template.tex" "$(pwd)/$*.tex" 110 + } 111 + 112 + mdf() { 113 + pandoc "$@" -o "$*.pdf" --pdf-engine=xelatex 114 + } 115 + 116 + 117 + PROMPT=" 118 + %F{black} ╭── %f%F{blue}%1~%f 119 + %F{black} ╰ %f%F{magenta}λ.%f" 120 + RPROMPT="%F{black}%T%f" 121 + 122 + # coreutils 123 + #alias [="coreutils [" 124 + if command -v coreutils &> /dev/null 125 + then 126 + alias b2sum="coreutils b2sum" 127 + alias b3sum="coreutils b3sum" 128 + alias base64="coreutils base64" 129 + alias basename="coreutils basename" 130 + alias basenc="coreutils basenc" 131 + alias cat="coreutils cat" 132 + alias cksum="coreutils cksum" 133 + alias comm="coreutils comm" 134 + alias cp="coreutils cp" 135 + alias csplit="coreutils csplit" 136 + alias cut="coreutils cut" 137 + alias date="coreutils date" 138 + alias dd="coreutils dd" 139 + alias df="coreutils df" 140 + alias dir="coreutils dir" 141 + alias dircolors="coreutils dircolors" 142 + alias dirname="coreutils dirname" 143 + alias du="coreutils du" 144 + alias echo="coreutils echo" 145 + alias env="coreutils env" 146 + alias expand="coreutils expand" 147 + alias expr="coreutils expr" 148 + alias factor="coreutils factor" 149 + alias false="coreutils false" 150 + alias fmt="coreutils fmt" 151 + alias fold="coreutils fold" 152 + alias hashsum="coreutils hashsum" 153 + alias head="coreutils head" 154 + alias join="coreutils join" 155 + alias link="coreutils link" 156 + alias ln="coreutils ln" 157 + alias ls="coreutils ls --color=always" 158 + alias md5sum="coreutils md5sum" 159 + alias mkdir="coreutils mkdir" 160 + alias mktemp="coreutils mktemp" 161 + alias more="coreutils more" 162 + alias mv="coreutils mv" 163 + alias nl="coreutils nl" 164 + alias numfmt="coreutils numfmt" 165 + alias od="coreutils od" 166 + alias paste="coreutils paste" 167 + alias pr="coreutils pr" 168 + alias printenv="coreutils printenv" 169 + alias printf="coreutils printf" 170 + alias ptx="coreutils ptx" 171 + alias pwd="coreutils pwd" 172 + alias readlink="coreutils readlink" 173 + alias realpath="coreutils realpath" 174 + alias rm="coreutils rm" 175 + alias rmdir="coreutils rmdir" 176 + alias seq="coreutils seq" 177 + alias sha1sum="coreutils sha1sum" 178 + alias sha224sum="coreutils sha224sum" 179 + alias sha256sum="coreutils sha256sum" 180 + alias sha3-224sum="coreutils sha3-224sum" 181 + alias sha3-256sum="coreutils sha3-256sum" 182 + alias sha3-384sum="coreutils sha3-384sum" 183 + alias sha3-512sum="coreutils sha3-512sum" 184 + alias sha384sum="coreutils sha384sum" 185 + alias sha3sum="coreutils sha3sum" 186 + alias sha512sum="coreutils sha512sum" 187 + alias shake128sum="coreutils shake128sum" 188 + alias shake256sum="coreutils shake256sum" 189 + alias shred="coreutils shred" 190 + alias shuf="coreutils shuf" 191 + alias sleep="coreutils sleep" 192 + alias sort="coreutils sort" 193 + alias split="coreutils split" 194 + alias sum="coreutils sum" 195 + alias tac="coreutils tac" 196 + alias tail="coreutils tail" 197 + alias tee="coreutils tee" 198 + alias test="coreutils test" 199 + alias touch="coreutils touch" 200 + alias tr="coreutils tr" 201 + alias true="coreutils true" 202 + alias truncate="coreutils truncate" 203 + alias tsort="coreutils tsort" 204 + alias unexpand="coreutils unexpand" 205 + alias uniq="coreutils uniq" 206 + alias unlink="coreutils unlink" 207 + alias vdir="coreutils vdir" 208 + alias wc="coreutils wc" 209 + alias yes="coreutils yes" 210 + fi 211 + 212 + #eval "$(starship init zsh)"