dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: incubator for plugins and nvim patches (lua)
83ed855f3300589dbe071ffa7c1f18dabca56d97
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (6)
neovim/lua/bugabinga/plugins/in-and-out.lua
Addednew file mode 100644 1 +local map
= require 'std.map' 4 + description =
'Moves in or out of balanced tokens',
5 + category =
'editing',
7 + command =
function ()
require 'in-and-out'.in_and_out()
end,
11 + 'ysmb-wtsg/in-and-out.nvim',
12 + commit =
'ab24cafadc3418dffb0c7e9b0621cff60b9ac551',
neovim/lua/bugabinga/plugins/incubator.lua
Addednew file mode 100644 1 +local ignored
= require 'std.ignored' 2 +local icon
= require 'std.icon' 11 + 'gregorias/toggle.nvim',
18 + 'quentingruber/timespent.nvim',
22 + '<cmd>:ShowTimeSpent<cr>',
26 + desc =
'Show time spent',
32 + 'nvim-telescope/telescope-frecency.nvim',
33 + config =
function ()
34 + require 'telescope'.load_extension
'frecency' 39 + '<cmd>Telescope frecency<cr>',
41 + desc =
'telescope: Show recently and frequently used files.',
47 + 'cenk1cenk2/scratch.nvim',
51 + 'AdeAttwood/ivy.nvim',
53 + build =
'cargo build --release',
58 + 'rachartier/tiny-inline-diagnostic.nvim',
59 + event =
'LspAttach',
60 + config =
function ()
61 + require 'tiny-inline-diagnostic'.setup()
66 + 'chrisgrieser/nvim-lsp-endhints',
67 + event =
'LspAttach',
71 + parameter = icon.paramter,
73 + unknown = icon.hint,
82 + 'ravibrock/spellwarn.nvim',
88 + 'emmanueltouzery/decisive.nvim',
89 + config =
function ()
90 + require 'decisive'.setup {}
95 + {
'<leader>cca',
":lua require('decisive').align_csv({})<cr>", {
silent =
true },
desc =
'Align CSV',
mode =
'n' },
96 + {
'<leader>ccA',
":lua require('decisive').align_csv_clear({})<cr>", {
silent =
true },
desc =
'Align CSV clear',
mode =
'n' },
97 + {
'[c',
":lua require('decisive').align_csv_prev_col()<cr>", {
silent =
true },
desc =
'Align CSV prev col',
mode =
'n' },
98 + {
']c',
":lua require('decisive').align_csv_next_col()<cr>", {
silent =
true },
desc =
'Align CSV next col',
mode =
'n' },
103 + 'tris203/precognition.nvim',
104 + event =
'VeryLazy',
106 + startVisible =
true,
107 + showBlankVirtLine =
true,
108 + highlightColor = {
link =
'LineNr' },
127 + disabled_fts = ignored.filetypes,
neovim/lua/bugabinga/plugins/markdown-table-mode.lua
Addednew file mode 100644 2 + 'Kicamon/markdown-table-mode.nvim',
3 + commit =
'f830cd15a97deb3acc53d9f6607bc609f7f32e49',
neovim/lua/patches/init.lua
Addednew file mode 100644 1 +require 'patches.snippet' neovim/lua/patches/snippet.lua
Addednew file mode 100644 9 +function vim.snippet.
add( trigger, body, opts )
10 + vim.keymap.set(
'ia', trigger,
function ()
13 + local c
= vim.fn.nr2char( vim.fn.getchar(
0 ) )
15 + vim.api.nvim_feedkeys( trigger
.. c,
'i',
true )
18 + vim.snippet.expand( body )
neovim/lua/std/const.lua
Addednew file mode 100644 2 + win32 = vim.loop.os_uname().sysname:match
'Win',
3 + wsl2 = vim.loop.os_uname().release:match
'WSL2',
4 + os_background = (
function ()
6 + local background
= 'light' 7 + local uname
= vim.uv.os_uname()
9 + if vim.loop.os_uname().release:match
'WSL2' then 11 + if vim.fn.executable
'reg.exe' ~= 0 then 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 20 + elseif vim.fn.executable
'busctl' ~= 0 then 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',
27 + local color_scheme
= result:match
'u%s+(%d+)' 29 + if color_scheme
== '1' then