dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: more lazy for faster start on win32
91c5317866a8fc87d7431f1e0f5a045a6353aac9
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
Browse filesCompare with HEAD
Changed files (25)
neovim/.lsp.settings.lua
Modified6 6 diagnostics = {
globals = {
'vim',
'prequire', }, },
7 7 runtime = {
version =
'LuaJIT', },
9 + library = { prequire
'neodev.config'.types(), },
53 53 In case of markdown and text it seems useful, for code it seems like a
55 55 * use ltex-ls for markdown, code comments and commit messages
56 +* flesh out 'const.lua', move to std?
57 57 * nvim spell for camel case words
58 58 * add nu-check to nvim-lint
59 59 * create skeleton-plugin for default file content based on file type
neovim/ftplugin/lua.lua
Modified 7 7 vim.opt_local.suffixesadd:prepend
'.lua' 8 8 vim.opt_local.conceallevel
= 1 9 9 vim.opt_local.concealcursor
= 'n' 11 -local map
= require 'std.map' 14 - description =
'Wrap word under cursor with require call',
15 - keys =
'<leader>rq',
16 - category =
'refactor',
20 - command =
"ebi'<esc>ea'<esc>bbirequire <esc>www",
26 -prequire
'nvim-surround'.buffer_setup {
29 - add = {
"require '",
"'", },
30 - find =
"require%b''",
32 - delete =
"^(require')().-(')()$",
34 - target =
"^(require')().-('()$",
38 - add = {
'vim.print(',
')', },
39 - find =
'vim%.print%b()',
40 - delete =
'^(vim%.print%()().-(%))()$',
42 - target =
'^(vim%.print%()().-(%))()$',
14 16 vim.cmd.colorscheme
'nugu' neovim/lazy-lock.json
Modified 2 2 "Comment.nvim": {
"branch":
"master",
"commit":
"e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 3 "LuaSnip": {
"branch":
"master",
"commit":
"03c8e67eb7293c404845b3982db895d59c0d1538" },
4 - "actions-preview.nvim": {
"branch":
"master",
"commit":
"5072b1b1065a6b22bdd46b5c21780a91d6a08071" },
5 - "auto-dark-mode.nvim": {
"branch":
"master",
"commit":
"e328dc463d238cb7d690fb4daf068eba732a5a14" },
4 + "actions-preview.nvim": {
"branch":
"master",
"commit":
"e8d41b608e24319548637685c7cfa66fadaff2b2" },
6 5 "better-escape.nvim": {
"branch":
"master",
"commit":
"7e86edafb8c7e73699e0320f225464a298b96d12" },
7 6 "cmp-buffer": {
"branch":
"main",
"commit":
"3022dbc9166796b644a841a02de8dd1cc1d311fa" },
8 7 "cmp-nvim-lsp": {
"branch":
"main",
"commit":
"5af77f54de1b16c34b23cba810150689a3a90312" },
10 9 "cmp-path": {
"branch":
"main",
"commit":
"91ff86cd9c29299a64f968ebb45846c485725f23" },
11 10 "cmp_luasnip": {
"branch":
"master",
"commit":
"05a9ab28b53f71d1aece421ef32fee2cb857a843" },
12 11 "colorizer.nvim": {
"branch":
"master",
"commit":
"107719885290366c893e1c1c58b7474cbeabfef6" },
13 - "conform.nvim": {
"branch":
"master",
"commit":
"a6965ac128eba75537ec2bc5ddd5d5e357062bdc" },
12 + "conform.nvim": {
"branch":
"master",
"commit":
"6dc1603ea408f476a57937bbeaf7f86520a21a98" },
14 13 "diffview.nvim": {
"branch":
"main",
"commit":
"3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
15 14 "dressing.nvim": {
"branch":
"master",
"commit":
"5162edb1442a729a885c45455a07e9a89058be2f" },
16 15 "fidget.nvim": {
"branch":
"main",
"commit":
"1ba38e4cbb24683973e00c2e36f53ae64da38ef5" },
17 - "flash.nvim": {
"branch":
"main",
"commit":
"48817af25f51c0590653bbc290866e4890fe1cbe" },
18 - "gitsigns.nvim": {
"branch":
"main",
"commit":
"52f8da33cc0cadbf1164c4a91c8bfd6895533d67" },
16 + "flash.nvim": {
"branch":
"main",
"commit":
"7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
17 + "gitsigns.nvim": {
"branch":
"main",
"commit":
"76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
19 18 "glow.nvim": {
"branch":
"main",
"commit":
"238070a686c1da3bccccf1079700eb4b5e19aea4" },
20 19 "heirline.nvim": {
"branch":
"master",
"commit":
"03cff30d7e7d3ba6fdc00925f015822f79cef908" },
21 20 "indent-blankline.nvim": {
"branch":
"master",
"commit":
"3d08501caef2329aba5121b753e903904088f7e6" },
22 - "lazy.nvim": {
"branch":
"main",
"commit":
"bef521ac89c8d423f9d092e37b58e8af0c099309" },
21 + "lazy.nvim": {
"branch":
"main",
"commit":
"d3974346b6cef2116c8e7b08423256a834cb7cbc" },
23 22 "lspkind.nvim": {
"branch":
"master",
"commit":
"1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
24 - "lua-utils.nvim": {
"branch":
"main",
"commit":
"e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
25 - "mason-tool-installer.nvim": {
"branch":
"main",
"commit":
"b129892f783740e6cf741f2ea09fa5dd512aa584" },
26 - "mason.nvim": {
"branch":
"main",
"commit":
"c43eeb5614a09dc17c03a7fb49de2e05de203924" },
27 23 "mini.bracketed": {
"branch":
"main",
"commit":
"65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
24 + "mini.bufremove": {
"branch":
"main",
"commit":
"931a3bb514147d9e812767275c4beba6b779b1d3" },
28 25 "mkdir.nvim": {
"branch":
"main",
"commit":
"c55d1dee4f099528a1853b28bb28caa802eba217" },
29 26 "neodev.nvim": {
"branch":
"main",
"commit":
"ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
30 27 "neogen": {
"branch":
"main",
"commit":
"0daffcec249bf42275e322361fe55b89a05ff278" },
31 - "neorg": {
"branch":
"main",
"commit":
"c17b8e9e7327e03f78fbdccfb15abd09ec607bd0" },
32 - "neotest": {
"branch":
"master",
"commit":
"5caac5cc235d495a2382bc2980630ef36ac87032" },
33 - "neotest-plenary": {
"branch":
"master",
"commit":
"dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" },
34 28 "nrpattern.nvim": {
"branch":
"master",
"commit":
"f862ce687761078ef3155688151c55f69d28453e" },
35 - "nui.nvim": {
"branch":
"main",
"commit":
"a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
36 - "nvim-autopairs": {
"branch":
"master",
"commit":
"4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
37 - "nvim-cmp": {
"branch":
"main",
"commit":
"ce16de5665c766f39c271705b17fff06f7bcb84f" },
38 - "nvim-dap": {
"branch":
"master",
"commit":
"6ae8a14828b0f3bff1721a35a1dfd604b6a933bb" },
39 - "nvim-dap-ui": {
"branch":
"master",
"commit":
"5934302d63d1ede12c0b22b6f23518bb183fc972" },
40 - "nvim-dap-virtual-text": {
"branch":
"master",
"commit":
"3e8e207513e6ef520894950acd76b79902714103" },
41 - "nvim-genghis": {
"branch":
"main",
"commit":
"1e6855be88e2266c612903dbc337222b59a06e44" },
29 + "nui.nvim": {
"branch":
"main",
"commit":
"a3597dc88b53489d3fddbddbbd13787355253bb0" },
30 + "nvim-autopairs": {
"branch":
"master",
"commit":
"14e97371b2aab6ee70054c1070a123dfaa3e217e" },
31 + "nvim-cmp": {
"branch":
"main",
"commit":
"cd2cf0c124d3de577fb5449746568ee8e601afc8" },
32 + "nvim-genghis": {
"branch":
"main",
"commit":
"01eeb090ea4947df6b6b9d8589b324b9f1aaf851" },
42 33 "nvim-gomove": {
"branch":
"main",
"commit":
"2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
43 - "nvim-jdtls": {
"branch":
"master",
"commit":
"a4746791876166dc146eae573a1b49d24a6652e7" },
44 34 "nvim-lastplace": {
"branch":
"main",
"commit":
"0bb6103c506315044872e0f84b1f736c4172bb20" },
45 35 "nvim-lint": {
"branch":
"master",
"commit":
"861a04313501563bb1b11f125ae9b7237a517b9b" },
46 36 "nvim-lsp-file-operations": {
"branch":
"master",
"commit":
"223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" },
47 37 "nvim-navbuddy": {
"branch":
"master",
"commit":
"f34237e8a41ebc6e2716af2ebf49854d8c5289c8" },
48 38 "nvim-navic": {
"branch":
"master",
"commit":
"8649f694d3e76ee10c19255dece6411c29206a54" },
49 39 "nvim-neoclip.lua": {
"branch":
"main",
"commit":
"798cd0592a81c185465db3a091a0ff8a21af60fd" },
50 - "nvim-nio": {
"branch":
"master",
"commit":
"5a3a06e5df34f1b4fc1500622b10620c49c60da6" },
51 - "nvim-spectre": {
"branch":
"master",
"commit":
"9653847cf2f225648967f6e9363643e327387579" },
52 - "nvim-surround": {
"branch":
"main",
"commit":
"a4e30d33add8a9743b4f518b3a788b3c8e5def71" },
53 - "nvim-tree.lua": {
"branch":
"master",
"commit":
"ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" },
54 - "nvim-treesitter": {
"branch":
"master",
"commit":
"baaae36ac709f405c0ee5d39ef9ffd8d8160f1a3" },
55 - "nvim-treesitter-context": {
"branch":
"master",
"commit":
"e6e71047bb323fb36f5664993a42adaac252bb36" },
56 - "nvim-treesitter-endwise": {
"branch":
"master",
"commit":
"60e8c288e011403f248b5f6478dde12bed8a6c55" },
40 + "nvim-spectre": {
"branch":
"master",
"commit":
"4651801ba37a9407b7257287aec45b6653ffc5e9" },
41 + "nvim-surround": {
"branch":
"main",
"commit":
"6d0dc3dbb557bcc6a024969da461df4ba803fc48" },
42 + "nvim-tree.lua": {
"branch":
"master",
"commit":
"76db7ed0da3027882dd0a72de18643c2e26956dc" },
43 + "nvim-treesitter": {
"branch":
"master",
"commit":
"1be5aa99e3e0e4a36c31fa7066dcf46a4e0142dd" },
44 + "nvim-treesitter-context": {
"branch":
"master",
"commit":
"2650e6431f7daba5d9c2c64134fa5eb2312eb3d7" },
45 + "nvim-treesitter-endwise": {
"branch":
"master",
"commit":
"8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
57 46 "nvim-treesitter-textobjects": {
"branch":
"master",
"commit":
"23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" },
58 47 "nvim-ts-autotag": {
"branch":
"main",
"commit":
"531f48334c422222aebc888fd36e7d109cb354cd" },
59 48 "nvim-ts-context-commentstring": {
"branch":
"main",
"commit":
"0bdccb9c67a42a5e2d99384dc9bfa29b1451528f" },
60 49 "nvim-web-devicons": {
"branch":
"master",
"commit":
"5b9067899ee6a2538891573500e8fd6ff008440f" },
61 50 "nvim-window": {
"branch":
"main",
"commit":
"fad0dc96de265b0bdcb21d1071329e5ab1deb4af" },
63 51 "oil.nvim": {
"branch":
"master",
"commit":
"010b44a79d497c697686e2727049d3dd215bbbd6" },
64 - "overseer.nvim": {
"branch":
"master",
"commit":
"89942ad366c8a9bb93f82411de17dc7c644b4e3b" },
65 52 "pair-ls.nvim": {
"branch":
"master",
"commit":
"ccf3280d8cafec48e4947dd827abbc456435dfad" },
67 - "oil.nvim": {
"branch":
"master",
"commit":
"8bb35eb81a48f14c4a1ef480c2bbb87ceb7cd8bb" },
68 - "overseer.nvim": {
"branch":
"master",
"commit":
"dd701ed0639ef1e10d0ca8dec039719e916c4a7b" },
69 - "pair-ls.nvim": {
"branch":
"master",
"commit":
"e7a8f55f54a6a1956b782ddefba79dc6bb308d1d" },
70 ->>>>>>>
2bc
526b
11d
6c
48ead
4fde
8f
45b
9105b
0d
1edd
5c
2 71 53 "playground": {
"branch":
"master",
"commit":
"ba48c6a62a280eefb7c85725b0915e021a1a0749" },
72 - "plenary.nvim": {
"branch":
"master",
"commit":
"50012918b2fc8357b87cff2a7f7f0446e47da174" },
54 + "plenary.nvim": {
"branch":
"master",
"commit":
"08e301982b9a057110ede7a735dd1b5285eb341f" },
73 55 "qf_helper.nvim": {
"branch":
"master",
"commit":
"301cea47118ccfc91a7cc48e316f2abc1ec7c1c6" },
74 - "resession.nvim": {
"branch":
"master",
"commit":
"dc8825439c619030925543a444c4186a2487c200" },
76 - "schemastore.nvim": {
"branch":
"main",
"commit":
"8c46453bdf84ad91877effb95e0b6c7b51ea7dda" },
78 - "schemastore.nvim": {
"branch":
"main",
"commit":
"f7cae6f1b38cb296f48ce1a9c5ed1a419d912a42" },
79 ->>>>>>>
2bc
526b
11d
6c
48ead
4fde
8f
45b
9105b
0d
1edd
5c
2 56 + "schemastore.nvim": {
"branch":
"main",
"commit":
"35a0998728380a17b8590447e8207391411c667a" },
80 57 "specs.nvim": {
"branch":
"main",
"commit":
"8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
81 58 "speedtyper.nvim": {
"branch":
"main",
"commit":
"2d158eed4c753995b0501a3a7a72464fbb213e3d" },
82 59 "ssr.nvim": {
"branch":
"main",
"commit":
"bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
83 60 "substitute.nvim": {
"branch":
"main",
"commit":
"17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
85 61 "suda.vim": {
"branch":
"master",
"commit":
"b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
87 - "suda.vim": {
"branch":
"master",
"commit":
"04469d855e36fffcda6be036eb7ff005f64fa0d6" },
88 ->>>>>>>
2bc
526b
11d
6c
48ead
4fde
8f
45b
9105b
0d
1edd
5c
2 89 62 "telescope-fzf-native.nvim": {
"branch":
"main",
"commit":
"9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
90 63 "telescope-symbols.nvim": {
"branch":
"master",
"commit":
"a6d0127a53d39b9fc2af75bd169d288166118aec" },
91 64 "telescope-zoxide": {
"branch":
"main",
"commit":
"68966349aa1b8e9ade403e18479ecf79447389a7" },
96 69 "tree-sitter-nu": {
"branch":
"main",
"commit":
"a58513279e98dc3ff9ed149e3b4310cbb7e11068" },
97 70 "treesj": {
"branch":
"main",
"commit":
"e1e82ab4237619d342c7102c9f13d4b9833bfd39" },
98 71 "twilight.nvim": {
"branch":
"main",
"commit":
"8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
99 - "venn.nvim": {
"branch":
"main",
"commit":
"a5430d75875acbe93e9685cdeb78c6eb2a329ed5" },
72 + "venn.nvim": {
"branch":
"main",
"commit":
"b09c2f36ddf70b498281845109bedcf08a7e0de0" },
100 73 "vim-vscode-snippets": {
"branch":
"master",
"commit":
"812e60d1c648f889328761ec71daff09d1eb3177" },
101 74 "virt-column.nvim": {
"branch":
"master",
"commit":
"b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
102 75 "which-key.nvim": {
"branch":
"main",
"commit":
"ce741eb559c924d72e3a67d2189ad3771a231414" },
103 76 "zen-mode.nvim": {
"branch":
"main",
"commit":
"78557d972b4bfbb7488e17b5703d25164ae64e6a" }
neovim/lua/bugabinga/lsp/clients/init.lua
Modified 2 2 require 'bugabinga.lsp.clients.java',
3 3 require 'bugabinga.lsp.clients.lua',
4 - require 'bugabinga.lsp.clients.json',
5 4 require 'bugabinga.lsp.clients.asm',
6 5 require 'bugabinga.lsp.clients.c',
7 6 require 'bugabinga.lsp.clients.graphviz',
neovim/lua/bugabinga/lsp/clients/json.lua
Deleteddeleted file mode 100644 1 -local project
= require 'std.project' 5 - filetypes = {
'json',
'jsonc' },
6 - command = {
'vscode-json-language-server',
'--stdio' },
7 - root_dir = project.find_vcs_project_root,
8 - single_file_support =
true,
11 - provideFormatter =
true,
15 - schemas =
require 'schemastore'.json.schemas {
17 - description =
'Settings for lua-language-server',
18 - name =
'LuaLS Settings',
19 - url =
'https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json',
20 - fileMatch = {
'.luarc.json',
'.luarc.jsonc' },
23 - validate = {
enable =
true },
neovim/lua/bugabinga/lsp/clients/lua.lua
Modified13 13 addonManager = {
enable =
false, },
14 - completion = {
callSnippet =
'Replace', },
14 + completion = {
callSnippet =
'Both', },
15 15 hint = {
enable =
true,
setType =
true, },
16 16 telemetry = {
enable =
false, },
17 - window = {
progressBar =
true,
statusBar =
true, },
17 + window = {
progressBar =
false,
statusBar =
false, },
18 18 workspace = {
checkThirdParty =
false, },
neovim/lua/bugabinga/nugu/init.lua
Modified124 124 _.Debug {
fg = ui_normal,
bg =
debug,
bold =
true, }
125 126 _.Normal {
fg = content_normal,
bg = content_backdrop, }
126 127 _.Comment {
fg = content_important_global, }
127 128 _.NotifyBackground {
bg = ui_backdrop, }
129 130 _.CursorLineNr {
fg = ui_focus,
bg = ui_backdrop, }
130 131 _.Search {
bg = content_unfocus, }
131 132 _.IncSearch {
fg = content_focus, }
132 -_.CurSearch {
fg = content_normal,
bg = content_important_global, }
133 +_.CurSearch {
fg = content_important_global,
bg = content_unfocus, }
133 134 _.NormalFloat {
fg = ui_normal,
bg = ui_backdrop, }
134 135 _.FloatBorder {
fg = _.NormalFloat.bg,
bg = _.NormalFloat.bg, }
135 136 _.ColorColumn {
fg = ui_important_global,
bg = _.Normal.bg, }
466 467 _.TelescopeSelection
= _.PmenuSel
467 468 _.TelescopeMultiSelection {
fg = content_normal,
bg = ui_important_local, }
470 +_.FlashBackdrop {
fg = ui_normal,
bg = ui_backdrop, }
470 471 _.FlashMatch
= _.IncSearch
471 472 _.FlashCurrent
= _.CurSearch
472 473 _.FlashLabel {
fg = ui_accent,
bg = ui_backdrop, }
neovim/lua/bugabinga/options/ui.lua
Modified127 127 vim.opt.guicursor
= 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50' 130 -vim.opt.guifont
= 'Cousine,Symbols Nerd Font Mono:#e-subpixelantialias:#h-full' 130 +vim.opt.guifont
= 'Cousine,Symbols Nerd Font Mono:h16:#e-subpixelantialias:#h-none' 133 133 vim.opt.linespace
= -3 136 136 if vim.g.neovide
then 137 + vim.g.neovide_floating_blur_amount_x
= 12.0 138 + vim.g.neovide_floating_blur_amount_y
= 12.0 140 + vim.g.neovide_fullscreen
= true 141 141 vim.g.neovide_remember_window_size
= true 142 142 vim.g.neovide_profiler
= false 151 151 vim.g.neovide_padding_left
= 0 152 152 vim.g.neovide_hide_mouse_when_typing
= true 153 153 vim.g.neovide_theme
= 'auto' 154 - vim.g.neovide_refresh_rate
= vim.uv.os_gethostname()
== 'pop-os' and 144 or 60 155 154 vim.g.neovide_refresh_rate_idle
= 5 neovim/lua/bugabinga/plugins/bufremove.lua
Addednew file mode 100644 3 + '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' 7 - 'hrsh7th/cmp-nvim-lsp',
8 - 'hrsh7th/cmp-buffer',
10 - 'hrsh7th/cmp-nvim-lua',
11 - 'saadparwaiz1/cmp_luasnip',
12 - 'onsails/lspkind.nvim',
15 - config =
function ()
16 - local cmp
= require 'cmp' 17 - local luasnip
= require 'luasnip' 18 - local MAX_INDEX_FILE_SIZE
= 4000 5 + event =
'InsertEnter',
7 + 'hrsh7th/cmp-nvim-lsp',
8 + 'hrsh7th/cmp-buffer',
10 + 'hrsh7th/cmp-nvim-lua',
11 + 'saadparwaiz1/cmp_luasnip',
12 + 'onsails/lspkind.nvim',
15 + config =
function ()
16 + local cmp
= require 'cmp' 17 + local luasnip
= require 'luasnip' 18 + local MAX_INDEX_FILE_SIZE
= 4000 20 - local snippet_next = function ( fallback )
21 - if luasnip.expand_or_jumpable()
then 22 - luasnip.expand_or_jump()
23 - elseif cmp.visible()
then 24 - cmp.select_next_item()
20 + local snippet_next = function ( fallback )
21 + if luasnip.expand_or_jumpable()
then 22 + luasnip.expand_or_jump()
23 + elseif cmp.visible()
then 24 + cmp.select_next_item()
30 - local snippet_prev = function ( fallback )
31 - if luasnip.jumpable(
-1 )
then 33 - elseif cmp.visible()
then 34 - cmp.select_prev_item()
30 + local snippet_prev = function ( fallback )
31 + if luasnip.jumpable(
-1 )
then 33 + elseif cmp.visible()
then 34 + cmp.select_prev_item()
40 - local mapping
= cmp.mapping.preset.insert {
41 - [
'<C-d>'] = cmp.mapping.scroll_docs(
-4 ),
42 - [
'<C-f>'] = cmp.mapping.scroll_docs(
4 ),
43 - [
'<C-e>'] = cmp.mapping.close(),
44 - [
'<C-y>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select =
true, },
45 - [
'<C-space>'] = cmp.mapping.complete(),
46 - [
'<Tab>'] = cmp.mapping( snippet_next, {
'i',
's', } ),
47 - [
'<S-Tab>'] = cmp.mapping( snippet_prev, {
'i',
's', } ),
40 + local mapping
= cmp.mapping.preset.insert {
41 + [
'<C-d>'] = cmp.mapping.scroll_docs(
-4 ),
42 + [
'<C-f>'] = cmp.mapping.scroll_docs(
4 ),
43 + [
'<C-e>'] = cmp.mapping.close(),
44 + [
'<C-y>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select =
true, },
45 + [
'<C-space>'] = cmp.mapping.complete(),
46 + [
'<Tab>'] = cmp.mapping( snippet_next, {
'i',
's', } ),
47 + [
'<S-Tab>'] = cmp.mapping( snippet_prev, {
'i',
's', } ),
50 - local formatting
= {}
51 - local ok, lspkind
= pcall(
require,
'lspkind' )
53 - formatting.format
= lspkind.cmp_format {
56 - Copilot = icon.copilot,
59 - Constant = icon.constant,
60 - Constructor = icon.constructor,
62 - EnumMember = icon.enum_member,
66 - Folder = icon.folder,
67 - Function = icon[
'function'],
68 - Interface = icon.interface,
69 - Keyword = icon.keyword,
70 - Method = icon.method,
71 - Module = icon.module,
72 - Operator = icon.operator,
73 - Property = icon.property,
74 - Reference = icon.reference,
75 - Snippet = icon.snippet,
76 - Struct = icon.struct,
78 - TypeParameter = icon.type_parameter,
81 - Variable = icon.variable,
86 - nvim_lua =
'[nvim]',
50 + local formatting
= {}
51 + local ok, lspkind
= pcall(
require,
'lspkind' )
53 + formatting.format
= lspkind.cmp_format {
56 + Copilot = icon.copilot,
59 + Constant = icon.constant,
60 + Constructor = icon.constructor,
62 + EnumMember = icon.enum_member,
66 + Folder = icon.folder,
67 + Function = icon[
'function'],
68 + Interface = icon.interface,
69 + Keyword = icon.keyword,
70 + Method = icon.method,
71 + Module = icon.module,
72 + Operator = icon.operator,
73 + Property = icon.property,
74 + Reference = icon.reference,
75 + Snippet = icon.snippet,
76 + Struct = icon.struct,
78 + TypeParameter = icon.type_parameter,
81 + Variable = icon.variable,
86 + nvim_lua =
'[nvim]',
94 - {
name =
'neodev', },
95 - {
name =
'nvim_lua', },
96 - {
name =
'nvim_lsp', },
98 - {
name =
'luasnip', },
99 - {
name =
'neorg', },
102 - keyword_length =
4,
104 - get_bufnrs =
function ()
106 - for _, bufnr
in ipairs( vim.api.nvim_list_bufs() )
do 108 - if vim.api.nvim_buf_is_loaded( bufnr )
and vim.api.nvim_buf_line_count( bufnr )
< MAX_INDEX_FILE_SIZE
then 109 - table.
insert( bufs, bufnr )
94 + {
name =
'neodev', },
95 + {
name =
'nvim_lua', },
96 + {
name =
'nvim_lsp', },
98 + {
name =
'luasnip', },
101 + keyword_length =
4,
103 + get_bufnrs =
function ()
105 + for _, bufnr
in ipairs( vim.api.nvim_list_bufs() )
do 107 + if vim.api.nvim_buf_is_loaded( bufnr )
and vim.api.nvim_buf_line_count( bufnr )
< MAX_INDEX_FILE_SIZE
then 108 + table.
insert( bufs, bufnr )
120 - formatting = formatting,
119 + formatting = formatting,
123 - completion = {
autocomplete =
false, },
125 - expand =
function ( args ) luasnip.lsp_expand( args.body )
end,
122 + completion = {
autocomplete =
false, },
124 + expand =
function ( args ) luasnip.lsp_expand( args.body )
end,
neovim/lua/bugabinga/plugins/dap.lua
Deleteddeleted file mode 100644 4 - 'mfussenegger/nvim-dap',
6 - 'rcarriga/nvim-dap-ui',
7 - {
'theHamsta/nvim-dap-virtual-text',
config =
true, },
8 - {
'stevearc/overseer.nvim', },
11 - {
'<leader>dc',
"<cmd>lua require'dap'.continue()<CR>",
mode =
'n',
desc =
'[D]ebug [C]ontinue', },
12 - {
'<leader>dj',
"<cmd>lua require'dap'.step_over()<CR>",
mode =
'n',
desc =
'[D]ebug step over', },
13 - {
'<leader>di',
"<cmd>lua require'dap'.step_into()<CR>",
mode =
'n',
desc =
'[D]ebug step [I]nto', },
14 - {
'<leader>do',
"<cmd>lua require'dap'.step_out()<CR>",
mode =
'n',
desc =
'[D]ebug step [O]ut', },
15 - {
'<leader>dl',
"<cmd>lua require'dap'.run_last()<CR>",
mode =
'n',
desc =
'[D]ebug run [L]ast', },
16 - {
'<leader>dr',
"<cmd>lua require'dap'.repl.open()<CR>",
mode =
'n',
desc =
'[D]ebug open [R]epl', },
17 - {
'<leader>dq',
"<cmd>lua require'dap'.terminate()<CR>",
mode =
'n',
desc =
'[D]ebug [Q]uit', },
18 - {
'<leader>db',
"<cmd>lua require'dap'.toggle_breakpoint()<CR>",
mode =
'n',
desc =
'[D]ebug set [B]reakpoint', },
22 - vim.ui.input( {
prompt =
'Breakpoint condition', },
function ( cond )
24 - require 'dap' .set_breakpoint( cond )
29 - desc =
'[D]ebug set conditional [B]reakpoint',
32 - config =
function ()
34 - vim.fn.sign_define(
'DapBreakpoint', {
text =
'•',
texthl =
'DiagnosticError',
linehl =
'',
numhl =
'', } )
35 - vim.fn.sign_define(
'DapBreakpointCondition', {
text =
'?',
texthl =
'DiagnosticError',
linehl =
'',
numhl =
'', } )
36 - vim.fn.sign_define(
'DapLogPoint', {
text =
'⁋',
texthl =
'',
linehl =
'',
numhl =
'', } )
37 - vim.fn.sign_define(
'DapStopped', {
text =
' ',
texthl =
'DiagnosticInfo',
linehl =
'',
numhl =
'', } )
38 - vim.fn.sign_define(
'DapBreakpointRejected', {
text =
'X',
texthl =
'DiagnosticError',
linehl =
'',
numhl =
'', } )
40 - local dapui
= require 'dapui' 41 - local dap
= require 'dap' 43 - dap.listeners.after.event_initialized[
'dapui_config']
= function ()
46 - dap.listeners.before.event_terminated[
'dapui_config']
= function ()
49 - dap.listeners.before.event_exited[
'dapui_config']
= function ()
52 - vim.schedule(
function ()
53 - require 'dap.ext.vscode' .json_decode
= require 'overseer.json' .decode
54 - require 'dap.ext.vscode' .load_launchjs(
nil, {
node = {
'typescript',
'javascript', }, } )
55 - require 'overseer' .patch_dap(
true )
neovim/lua/bugabinga/plugins/flash.lua
Modified11 11 'folke/flash.nvim',
15 - highlight = {
backdrop =
false, },
16 - modes = {
char = {
highlight = {
backdrop =
false, }, },
neovim/lua/bugabinga/plugins/genghis.lua
Modified 1 +local const
= require 'bugabinga.const' 3 + require 'bugabinga.health'.add_dependency {
4 + name_of_executable =
'recycle-bin',
1 8 local map
= require 'std.map' 6 - description =
'Create new file',
7 - command =
function ()
require 'genghis'.createNewFile()
end,
11 + keys =
'<leader>fn',
13 + description =
'Create new file',
14 + command =
function ()
require 'genghis'.createNewFile()
end,
11 - keys =
'<leader>fx',
13 - description =
'Move selection to new file',
14 - command =
function ()
require 'genghis'.moveSelectionToNewFile()
end,
18 + keys =
'<leader>fx',
20 + description =
'Move selection to new file',
21 + command =
function ()
require 'genghis'.moveSelectionToNewFile()
end,
18 - keys =
'<leader>fy',
20 - description =
'Yank file name',
21 - command =
function ()
require 'genghis'.copyFilename()
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 path',
28 - command =
function ()
require 'genghis'.copyFilepath()
end,
32 + keys =
'<leader>fY',
34 + description =
'Yank file path',
35 + command =
function ()
require 'genghis'.copyFilepath()
end,
32 - keys =
'<leader>fc',
34 - description =
'Change file mode/permissions',
35 - command =
function ()
require 'genghis'.chmodx()
end,
39 + keys =
'<leader>fc',
41 + description =
'Change file mode/permissions',
42 + command =
function ()
require 'genghis'.chmodx()
end,
39 - keys =
'<leader>fr',
41 - description =
'Rename file',
42 - command =
function ()
require 'genghis'.renameFile()
end,
46 + keys =
'<leader>fr',
48 + description =
'Rename file',
49 + command =
function ()
require 'genghis'.renameFile()
end,
46 - keys =
'<leader>fm',
48 - description =
'Move file',
49 - command =
function ()
require 'genghis'.moveAndRenameFile()
end,
53 + keys =
'<leader>fm',
55 + description =
'Move file',
56 + command =
function ()
require 'genghis'.moveAndRenameFile()
end,
53 - keys =
'<leader>fM',
55 - description =
'Move file to current working directory',
56 - 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,
60 - keys =
'<leader>ff',
62 - description =
'Duplicate file',
63 - command =
function ()
require 'genghis'.duplicateFile()
end,
67 + keys =
'<leader>ff',
69 + description =
'Duplicate file',
70 + command =
function ()
require 'genghis'.duplicateFile()
end,
67 - keys =
'<leader>fd',
69 - description =
'Move file to system trash',
70 - command =
function ()
require 'genghis'.trashFile()
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',
82 + require 'genghis'.trashFile( opts )
74 - 'chrisgrieser/nvim-genghis',
81 - 'MoveToFolderInCwd',
85 - 'CopyFilepathWithTilde',
87 - 'CopyDirectoryPath',
88 - 'CopyRelativeDirectoryPath',
92 - 'stevearc/dressing.nvim',
87 + 'chrisgrieser/nvim-genghis',
94 + 'MoveToFolderInCwd',
98 + 'CopyFilepathWithTilde',
100 + 'CopyDirectoryPath',
101 + 'CopyRelativeDirectoryPath',
105 + 'stevearc/dressing.nvim',
neovim/lua/bugabinga/plugins/luasnip.lua
Modified 5 7 'stevearc/vim-vscode-snippets',
neovim/lua/bugabinga/plugins/neodev.lua
Modified 8 + setup_jsonls
= false,
neovim/lua/bugabinga/plugins/overseer.lua
Deleteddeleted file mode 100644 1 -local map
= require 'std.map' 2 -local user_command
= require 'std.user_command' 5 - description =
'Toggle task view',
8 - command =
function () prequire
'overseer'.toggle {
enter =
true,
direction =
'right', }
end,
12 - description =
'Run task',
14 - keys =
'<leader>9r',
15 - command =
function () prequire
'overseer'._run_template()
end,
19 - description =
'Run any command as task',
21 - keys =
'<leader>9c',
22 - command =
function () prequire
'overseer'._run_command()
end,
26 - description =
'Load task bundle',
28 - keys =
'<leader>9r',
29 - command =
function () prequire
'overseer'._load_bundle()
end,
33 - description =
'Run an action on the most recent task, or the task under the cursor',
35 - keys =
'<leader>9d',
36 - command =
function () prequire
'overseer'._quick_action()
end,
40 - description =
'Select a task to run an action on',
42 - keys =
'<leader>9s',
43 - command =
function () prequire
'overseer'._task_action()
end,
47 - description =
'Display diagnostic information about overseer',
49 - keys =
'<leader>9i',
50 - command =
function () prequire
'overseer'._info()
end,
53 -user_command.OverseerDebugParser
54 -'Open a tab with windows laid out for debugging a parser' (
56 - prequire
'overseer'.debug_parser()
61 -'Run your grepprg as an Overseer task' 62 - {
nargs =
'*',
bang =
true,
bar =
true,
complete =
'file', } (
64 - local args
= vim.fn.expandcmd( params.args )
66 - local cmd, num_subs
= vim.o.grepprg:gsub(
'%$%*', args )
67 - if num_subs
== 0 then 68 - cmd
= cmd
.. ' ' .. args
71 - prequire(
'oil',
function ( oil )
72 - cwd
= oil.get_current_dir()
74 - local task
= prequire
'overseer'.new_task {
77 - name =
'grep ' .. args,
80 - 'on_output_quickfix',
81 - errorformat = vim.o.grepformat,
82 - open =
not params.bang,
87 - {
'on_complete_dispose',
timeout =
30, },
96 -'Run your makeprg as an Overseer task' 97 - {
nargs =
'*',
bang =
true, } (
100 - local cmd, num_subs
= vim.o.makeprg:gsub(
'%$%*', params.args )
101 - if num_subs
== 0 then 102 - cmd
= cmd
.. ' ' .. params.args
104 - local task
= prequire
'overseer'.new_task {
105 - cmd = vim.fn.expandcmd( cmd ),
107 - {
'on_output_quickfix',
open =
not params.bang,
open_height =
8, },
118 - 'stevearc/resession.nvim',
123 - status = {
'RUNNING', },
129 - 'stevearc/overseer.nvim',
131 - strategy = {
'jobstart', },
136 - level = vim.log.levels.WARN,
140 - filename =
'overseer.log',
141 - level = vim.log.levels.DEBUG,
144 - component_aliases = {
147 - 'display_duration',
150 - 'on_output_summarize',
151 - 'on_exit_set_status',
152 - {
'on_complete_notify',
system =
'unfocused', },
153 - 'on_complete_dispose',
155 - default_neotest = {
157 - {
'on_complete_notify',
system =
'unfocused',
on_change =
true, },
neovim/lua/bugabinga/plugins/sessions.lua
Deleteddeleted file mode 100644 1 -local map
= require 'std.map' 2 -local auto
= require 'std.auto' 4 -local LAST_SESSION
= 'last' 6 -auto
'automatic_session_management' {
9 - description =
'Load automatically saved session for the CWD',
10 - command =
function ()
12 - if vim.fn.argc(
-1 )
== 0 then 14 - prequire
'resession'.load( vim.fn.getcwd(), {
dir =
'autosession',
silence_errors =
true, } )
19 - events =
'VimLeavePre',
20 - description =
'Automatically save sessions for the CWD (tab)',
21 - command =
function () prequire
'resession'.save_tab( vim.fn.getcwd(), {
dir =
'autosession',
notify =
false, } )
end,
24 - events =
'VimLeavePre',
25 - description =
'Automatically save last session (all tabs)',
26 - command =
function () prequire
'resession'.save( LAST_SESSION )
end,
31 - description =
'Restore last session',
32 - category =
'history',
33 - keys =
'<leader>sl',
34 - command =
function () prequire
'resession'.load( LAST_SESSION )
end,
38 - description =
'Restore a session',
39 - category =
'history',
40 - keys =
'<leader>sL',
41 - command =
function () prequire
'resession'.load()
end,
45 - description =
'Delete session',
46 - category =
'history',
47 - keys =
'<leader>sd',
48 - command =
function () prequire
'resession'.delete()
end,
52 - description =
'Save session (tab)',
53 - category =
'history',
54 - keys =
'<leader>ss',
55 - command =
function () prequire
'resession'.save_tab()
end,
59 - description =
'Save session (all tabs)',
60 - category =
'history',
61 - keys =
'<leader>sS',
62 - command =
function () prequire
'resession'.save()
end,
66 - 'stevearc/resession.nvim',
70 - autosave = {
enable =
true, },
91 - tab_buf_filter =
function ( tabpage, bufnr )
92 - local dir
= vim.fn.getcwd(
-1, vim.api.nvim_tabpage_get_number( tabpage ) )
94 - dir
= dir:sub(
-1 )
~= '/' and dir
.. '/' or dir
95 - return vim.startswith( vim.api.nvim_buf_get_name( bufnr ), dir )
neovim/lua/bugabinga/plugins/surround.lua
Modified 2 - 'kylechui/nvim-surround',
7 - insert_line =
'<C-g>mS',
11 - normal_cur_line =
'mSS',
20 - 'nvim-treesitter/nvim-treesitter',
2 + 'kylechui/nvim-surround',
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',
neovim/lua/bugabinga/plugins/telescope.lua
Modified 91 91 'nvim-telescope/telescope.nvim',
97 96 'nvim-telescope/telescope-fzf-native.nvim',
neovim/lua/bugabinga/plugins/tests.lua
Deleteddeleted file mode 100644 1 -local debug = require 'std.dbg' 2 -local icon
= require 'std.icon' 3 -local map
= require 'std.map' 6 - description =
'Run all tests',
9 - command =
function () prequire
'neotest'.run.run {}
end,
13 - description =
'Run all tests',
15 - keys =
'<leader>7n',
16 - command =
function () prequire
'neotest'.run.run {}
end,
20 - description =
'Run tests for current file',
22 - keys =
'<leader>7t',
23 - command =
function () prequire
'neotest'.run.run { vim.api.nvim_buf_get_name(
0 ), }
end,
27 - description =
'Run all test suites',
29 - keys =
'<leader>7a',
30 - command =
function ()
31 - for _, adapter_id
in ipairs(
require 'neotest'.run.adapters() )
do 32 - prequire
'neotest'.run.run {
suite =
true,
adapter = adapter_id, }
38 - description =
'Run last test',
40 - keys =
'<leader>7l',
41 - command =
function () prequire
'neotest'.run.run_last()
end,
45 - description =
'Run all tests in debugger',
47 - keys =
'<leader>7d',
48 - command =
function () prequire
'neotest'.run.run {
strategy =
'dap', }
end,
52 - description =
'Show test summary',
54 - keys =
'<leader>7p',
55 - command =
function () prequire
'neotest'.summary.toggle()
end,
59 - description =
'Show test output',
61 - keys =
'<leader>7o',
62 - command =
function () prequire
'neotest'.output.open {
short =
true, }
end,
69 - 'nvim-neotest/neotest',
71 - 'nvim-lua/plenary.nvim',
72 - 'nvim-neotest/neotest-plenary',
73 - 'nvim-neotest/nvim-nio',
74 - 'stevearc/overseer.nvim',
77 - config =
function ()
78 - local neotest
= require 'neotest' 80 - require 'neotest.logging':set_level
'trace' 84 - require 'neotest-plenary',
90 - overseer = prequire
'neotest.consumers.overseer',
105 - passed = icon.passed,
106 - running = icon.running,
107 - failed = icon.failed,
108 - unknown = icon.unknown,
109 - running_animated = vim.tbl_map(
110 - function ( s )
return s
.. ' ' end,
130 - open_on_run =
false,
neovim/lua/bugabinga/plugins/text-case.lua
Modified 2 3 'johmsalas/text-case.nvim',
3 4 dependencies = {
'nvim-telescope/telescope.nvim', },
10 - {
'gA',
'<cmd>TextCaseOpenTelescope<CR>',
mode = {
'n',
'x', },
desc =
'Telescope', },
11 + {
'gA',
'<cmd>TextCaseOpenTelescope<CR>',
mode = {
'n',
'x', },
desc =
'Change text case', },
13 14 'TextCaseOpenTelescope',
15 16 'TextCaseOpenTelescopeLSPChange',
16 17 'TextCaseStartReplacingCommand',
neovim/lua/bugabinga/plugins/treesitter.lua
Modified 1 1 require 'bugabinga.health'.add_dependency
2 2 {
name =
'CMake',
name_of_executable =
'cmake', }
3 - {
name_of_executable =
'make', }
4 - {
name_of_executable =
'zig', }
5 - {
name =
'TreeSitter CLI',
name_of_executable =
'tree-sitter', }
6 - {
name_of_executable =
'tar', }
3 + {
name_of_executable =
'make', }
4 + {
name_of_executable =
'zig', }
5 + {
name =
'TreeSitter CLI',
name_of_executable =
'tree-sitter', }
6 + {
name_of_executable =
'tar', }
8 +local events
= {
'VeryLazy', }
9 +table.
insert( events, vim.g.FILE_LOADED_EVENTS )
9 - 'nvim-treesitter/nvim-treesitter',
15 - require 'nvim-treesitter.install'.update {
with_sync =
false, }
18 - 'nvim-treesitter/playground',
19 - 'nvim-treesitter/nvim-treesitter-textobjects',
20 - 'windwp/nvim-ts-autotag',
21 - 'RRethy/nvim-treesitter-endwise',
22 - 'nvim-treesitter/nvim-treesitter-context',
23 - 'nushell/tree-sitter-nu',
25 - config =
function ()
26 - local install
= require 'nvim-treesitter.install' 27 - local configs
= require 'nvim-treesitter.configs' 12 + 'nvim-treesitter/nvim-treesitter',
16 + init =
function ( plugin )
22 + require 'lazy.core.loader'.add_to_rtp( plugin )
23 + require 'nvim-treesitter.query_predicates' 26 + require 'nvim-treesitter.install'.update {
with_sync =
false, }
29 + 'nvim-treesitter/playground',
30 + 'nvim-treesitter/nvim-treesitter-textobjects',
31 + 'windwp/nvim-ts-autotag',
32 + 'RRethy/nvim-treesitter-endwise',
33 + 'nvim-treesitter/nvim-treesitter-context',
34 + 'nushell/tree-sitter-nu',
36 + config =
function ()
37 + local install
= require 'nvim-treesitter.install' 38 + local configs
= require 'nvim-treesitter.configs' 29 - install.prefer_git
= false 30 - install.compilers
= {
'clang',
'zig',
'gcc',
'cl',
'cc', vim.fn.getenv
'CC', }
40 + install.prefer_git
= false 41 + install.compilers
= {
'zig',
'clang',
'gcc',
'cl',
'cc', vim.fn.getenv
'CC', }
33 - local should_disable = function ( _, bufnr )
34 - local max_filesize
= 5 * 1024 * 1024 35 - local ok, stats
= pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr
or 0 ) )
36 - if ok
and stats
and stats.size
> max_filesize
then 44 + local should_disable = function ( _, bufnr )
45 + local max_filesize
= 5 * 1024 * 1024 46 + local ok, stats
= pcall( vim.loop.fs_stat, vim.api.nvim_buf_get_name( bufnr
or 0 ) )
47 + if ok
and stats
and stats.size
> max_filesize
then 44 - sync_install =
false,
45 - ensure_installed = {
55 + sync_install =
false,
56 + ensure_installed = {
85 - ignore_install = {
'oil', },
96 + ignore_install = {
'oil', },
87 - auto_install =
true,
98 + auto_install =
true,
89 - autotag = {
enable =
true,
disable = should_disable, },
90 - endwise = {
enable =
true,
disable = should_disable, },
100 + autotag = {
enable =
true,
disable = should_disable, },
101 + endwise = {
enable =
true,
disable = should_disable, },
94 - disable = should_disable,
95 - additional_vim_regex_highlighting =
false,
105 + disable = should_disable,
106 + additional_vim_regex_highlighting =
false,
98 - incremental_selection = {
100 - disable = should_disable,
102 - init_selection =
'<up>',
103 - node_incremental =
'<up>',
104 - node_decremental =
'<down>',
105 - scope_incremental =
'<right>',
109 + incremental_selection = {
111 + disable = should_disable,
113 + init_selection =
'<up>',
114 + node_incremental =
'<up>',
115 + node_decremental =
'<down>',
116 + scope_incremental =
'<right>',
109 - indent = {
enable =
true, },
120 + indent = {
enable =
true, },
113 - disable = should_disable,
115 - persist_queries =
false,
117 - toggle_query_editor =
'o',
118 - toggle_hl_groups =
'i',
119 - toggle_injected_languages =
't',
120 - toggle_anonymous_nodes =
'a',
121 - toggle_language_display =
'I',
122 - focus_language =
'f',
123 - unfocus_language =
'F',
125 - goto_node =
'<cr>',
124 + disable = should_disable,
126 + persist_queries =
false,
128 + toggle_query_editor =
'o',
129 + toggle_hl_groups =
'i',
130 + toggle_injected_languages =
't',
131 + toggle_anonymous_nodes =
'a',
132 + toggle_language_display =
'I',
133 + focus_language =
'f',
134 + unfocus_language =
'F',
136 + goto_node =
'<cr>',
133 - disable = should_disable,
136 - [
'af'] = {
query =
'@call.outer',
desc =
'outer function call', },
137 - [
'if'] = {
query =
'@call.inner',
desc =
'inner function call', },
144 + disable = should_disable,
147 + [
'af'] = {
query =
'@call.outer',
desc =
'outer function call', },
148 + [
'if'] = {
query =
'@call.inner',
desc =
'inner function call', },
139 - [
'am'] = {
query =
'@function.outer',
desc =
'outer function definition', },
140 - [
'im'] = {
query =
'@function.inner',
desc =
'inner function definition', },
150 + [
'am'] = {
query =
'@function.outer',
desc =
'outer function definition', },
151 + [
'im'] = {
query =
'@function.inner',
desc =
'inner function definition', },
142 - [
'ac'] = {
query =
'@class.outer',
desc =
'outer class', },
143 - [
'ic'] = {
query =
'@class.inner',
desc =
'inner class', },
153 + [
'ac'] = {
query =
'@class.outer',
desc =
'outer class', },
154 + [
'ic'] = {
query =
'@class.inner',
desc =
'inner class', },
145 - [
'ai'] = {
query =
'@conditional.outer',
desc =
'outer conditional', },
146 - [
'ii'] = {
query =
'@conditional.inner',
desc =
'inner conditional', },
156 + [
'ai'] = {
query =
'@conditional.outer',
desc =
'outer conditional', },
157 + [
'ii'] = {
query =
'@conditional.inner',
desc =
'inner conditional', },
148 - [
'al'] = {
query =
'@loop.outer',
desc =
'outer loop', },
149 - [
'il'] = {
query =
'@loop.inner',
desc =
'inner loop', },
159 + [
'al'] = {
query =
'@loop.outer',
desc =
'outer loop', },
160 + [
'il'] = {
query =
'@loop.inner',
desc =
'inner loop', },
151 - [
'aa'] = {
query =
'@parameter.outer',
desc =
'outer parameter', },
152 - [
'ia'] = {
query =
'@parameter.inner',
desc =
'inner parameter', },
162 + [
'aa'] = {
query =
'@parameter.outer',
desc =
'outer parameter', },
163 + [
'ia'] = {
query =
'@parameter.inner',
desc =
'inner parameter', },
154 - [
'agc'] = {
query =
'@comment.outer',
desc =
'outer comment', },
155 - [
'igc'] = {
query =
'@comment.inner',
desc =
'inner comment', },
157 - selection_modes = {
158 - [
'@parameter.outer'] =
'v',
159 - [
'@function.outer'] =
'v',
160 - [
'@class.outer'] =
'<c-v>',
163 - include_surroundig_whitespace =
true,
165 + [
'agc'] = {
query =
'@comment.outer',
desc =
'outer comment', },
166 + [
'igc'] = {
query =
'@comment.inner',
desc =
'inner comment', },
168 + selection_modes = {
169 + [
'@parameter.outer'] =
'v',
170 + [
'@function.outer'] =
'v',
171 + [
'@class.outer'] =
'<c-v>',
174 + include_surroundig_whitespace =
true,
168 - disable = should_disable,
170 - [
'<leader>rwn'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with next', },
173 - [
'<leader>rwp'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with previous', },
179 + disable = should_disable,
181 + [
'<leader>rwn'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with next', },
184 + [
'<leader>rwp'] = {
query =
'@parameter.inner',
desc =
'Swap parameter with previous', },
179 - disable = should_disable,
180 - border = vim.g.border_style,
181 - floating_preview_opts = {},
182 - peek_definition_code = {
183 - [
'<leader>lpf'] = {
query =
'@function.outer',
desc =
'Peek definition of outer function.', },
184 - [
'<leader>lpc'] = {
query =
'@class.outer',
desc =
'Peek definition of outer class.', },
190 + disable = should_disable,
191 + border = vim.g.border_style,
192 + floating_preview_opts = {},
193 + peek_definition_code = {
194 + [
'<leader>lpf'] = {
query =
'@function.outer',
desc =
'Peek definition of outer function.', },
195 + [
'<leader>lpc'] = {
query =
'@class.outer',
desc =
'Peek definition of outer class.', },
190 - disable = should_disable,
193 - [
']f'] = {
query =
'@call.outer',
desc =
'Goto next function call', },
194 - [
']m'] = {
query =
'@fucntion.outer',
desc =
'Goto next function definition', },
195 - [
']c'] = {
query =
'@class.outer',
desc =
'Goto next class', },
196 - [
']o'] = {
query =
'@conditional.outer',
desc =
'Goto next conditional', },
197 - [
']p'] = {
query =
'@parameter.outer',
desc =
'Goto next parameter', },
200 - [
'[f'] = {
query =
'@call.outer',
desc =
'Goto previous function call', },
201 - [
'[m'] = {
query =
'@function.outer',
desc =
'Goto previous function definition', },
202 - [
'[c'] = {
query =
'@class.outer',
desc =
'goto previous class', },
203 - [
'[o'] = {
query =
'@conditional.outer',
desc =
'Goto previous conditional', },
204 - [
'[p'] = {
query =
'@parameter.outer',
desc =
'Goto previous parameter', },
209 - require 'treesitter-context'.setup {
212 - min_window_height =
0,
213 - line_numbers =
true,
214 - multiline_threshold =
20,
215 - trim_scope =
'outer',
201 + disable = should_disable,
204 + [
']f'] = {
query =
'@call.outer',
desc =
'Goto next function call', },
205 + [
']m'] = {
query =
'@fucntion.outer',
desc =
'Goto next function definition', },
206 + [
']c'] = {
query =
'@class.outer',
desc =
'Goto next class', },
207 + [
']o'] = {
query =
'@conditional.outer',
desc =
'Goto next conditional', },
208 + [
']p'] = {
query =
'@parameter.outer',
desc =
'Goto next parameter', },
211 + [
'[f'] = {
query =
'@call.outer',
desc =
'Goto previous function call', },
212 + [
'[m'] = {
query =
'@function.outer',
desc =
'Goto previous function definition', },
213 + [
'[c'] = {
query =
'@class.outer',
desc =
'goto previous class', },
214 + [
'[o'] = {
query =
'@conditional.outer',
desc =
'Goto previous conditional', },
215 + [
'[p'] = {
query =
'@parameter.outer',
desc =
'Goto previous parameter', },
220 + require 'treesitter-context'.setup {
223 + min_window_height =
0,
224 + line_numbers =
true,
225 + multiline_threshold =
20,
226 + trim_scope =
'outer',
neovim/lua/bugabinga/plugins/whichkey.lua
Modified43 43 [
'7'] = {
name =
'tests',
_ =
'which_key_ignore', },
44 44 m = {
name =
'|m|ark',
_ =
'which_key_ignore', },
45 + b = {
name =
'|b|uffer',
_ =
'which_key_ignore', },
45 46 h = {
name =
'|h|unk',
_ =
'which_key_ignore', },
46 47 f = {
name =
'|f|iles',
_ =
'which_key_ignore', },
47 48 g = {
name =
'|g|enerate',
_ =
'which_key_ignore', },