repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: fix dark mode detection

4e59556a430b0dd5967718b52ec16d33ce877ebc

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

git/gitconfig

Modified
10 10 # interactive add
11 11 ap = add --patch
13 - a = add .
13 + a = add --all
15 15 l = log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'

justfile

Modified
11 11 unlink:
12 12 java bootstripper.java clean
14 -# install rust user land
15 -crates:
16 - cd tools;java install.java
18 -# install packages
19 -packages:
20 - cd tools;nu packages.nu
22 14 # typically the initial git remote for the dotfiles repo is https
23 15 # this command changes the remote to ssh
24 16 ssh-remote:
25 17 git remote rm origin
26 18 git remote add origin git@github.com:bugabinga/dotfiles.git
19 + git fetch
27 20 git branch --set-upstream-to=origin/trunk trunk
29 22 # install previously exported winget apps. see topgrade config for exports.

neovim/lua/bugabinga/options/core.lua

Modified
139 139 -- show trailing whitespace
140 140 vim.opt.list = true
141 141 vim.opt.listchars = {
142 - -- space = icon.space,
143 - -- eol = icon.eol,
144 - -- tab = icon.tab .. icon.middle_ellipsis,
142 + space = icon.space,
143 + eol = icon.eol,
144 + tab = icon.tab .. icon.middle_ellipsis,
145 145 tab = ' ',
146 146 trail = icon.trail,
147 147 extends = icon.extends,

neovim/lua/std/const.lua

Modified
12 12 -- Execute command to check if the win32 appearance is set to Dark
13 13 local appsUseLightTheme = vim.fn.system { 'reg.exe', 'Query',
14 14 'HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize', '/v', 'AppsUseLightTheme' }
15 - if not appsUseLightTheme:find '0x1' then
16 - background = 'dark'
15 + if appsUseLightTheme:find '0x1' then
16 + background = 'light'
19 19 -- Check if 'busctl' is executable (part of systemd)

nushell/gen-aliases.nu

Modified
24 24 aka web firefox
25 25 aka code neovide
26 26 aka edit nvim '--clean'
27 +aka wget wget2
27 28 aka archive wget "-mpck" "--html-extension" '--user-agent=""' "-e" "robots=off" "--wait" 1 "-P" .
28 29 aka timer tclock timer '--paused' '--no-millis' '--duration'
29 30 aka countdown tclock countdown '--time'