repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

eb5c48ee1cff970c37d64ae3084607b21f9ffa5f

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

neovim/lazy-lock.json

Modified
21 21 "flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
22 22 "heirline.nvim": { "branch": "master", "commit": "7a79753c1a42c3f52e89a6c42429e7f871e560cd" },
23 23 "in-and-out.nvim": { "branch": "master", "commit": "ab24cafadc3418dffb0c7e9b0621cff60b9ac551" },
24 - "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
24 + "indent-blankline.nvim": { "branch": "master", "commit": "2e57e1bbda970317dce4b7878ccf9a831dc7067d" },
25 25 "iswap.nvim": { "branch": "master", "commit": "e02cc91f2a8feb5c5a595767d208c54b6e3258ec" },
26 26 "ivy.nvim": { "branch": "0.x", "commit": "cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed" },
27 27 "layers.nvim": { "branch": "main", "commit": "67666f59a2dbe36a469766be6a4c484ae98c4895" },
28 - "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
28 + "lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
29 29 "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
30 30 "lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
31 31 "markdown-table-mode.nvim": { "branch": "main", "commit": "f830cd15a97deb3acc53d9f6607bc609f7f32e49" },
34 34 "mini.bufremove": { "branch": "main", "commit": "1ee294a97e091d3cf967974df622c0d887890dc2" },
35 35 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
36 36 "neodim": { "branch": "master", "commit": "d87470828690342d0139efc2fd56ea0b29e9ecb3" },
37 - "no-neck-pain.nvim": { "branch": "main", "commit": "c0d8061f18bccceff0991e096c8f864a720e1ebf" },
37 + "no-neck-pain.nvim": { "branch": "main", "commit": "c7efdbd0b739646c58d22fa44f6fffa2973f303e" },
38 38 "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
39 39 "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" },
40 40 "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },

neovim/lua/bugabinga/options/keymaps.lua

Modified
39 39 if file_under_cursor and file_under_cursor:match '%a+://.+' then
40 40 vim.system(
41 41 ---@diagnostic disable-next-line: assign-type-mismatch
42 - (const.win32 or const.wsl2) and { 'cmd.exe', '/C', 'start', 'msedge', file_under_cursor }
42 + (const.win32 or const.wsl) and { 'cmd.exe', '/C', 'start', 'msedge', file_under_cursor }
43 43 or { 'firefox', file_under_cursor },
44 44 { text = true },
45 45 function ( completed )

neovim/lua/std/const.lua

Modified
1 -return {
2 - win32 = vim.loop.os_uname().sysname:match 'Win',
3 - wsl2 = vim.loop.os_uname().release:match 'WSL2',
4 - os_background = (function ()
5 - -- Default value
6 - local background = 'light'
7 - local uname = vim.uv.os_uname()
8 - -- First check whether we are on WSL or Windows
9 - if vim.loop.os_uname().release:match 'WSL2' then
10 - -- Check if 'reg.exe' is executable
11 - if vim.fn.executable 'reg.exe' ~= 0 then
12 - -- Execute command to check if the win32 appearance is set to Dark
13 - local appsUseLightTheme = vim.fn.system { 'reg.exe', 'Query',
14 - 'HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize', '/v', 'AppsUseLightTheme' }
15 - if not appsUseLightTheme:find '0x1' then
16 - background = 'dark'
17 - end
18 - end
19 - -- Check if 'busctl' is executable (part of systemd)
20 - elseif vim.fn.executable 'busctl' ~= 0 then
21 - -- Get the current color scheme from xdg-desktop-portal using busctl
22 - local result = vim.fn.system {
23 - 'busctl', '--user', 'call', 'org.freedesktop.portal.Desktop', '/org/freedesktop/portal/desktop',
24 - 'org.freedesktop.portal.Settings', 'ReadOne', 'ss', 'org.freedesktop.appearance', 'color-scheme',
25 - }
26 - -- The result is in the form of "v u 0" for light and "v u 1" for dark
27 - local color_scheme = result:match 'u%s+(%d+)'
1 +local uname = vim.uv.os_uname()
2 +local win32 = vim.uv.os_uname().sysname:match 'Win' and true or false
3 +local wsl = vim.uv.os_uname().release:match 'WSL2' and true or false
29 - if color_scheme == '1' then
5 +local os_background = function ()
6 + -- Default value
7 + local background = 'light'
8 + -- First check whether we are on WSL or Windows
9 + if win32 or wsl then
10 + -- Check if 'reg.exe' is executable
11 + if vim.fn.executable 'reg.exe' ~= 0 then
12 + -- Execute command to check if the win32 appearance is set to Dark
13 + local appsUseLightTheme = vim.fn.system { 'reg.exe', 'Query',
14 + 'HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize', '/v', 'AppsUseLightTheme' }
15 + if not appsUseLightTheme:find '0x1' then
30 16 background = 'dark'
32 - else
19 + -- Check if 'busctl' is executable (part of systemd)
20 + elseif vim.fn.executable 'busctl' ~= 0 then
21 + -- Get the current color scheme from xdg-desktop-portal using busctl
22 + local result = vim.fn.system {
23 + 'busctl', '--user', 'call', 'org.freedesktop.portal.Desktop', '/org/freedesktop/portal/desktop',
24 + 'org.freedesktop.portal.Settings', 'ReadOne', 'ss', 'org.freedesktop.appearance', 'color-scheme',
25 + }
26 + -- The result is in the form of "v u 0" for light and "v u 1" for dark
27 + local color_scheme = result:match 'u%s+(%d+)'
35 - return background
36 - end)(),
29 + if color_scheme == '1' then
30 + background = 'dark'
31 + end
32 + end
34 + return background
35 +end
37 +return {
38 + uname = uname,
39 + win32 = win32,
40 + wsl = wsl,
41 + os_background = os_background(),

neovim/spell/nerd.utf-8.add

Modified
96 96 weechat
97 97 tarsnap
99 +icepuma
100 +traefik
99 101 tclock
104 106 diskonaut
106 108 ast-grep
109 +>>>>>>> 313efcb717d937c279f95a0b48804aedd210e3ae

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

Modified

Previous version contains binary or non-UTF-8 data.

Current version contains binary or non-UTF-8 data.