dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: stablize non-incubating plugins
d0e04785f2c7d34abba70d8762de2c89faa7a725
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (31)
neovim/lazy-lock.json
Modified12 12 "diffview.nvim": {
"branch":
"main",
"commit":
"4516612fe98ff56ae0415a259ff6361a89419b0a" },
13 13 "dressing.nvim": {
"branch":
"master",
"commit":
"1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
14 14 "flash.nvim": {
"branch":
"main",
"commit":
"ec0bf2842189f65f60fd40bf3557cac1029cc932" },
15 - "flow.nvim": {
"branch":
"main",
"commit":
"c8f467af401de5356e2ca98388499489e8ad282f" },
16 15 "heirline.nvim": {
"branch":
"master",
"commit":
"0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
17 - "in-and-out.nvim": {
"branch":
"master",
"commit":
"ab24cafadc3418dffb0c7e9b0621cff60b9ac551" },
18 16 "indent-blankline.nvim": {
"branch":
"master",
"commit":
"3fe94b8034dd5241cb882bb73847303b58857ecf" },
19 - "ivy.nvim": {
"branch":
"0.x",
"commit":
"cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed" },
20 17 "lazy.nvim": {
"branch":
"main",
"commit":
"460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
21 18 "lspkind.nvim": {
"branch":
"master",
"commit":
"59c3f419af48a2ffb2320cea85e44e5a95f71664" },
22 - "markdown-table-mode.nvim": {
"branch":
"main",
"commit":
"f830cd15a97deb3acc53d9f6607bc609f7f32e49" },
23 - "markview.nvim": {
"branch":
"main",
"commit":
"f16486e49561740f33b6773df43c9bc2c3c34c7b" },
24 19 "mason.nvim": {
"branch":
"main",
"commit":
"e2f7f9044ec30067bc11800a9e266664b88cda22" },
25 20 "mini.bracketed": {
"branch":
"main",
"commit":
"833d66df6e0588222312a963780c6ec42ed7437d" },
26 21 "mini.bufremove": {
"branch":
"main",
"commit":
"1ee294a97e091d3cf967974df622c0d887890dc2" },
39 34 "nvim-treesitter-textobjects": {
"branch":
"master",
"commit":
"bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
40 35 "nvim-ts-autotag": {
"branch":
"main",
"commit":
"e239a560f338be31337e7abc3ee42515daf23f5e" },
41 36 "nvim-web-devicons": {
"branch":
"master",
"commit":
"26220156aafb198b2de6a4cf80c1b120a3768da0" },
42 - "nvim-window": {
"branch":
"main",
"commit":
"81f29840ac3aaeea6fc2153edfabebd00d692476" },
43 - "oil.nvim": {
"branch":
"master",
"commit":
"1360be5fda9c67338331abfcd80de2afbb395bcd" },
37 + "oil.nvim": {
"branch":
"master",
"commit":
"1eb9fb35a4613518f79790117ed82c367a0b4a22" },
44 38 "plenary.nvim": {
"branch":
"master",
"commit":
"2d9b06177a975543726ce5c73fca176cedbffe9d" },
45 - "scratch.nvim": {
"branch":
"main",
"commit":
"3e3d2ad0d7f565bc794d9d3ad40e92509802ecad" },
46 39 "specs.nvim": {
"branch":
"main",
"commit":
"8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
47 - "substitute.nvim": {
"branch":
"main",
"commit":
"97f49d16f8eea7967d41db4f657dd63af53eeba1" },
48 - "telescope-frecency.nvim": {
"branch":
"master",
"commit":
"f67baca08423a6fd00167801a54db38e0b878063" },
40 + "substitute.nvim": {
"branch":
"main",
"commit":
"17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
49 41 "telescope-fzf-native.nvim": {
"branch":
"main",
"commit":
"cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
50 42 "telescope-symbols.nvim": {
"branch":
"master",
"commit":
"a6d0127a53d39b9fc2af75bd169d288166118aec" },
51 43 "telescope-zoxide": {
"branch":
"main",
"commit":
"54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
52 44 "telescope.nvim": {
"branch":
"master",
"commit":
"a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
53 - "text-case.nvim": {
"branch":
"main",
"commit":
"e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
54 - "timespent.nvim": {
"branch":
"master",
"commit":
"6346ea9556344a44fdbc83a8a80d68ca66dd8778" },
45 + "text-case.nvim": {
"branch":
"main",
"commit":
"13daf28a829e6d0646904c94214cb289bb0c6f34" },
55 46 "todo-comments.nvim": {
"branch":
"main",
"commit":
"ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
56 - "toggle.nvim": {
"branch":
"main",
"commit":
"50769ba8982d3d3a8fbd1d1a2e5cad63c73df662" },
57 47 "tree-sitter-nu": {
"branch":
"main",
"commit":
"e3b4c967937cad628dca09bd098cd780d8288750" },
58 48 "treesj": {
"branch":
"main",
"commit":
"0d81326b5afd36babe7dd480aabbb0b05f33e688" },
59 - "twilight.nvim": {
"branch":
"main",
"commit":
"1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
60 - "venn.nvim": {
"branch":
"main",
"commit":
"b09c2f36ddf70b498281845109bedcf08a7e0de0" },
61 49 "vim-vscode-snippets": {
"branch":
"master",
"commit":
"c34e9edee6a00cf3d0b8edb515e08e3df450bcfa" },
62 50 "virt-column.nvim": {
"branch":
"master",
"commit":
"b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
63 51 "which-key.nvim": {
"branch":
"main",
"commit":
"fb070344402cfc662299d9914f5546d840a22126" },
64 - "zen-mode.nvim": {
"branch":
"main",
"commit":
"29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" }
52 + "zen-mode.nvim": {
"branch":
"main",
"commit":
"04b52674b8c800f8b7d4609e8bd8d0212e3ffa79" }
neovim/lua/bugabinga/options/keymaps.lua
Modified 10 10 vim.g.mapleader
= ' ' 11 11 vim.g.maplocalleader
= ' ' 15 - description =
'Insert newline under cursor',
16 - category =
'editing',
18 - command =
function ()
19 - local current_buffer
= 0 20 - local current_line
= vim.api.nvim_win_get_cursor( current_buffer )[
1]
21 - local strict_indexing
= false 22 - local newline
= {
'', }
23 - vim.api.nvim_buf_set_lines( current_buffer, current_line, current_line, strict_indexing, newline )
28 - description =
'Insert newline above cursor',
29 - category =
'editing',
31 - command =
function ()
32 - local current_buffer
= 0 33 - local current_line
= vim.api.nvim_win_get_cursor( current_buffer )[
1]
- 1 34 - local strict_indexing
= false 35 - local newline
= {
'', }
37 - vim.api.nvim_buf_set_lines( current_buffer, current_line, current_line, strict_indexing, newline )
42 14 description =
'Yanks the selected text (in normal mode or visual mode) to the system clipboard.',
43 15 category =
'editing',
44 16 keys =
'<leader>y',
56 28 description =
'Yanks the entire line (when used in normal mode with motion).',
57 29 category =
'editing',
58 30 keys =
'<leader>Y',
109 81 if file_under_cursor
and file_under_cursor:match
'%a+://.+' then 112 - (const.win32
or const.wsl2)
and {
'cmd.exe',
'/C',
'start',
'msedge', file_under_cursor, }
113 - or {
'firefox', file_under_cursor, },
84 + (const.win32
or const.wsl2)
and {
'cmd.exe',
'/C',
'start',
'msedge', file_under_cursor }
85 + or {
'firefox', file_under_cursor },
115 87 function ( completed )
116 88 if completed.code
== 0 then 117 89 vim.schedule(
function ()
neovim/lua/bugabinga/plugins/autopairs.lua
Modified 2 2 local ignored
= require 'std.ignored' 5 5 'windwp/nvim-autopairs',
6 + commit =
'f158dcb865c36f72c92358f87787dab2c272eaf3',
6 7 event =
'InsertEnter',
8 9 disable_filetype = ignored.filetypes,
neovim/lua/bugabinga/plugins/autotag.lua
Addednew file mode 100644 2 + 'windwp/nvim-ts-autotag',
6 + enable_close_on_tag =
true,
neovim/lua/bugabinga/plugins/bracketed.lua
Modified2 2 'echasnovski/mini.bracketed',
neovim/lua/bugabinga/plugins/bufremove.lua
Modified 1 +local map
= require 'std.map' 4 + description =
'Delete Buffer',
7 + command =
function ()
8 + local delete_buffer
= require 'mini.bufremove'.delete
9 + if vim.bo.modified
then 10 + local choice
= vim.fn.confirm( (
'Save changes to %q?'):format( vim.fn.bufname() ),
'&Yes\n&No\n&Cancel' )
14 + elseif choice
== 2 then 15 + delete_buffer(
0,
true )
24 + description =
'Delete Buffer (Force)',
25 + category =
'buffer',
26 + keys =
'<leader>bD',
27 + command =
function ()
require 'mini.bufremove'.delete(
0,
true )
end,
3 31 'echasnovski/mini.bufremove',
9 - local bd
= require 'mini.bufremove' .delete
10 - if vim.bo.modified
then 11 - local choice
= vim.fn.confirm( (
'Save changes to %q?'):format( vim.fn.bufname() ),
'&Yes\n&No\n&Cancel' )
15 - elseif choice
== 2 then 22 - desc =
'Delete Buffer',
25 - {
'<leader>bD',
function ()
require 'mini.bufremove' .delete(
0,
true )
end,
desc =
'Delete Buffer (Force)', },
neovim/lua/bugabinga/plugins/cmp.lua
Modified 1 1 local icon
= require 'std.icon' 41 43 local mapping
= cmp.mapping.preset.insert {
42 44 [
'<C-d>'] = cmp.mapping.scroll_docs(
-4 ),
43 45 [
'<C-f>'] = cmp.mapping.scroll_docs(
4 ),
44 - [
'<C-e>'] = cmp.mapping.close(),
45 - [
'<C-y>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select =
true, },
46 - [
'<C-space>'] = cmp.mapping.complete(),
47 - [
'<Tab>'] = cmp.mapping( snippet_next, {
'i',
's', } ),
48 - [
'<S-Tab>'] = cmp.mapping( snippet_prev, {
'i',
's', } ),
46 + [
'<C-c>'] = cmp.mapping.close(),
47 + [
'<C-y>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select =
true },
48 + [
'<C-x>'] = cmp.mapping.complete(),
51 51 local formatting
= {}
95 - {
name =
'nvim_lua', },
96 - {
name =
'nvim_lsp', },
98 - {
name =
'luasnip', },
95 + {
name =
'nvim_lua' },
96 + {
name =
'nvim_lsp' },
98 + {
name =
'luasnip' },
101 101 keyword_length =
4,
119 119 formatting
= formatting,
120 120 sources
= sources,
122 - completion
= {
autocomplete =
false, },
122 + completion
= {
autocomplete =
false },
124 124 expand =
function ( args ) luasnip.lsp_expand( args.body )
end,
neovim/lua/bugabinga/plugins/colorizer.lua
Modified 3 - 'JosefLitos/colorizer.nvim',
3 + 'litoj/colorizer.nvim',
4 + commit =
'c1602ff3f11566bb7f16f90985b0c59d3d7db0ef',
6 - filetypes = {
'*', },
7 8 user_default_options = {
17 18 mode
= 'virtualtext',
20 - sass
= {
enable =
false,
parsers = {
'css', }, },
21 + sass
= {
enable =
false,
parsers = {
'css' } },
21 22 virtualtext
= '██',
neovim/lua/bugabinga/plugins/conform.lua
Modified 3 3 local debug = require 'std.dbg' 4 4 local map
= require 'std.map' 5 5 local user_command
= require 'std.user_command' 7 7 local format = function ()
8 - prequire
'conform'.format( {
async =
false,
lsp_fallback =
true, },
function ( err )
8 + prequire
'conform'.format( {
async =
false,
lsp_fallback =
true },
function ( err )
9 9 if err
and debug.get()
then 10 10 vim.print(
'Format failed', err )
23 23 'stevearc/conform.nvim',
24 - cmd = {
'ConformInfo', },
25 + cmd = {
'ConformInfo' },
26 27 formatters_by_ft = {
28 - markdown = {
'mdslw', },
29 + markdown = {
'mdslw' },
30 - toml = {
'taplo', },
34 - zig = {
'zigfmt', },
36 - [
'*'] = {
'injected',
'typos', },
37 + [
'*'] = {
'injected',
'typos' },
39 - [
'_'] = {
'trim_whitespace',
'trim_newlines', },
40 + [
'_'] = {
'trim_whitespace',
'trim_newlines' },
neovim/lua/bugabinga/plugins/diffview.lua
Modified11 11 'sindrets/diffview.nvim',
12 - cmd = {
'DiffviewOpen', },
12 + commit =
'4516612fe98ff56ae0415a259ff6361a89419b0a',
13 + cmd = {
'DiffviewOpen' },
neovim/lua/bugabinga/plugins/flash.lua
Modified 1 1 local map
= require 'std.map' 3 3 map.normal.visual.operator_pending {
5 - category =
'navigation',
6 4 description =
'Jump to occurence of next chars quickly',
5 + category =
'navigation',
7 7 command =
function () prequire
'flash'.jump()
end,
10 10 map.normal.visual.operator_pending {
12 - category =
'navigation',
13 11 description =
'Jump to occurence of next treesitter node quickly',
12 + category =
'navigation',
14 14 command =
function () prequire
'flash'.treesitter()
end,
18 + description =
'Toggle Flash Search',
19 + category =
'navigation',
21 + command =
function ()
require 'flash'.toggle()
end,
22 25 'folke/flash.nvim',
neovim/lua/bugabinga/plugins/genghis.lua
Modified 1 1 local const
= require 'bugabinga.const' 3 - require 'bugabinga.health'.add_dependency {
4 - name_of_executable =
'recycle-bin',
3 + require 'bugabinga.health'.add_dependency {
4 + name_of_executable =
'recycle-bin',
8 8 local map
= require 'std.map' 11 - keys =
'<leader>fn',
13 - description =
'Create new file',
14 - command =
function ()
require 'genghis'.createNewFile()
end,
11 + keys =
'<leader>fn',
13 + description =
'Create new file',
14 + command =
function ()
require 'genghis'.createNewFile()
end,
18 - keys =
'<leader>fx',
20 - description =
'Move selection to new file',
21 - command =
function ()
require 'genghis'.moveSelectionToNewFile()
end,
18 + keys =
'<leader>fx',
20 + description =
'Move selection to new file',
21 + command =
function ()
require 'genghis'.moveSelectionToNewFile()
end,
25 - keys =
'<leader>fy',
27 - description =
'Yank file name',
28 - command =
function ()
require 'genghis'.copyFilename()
end,
25 + keys =
'<leader>fy',
27 + description =
'Yank file name',
28 + command =
function ()
require 'genghis'.copyFilename()
end,
32 - keys =
'<leader>fY',
34 - description =
'Yank file path',
35 - command =
function ()
require 'genghis'.copyFilepath()
end,
32 + keys =
'<leader>fY',
34 + description =
'Yank file path',
35 + command =
function ()
require 'genghis'.copyFilepath()
end,
39 - keys =
'<leader>fc',
41 - description =
'Change file mode/permissions',
42 - command =
function ()
require 'genghis'.chmodx()
end,
39 + keys =
'<leader>fc',
41 + description =
'Change file mode/permissions',
42 + command =
function ()
require 'genghis'.chmodx()
end,
46 - keys =
'<leader>fr',
48 - description =
'Rename file',
49 - command =
function ()
require 'genghis'.renameFile()
end,
46 + keys =
'<leader>fr',
48 + description =
'Rename file',
49 + command =
function ()
require 'genghis'.renameFile()
end,
53 - keys =
'<leader>fm',
55 - description =
'Move file',
56 - command =
function ()
require 'genghis'.moveAndRenameFile()
end,
53 + keys =
'<leader>fm',
55 + description =
'Move file',
56 + command =
function ()
require 'genghis'.moveAndRenameFile()
end,
60 - keys =
'<leader>fM',
62 - description =
'Move file to current working directory',
63 - command =
function ()
require 'genghis'.moveToFolderInCwd()
end,
60 + keys =
'<leader>fM',
62 + description =
'Move file to current working directory',
63 + command =
function ()
require 'genghis'.moveToFolderInCwd()
end,
67 - keys =
'<leader>ff',
69 - description =
'Duplicate file',
70 - command =
function ()
require 'genghis'.duplicateFile()
end,
67 + keys =
'<leader>ff',
69 + description =
'Duplicate file',
70 + command =
function ()
require 'genghis'.duplicateFile()
end,
74 - keys =
'<leader>fd',
76 - description =
'Move file to system trash',
77 - command =
function ()
78 - local opts
= const.win32
and {
79 - trashCmd =
'recycle-bin',
74 + keys =
'<leader>fd',
76 + description =
'Move file to system trash',
77 + command =
function ()
78 + local opts
= const.win32
and {
79 + trashCmd =
'recycle-bin',
82 - require 'genghis'.trashFile( opts )
82 + require 'genghis'.trashFile( opts )
87 - 'chrisgrieser/nvim-genghis',
94 - 'MoveToFolderInCwd',
98 - 'CopyFilepathWithTilde',
100 - 'CopyDirectoryPath',
101 - 'CopyRelativeDirectoryPath',
105 - 'stevearc/dressing.nvim',
87 + 'chrisgrieser/nvim-genghis',
88 + commit =
'ca258b1e466d131e17eacf0c632abe932bce20ab',
95 + 'MoveToFolderInCwd',
99 + 'CopyFilepathWithTilde',
100 + 'CopyRelativePath',
101 + 'CopyDirectoryPath',
102 + 'CopyRelativeDirectoryPath',
106 + 'stevearc/dressing.nvim',
neovim/lua/bugabinga/plugins/gomove.lua
Modified 3 3 local map
= require 'std.map' 7 7 'booperlv/nvim-gomove',
9 - {
'<A-h>',
nil,
mode = {
'n',
'x', }, },
10 - {
'<A-j>',
nil,
mode = {
'n',
'x', }, },
11 - {
'<A-k>',
nil,
mode = {
'n',
'x', }, },
12 - {
'<A-l>',
nil,
mode = {
'n',
'x', }, },
14 - {
'<A-H>',
nil,
mode = {
'n',
'x', }, },
15 - {
'<A-J>',
nil,
mode = {
'n',
'x', }, },
16 - {
'<A-K>',
nil,
mode = {
'n',
'x', }, },
17 - {
'<A-L>',
nil,
mode = {
'n',
'x', }, },
8 + commit =
'2b44ae7ac0804f4e3959228122f7c85bef1964e3',
19 10 config =
function ()
20 11 local move
= require 'gomove' 33 - local options
= {
remap =
true, }
24 + local options
= {
remap =
true }
neovim/lua/bugabinga/plugins/heirline.lua
Modified 10 10 'rebelot/heirline.nvim',
neovim/lua/bugabinga/plugins/last-place.lua
Modified 2 2 local ignored
= require 'std.ignored' 5 5 'ethanholz/nvim-lastplace',
6 + commit =
'0bb6103c506315044872e0f84b1f736c4172bb20',
8 9 lastplace_ignore_buftype = ignored.buftypes,
neovim/lua/bugabinga/plugins/lint.lua
Modified 3 3 'mfussenegger/nvim-lint',
4 + commit =
'968a35d54b3a4c1ce66609cf80b14d4ae44fe77f',
neovim/lua/bugabinga/plugins/luasnip.lua
Modifiedneovim/lua/bugabinga/plugins/mason.lua
Modified 2 - "williamboman/mason.nvim",
2 + 'williamboman/mason.nvim',
6 7 border = vim.g.border_style,
8 - package_installed =
"✓",
9 - package_pending =
"➜",
10 - package_uninstalled =
"✗",
10 + package_installed =
'✓',
11 + package_pending =
'➜',
12 + package_uninstalled =
'✗',
neovim/lua/bugabinga/plugins/mkdir.lua
Modified1 -return {
'jghauser/mkdir.nvim',
event =
'BufWritePre', }
2 + 'jghauser/mkdir.nvim',
3 + commit =
'c55d1dee4f099528a1853b28bb28caa802eba217',
4 + event =
'BufWritePre',
neovim/lua/bugabinga/plugins/oil.lua
Modified19 19 'stevearc/oil.nvim',
22 - dependencies = {
'nvim-tree/nvim-web-devicons', },
23 + dependencies = {
'nvim-tree/nvim-web-devicons' },
28 29 prompt_save_on_select_new_entry
= false,
29 30 delete_to_trash
= true,
31 - columns
= {
'icon', },
32 + columns
= {
'icon' },
45 46 local oil
= require 'oil' 46 47 local config
= require 'oil.config' 47 48 if #config.columns
== 1 then 48 - oil.set_columns {
'icon',
'permissions',
'size', {
'mtime',
format =
'%d/%m/%y %T', }, }
49 + oil.set_columns {
'icon',
'permissions',
'size', {
'mtime',
format =
'%d/%m/%y %T' } }
50 - oil.set_columns {
'icon', }
51 + oil.set_columns {
'icon' }
neovim/lua/bugabinga/plugins/specs.lua
Modified14 14 keys
= '<leader><leader><leader>',
15 15 command = function ()
16 - require 'specs'.show_specs {
width =
69,
delay_ms =
69,
inc_ms =
42, }
16 + require 'specs'.show_specs {
width =
69,
delay_ms =
69,
inc_ms =
42 }
21 21 'KevinSilvester/specs.nvim',
22 + commit =
'8a108c8b37dec1b184a1d3d76c6cf867bfbe9636',
32 33 fader =
require 'specs'.exp_fader,
neovim/lua/bugabinga/plugins/substitute.lua
Modified 4 4 local map
= require 'std.map' 7 7 description =
'substitution motion',
8 8 category =
'editing',
10 - command =
function ()
require 'substitute'.operator()
end,
10 + command =
function () prequire
'substitute'.operator()
end,
14 14 description =
'substitution of current line',
15 15 category =
'editing',
17 - command =
function ()
require 'substitute'.line()
end,
17 + command =
function () prequire
'substitute'.line()
end,
21 21 description =
'substitution until end of line',
22 22 category =
'editing',
24 - command =
function ()
require 'substitute'.eol()
end,
24 + command =
function () prequire
'substitute'.eol()
end,
28 28 description =
'substitution motion (visual mode)',
29 29 category =
'editing',
31 - command =
function ()
require 'substitute'.visual()
end,
31 + command =
function () prequire
'substitute'.visual()
end,
35 35 'gbprod/substitute.nvim',
neovim/lua/bugabinga/plugins/surround.lua
Modified 2 - 'kylechui/nvim-surround',
2 + 'kylechui/nvim-surround',
10 + insert_line =
'<C-g>mS',
15 + normal_cur_line =
'mSS',
25 - insert_line =
'<C-g>mS',
30 - normal_cur_line =
'mSS',
42 - add = {
"require '",
"'", },
43 - find =
"require%b''",
45 - delete =
"^(require')().-(')()$",
47 - target =
"^(require')().-('()$",
51 - add = {
'vim.print(',
')', },
52 - find =
'vim%.print%b()',
53 - delete =
'^(vim%.print%()().-(%))()$',
55 - target =
'^(vim%.print%()().-(%))()$',
61 - 'nvim-treesitter/nvim-treesitter',
27 + add = {
"require '",
"'" },
28 + find =
"require%b''",
30 + delete =
"^(require')().-(')()$",
32 + target =
"^(require')().-('()$",
36 + add = {
'vim.print(',
')' },
37 + find =
'vim%.print%b()',
38 + delete =
'^(vim%.print%()().-(%))()$',
40 + target =
'^(vim%.print%()().-(%))()$',
46 + 'nvim-treesitter/nvim-treesitter',
neovim/lua/bugabinga/plugins/text-case.lua
Modified 3 2 'johmsalas/text-case.nvim',
4 - dependencies = {
'nvim-telescope/telescope.nvim', },
6 - require 'textcase'.setup {}
7 - require 'telescope'.load_extension
'textcase' 11 - {
'gA',
'<cmd>TextCaseOpenTelescope<CR>',
mode = {
'n',
'x', },
desc =
'Change text case', },
14 - 'TextCaseOpenTelescope',
15 - 'TextCaseOpenTelescopeQuickChange',
16 - 'TextCaseOpenTelescopeLSPChange',
17 - 'TextCaseStartReplacingCommand',
neovim/lua/bugabinga/plugins/textobjects.lua
Addednew file mode 100644 2 + 'nvim-treesitter/nvim-treesitter-textobjects',
5 + dependencies =
'nvim-treesitter/nvim-treesitter',
7 + require 'nvim-treesitter.configs'.setup {
11 + disable = should_disable,
14 + [
'af'] = {
query =
'@call.outer',
desc =
'outer function call' },
15 + [
'if'] = {
query =
'@call.inner',
desc =
'inner function call' },
17 + [
'am'] = {
query =
'@function.outer',
desc =
'outer function definition' },
18 + [
'im'] = {
query =
'@function.inner',
desc =
'inner function definition' },
20 + [
'ai'] = {
query =
'@conditional.outer',
desc =
'outer conditional' },
21 + [
'ii'] = {
query =
'@conditional.inner',
desc =
'inner conditional' },
23 + [
'aa'] = {
query =
'@parameter.outer',
desc =
'outer parameter' },
24 + [
'ia'] = {
query =
'@parameter.inner',
desc =
'inner parameter' },
26 + [
'ac'] = {
query =
'@comment.outer',
desc =
'outer comment' },
27 + [
'ic'] = {
query =
'@comment.inner',
desc =
'inner comment' },
30 + [
'@parameter.outer'] =
'v',
31 + [
'@function.outer'] =
'v',
32 + [
'@class.outer'] =
'<c-v>',
35 + include_surroundig_whitespace =
true,
40 + disable = should_disable,
43 + [
']m'] = {
query =
'@function.outer',
desc =
'goto next function definition' },
46 + [
'[m'] = {
query =
'@function.outer',
desc =
'goto previous function definition' },
neovim/lua/bugabinga/plugins/treesitter.lua
Modified 17 - 'nvim-treesitter/nvim-treesitter-textobjects',
18 - 'windwp/nvim-ts-autotag',
19 17 'RRethy/nvim-treesitter-endwise',
20 18 'nushell/tree-sitter-nu',
26 24 install.prefer_git
= false 27 25 install.compilers
= {
'zig cc',
'clang',
'gcc',
'cl',
'cc', vim.fn.getenv
'CC' }
29 - local should_disable = function ( _, bufnr )
30 - local max_filesize
= 5 * 1024 * 1024 32 - local ok, stats
= pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr
or 0 ) )
33 - if ok
and stats
and stats.size
> max_filesize
then 41 29 sync_install =
false,
42 30 ignore_install = {
'oil' },
43 31 auto_install =
true,
45 - autotag = {
enable =
true,
disable = should_disable },
46 - endwise = {
enable =
true,
disable = should_disable },
33 + endwise = {
enable =
true },
50 - disable = should_disable,
51 37 additional_vim_regex_highlighting =
false,
54 - incremental_selection = {
56 - disable = should_disable,
59 - init_selection =
'<up>',
60 - node_incremental =
'<up>',
61 - node_decremental =
'<down>',
62 - scope_incremental =
'<right>',
66 - indent = {
enable =
true,
disable = should_disable },
71 - disable = should_disable,
74 - [
'af'] = {
query =
'@call.outer',
desc =
'outer function call' },
75 - [
'if'] = {
query =
'@call.inner',
desc =
'inner function call' },
77 - [
'am'] = {
query =
'@function.outer',
desc =
'outer function definition' },
78 - [
'im'] = {
query =
'@function.inner',
desc =
'inner function definition' },
80 - [
'ai'] = {
query =
'@conditional.outer',
desc =
'outer conditional' },
81 - [
'ii'] = {
query =
'@conditional.inner',
desc =
'inner conditional' },
83 - [
'aa'] = {
query =
'@parameter.outer',
desc =
'outer parameter' },
84 - [
'ia'] = {
query =
'@parameter.inner',
desc =
'inner parameter' },
86 - [
'ac'] = {
query =
'@comment.outer',
desc =
'outer comment' },
87 - [
'ic'] = {
query =
'@comment.inner',
desc =
'inner comment' },
90 - [
'@parameter.outer'] =
'v',
91 - [
'@function.outer'] =
'v',
92 - [
'@class.outer'] =
'<c-v>',
95 - include_surroundig_whitespace =
true,
100 - disable = should_disable,
103 - [
']m'] = {
query =
'@function.outer',
desc =
'Goto next function definition' },
106 - [
'[m'] = {
query =
'@function.outer',
desc =
'Goto previous function definition' },
40 + indent = {
enable =
true },
neovim/lua/bugabinga/plugins/treesj.lua
Modified 3 3 local map
= require 'std.map' 6 6 description =
'Toggle Tree Join/Split',
7 7 category =
'editing',
10 9 command =
function ()
11 - require 'treesj'.toggle()
10 + prequire
'treesj'.toggle {
split = {
recursive =
true } }
15 + description =
'Join Tree',
16 + category =
'editing',
17 + keys =
'<leader>jj',
18 + command =
function ()
19 + prequire
'treesj'.join()
24 + description =
'Split Tree',
25 + category =
'editing',
26 + keys =
'<leader>js',
27 + command =
function ()
28 + prequire
'treesj'.split()
17 - dependencies = {
'nvim-treesitter/nvim-treesitter', },
34 + dependencies = {
'nvim-treesitter/nvim-treesitter' },
19 36 use_default_keymaps =
false,
21 - max_join_length = vim.opt.textwidth:get(),
37 + max_join_length =
360,
neovim/lua/bugabinga/plugins/venn.lua
Deleteddeleted file mode 100644 1 -local map
= require 'std.map' 4 - description =
'Enable box drawing mode',
7 - command =
function () vim.cmd.VBox()
end,
neovim/lua/bugabinga/plugins/whichkey.lua
Modified 1 1 local ignored
= require 'std.ignored' 2 2 local icon
= require 'std.icon' 3 +local map
= require 'std.map' 4 +local dbg
= require 'std.dbg' 7 + description =
'Show key maps',
10 + command =
function ()
11 + prequire
'which-key'.show {
global =
false }
5 16 'folke/which-key.nvim',
10 - vim.o.timeoutlen
= 250 14 - [
'<space>'] = icon.space_key,
15 - [
'<cr>'] = icon.return_key,
16 - [
'<tab>'] = icon.tab_key,
17 - [
'<esc>'] = icon.esc_key,
18 - [
'<bs>'] = icon.backspace_key,
19 - [
'<leader>'] = icon.leader_key,
22 21 group = icon.group,
23 + CR = icon.return_key,
25 + Space = icon.space_key,
25 30 border = vim.g.border_style,
26 - winblend = vim.o.winblend,
32 + winblend = vim.o.winblend,
28 - layout = {
align =
'center' },
30 - buftypes = ignored.buftypes,
36 + bt = ignored.buftypes,
37 + ft = ignored.filetypes,
41 + {
'<leader> ',
group =
'fun' },
42 + {
'<leader>b',
group =
'|b|uffer' },
43 + {
'<leader>f',
group =
'|f|iles' },
44 + {
'<leader>j',
group =
'|j|oin' },
45 + {
'<leader>l',
group =
'|l|sp' },
46 + {
'<leader>lc',
group =
'|c|alls' },
47 + {
'<leader>t',
group =
'|t|oggle' },
48 + {
'<leader>v',
group =
'|v|ersion control' },
49 + {
'<leader>z',
group =
'la|z|y' },
33 - config =
function ( _, opts )
34 - local wk
= require 'which-key' 43 - [
'7'] = {
name =
'tests',
_ =
'which_key_ignore' },
44 - m = {
name =
'|m|ark',
_ =
'which_key_ignore' },
45 - b = {
name =
'|b|uffer',
_ =
'which_key_ignore' },
46 - h = {
name =
'|h|unk',
_ =
'which_key_ignore' },
47 - f = {
name =
'|f|iles',
_ =
'which_key_ignore' },
48 - g = {
name =
'|g|enerate',
_ =
'which_key_ignore' },
49 - d = {
name =
'|d|ebug',
_ =
'which_key_ignore' },
50 - v = {
name =
'|v|ersion control',
_ =
'which_key_ignore' },
51 - r = {
name =
'|r|efactor',
_ =
'which_key_ignore' },
52 - t = {
name =
'|t|oggle',
_ =
'which_key_ignore' },
53 - w = {
name =
's|w|ap',
_ =
'which_key_ignore' },
54 - z = {
name =
'la|z|y',
_ =
'which_key_ignore' },
55 - [
' '] = {
name =
'fun',
_ =
'which_key_ignore' },
57 - p = {
name =
'|p|arameter',
_ =
'which_key_ignore' },
59 - l = {
name =
'|l|sp',
_ =
'which_key_ignore',
60 - c = {
name =
'|c|alls',
_ =
'which_key_ignore' },
neovim/lua/bugabinga/plugins/window.lua
Deleteddeleted file mode 100644 1 -local map
= require 'std.map' 2 -local user_command
= require 'std.user_command' 5 - description =
'Open window picker...',
6 - category =
'navigation',
8 - command =
function () prequire
'nvim-window'.pick()
end,
11 -user_command.PickWindow
12 -'Pick a window with a simple char motion' (
13 - function () prequire
'nvim-window'.pick()
end 17 - 'yorickpeterse/nvim-window',
20 - chars = {
'a',
's',
'd',
'f',
'q',
'w',
'e',
'r',
'z',
'x',
'c',
'v',
'j',
'k',
'l',
'm',
'i',
'u',
'o',
'p',
'g',
'h',
't',
'y',
'b',
'n', },
21 - border = vim.g.border_style,
22 - normal_hl =
'NormalFloat',
23 - hint_hl =
'Special',
neovim/lua/bugabinga/plugins/zen.lua
Modified11 11 'folke/zen-mode.nvim',
13 - dependencies = { {
'folke/twilight.nvim',
opts = {
dimming = {
inactive =
false, }, }, }, },
15 - plugins = {
wezterm = {
enabled =
true,
font =
'+2', }, },
15 + plugins = {
wezterm = {
enabled =
true,
font =
'+2' } },