dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: new command to highlight group names in buffer
307d93ffbfc7689151f12e51c90c65acba385023
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (23)
34 +* Move to treesitter main branch
35 +* check out `vim.snippet`
36 +* use `vim.base64` in wezterm plugin
34 37 * Bug: LuaLS is getting crazy diagnosing non-stop...
35 38 * integrate language tool?
36 39 * ]s [s to jump to spelling mistakes
40 +* try Termdebug with gdb
37 41 * adapt config to respect `vim.g.nerdfont` (std.constants?)
38 42 * make lsp config extensible, so that plugin configs can hook into it (e.g. on_attach)
39 -* write plugin to parse lsp settings locally and apply them
40 43 * pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc
41 -* once a terminal was open, i cannot quit with :wqa anymore...
42 44 * create facade over vim.api.nvim_create_user_command
43 45 * use ltex-ls for markdown, code comments and commit messages
44 46 * learn from <https://github.com/stevearc/dotfiles/blob/master/.config/nvim/plugin/exrc.lua> and maybe adapt `std.localrc`
neovim/ftplugin/lua.lua
Modified12 12 description
= 'Wrap word under cursor with require call',
13 13 keys
= '<leader>rq',
14 14 category
= 'refactor',
18 18 command
= "ebi'<esc>ea'<esc>bbirequire <esc>www",
neovim/ftplugin/oil.lua
Addednew file mode 100644 1 +vim.opt_local.syntax
= 'on' 52 52 ok, loaded
= pcall(
require,
'bugabinga.mark' )
54 -vim.print(
'error while loading mark', loaded )
54 + vim.print(
'error while loading mark', loaded )
58 +ok, loaded
= pcall(
require,
'bugabinga.terminal' )
60 + vim.print(
'error while loading terminal', loaded )
neovim/lazy-lock.json
Modified11 11 "cmp-path": {
"branch":
"main",
"commit":
"91ff86cd9c29299a64f968ebb45846c485725f23" },
12 12 "cmp_luasnip": {
"branch":
"master",
"commit":
"05a9ab28b53f71d1aece421ef32fee2cb857a843" },
13 13 "colorizer.nvim": {
"branch":
"master",
"commit":
"107719885290366c893e1c1c58b7474cbeabfef6" },
14 - "conform.nvim": {
"branch":
"master",
"commit":
"bf109f061fc3cd75394b7823923187ae045cbf22" },
14 + "conform.nvim": {
"branch":
"master",
"commit":
"f9523f75134614fc0eff29c2377ed36603a1b0aa" },
15 15 "diffview.nvim": {
"branch":
"main",
"commit":
"3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
16 16 "dressing.nvim": {
"branch":
"master",
"commit":
"18e5beb3845f085b6a33c24112b37988f3f93c06" },
17 17 "fidget.nvim": {
"branch":
"main",
"commit":
"4e854f3299e21d1c18279add340428a97520fc44" },
20 20 "glow.nvim": {
"branch":
"main",
"commit":
"238070a686c1da3bccccf1079700eb4b5e19aea4" },
21 21 "heirline.nvim": {
"branch":
"master",
"commit":
"03cff30d7e7d3ba6fdc00925f015822f79cef908" },
22 22 "indent-blankline.nvim": {
"branch":
"master",
"commit":
"3d08501caef2329aba5121b753e903904088f7e6" },
23 - "lazy.nvim": {
"branch":
"main",
"commit":
"08954f723bf2d442ea020551e3acc956f4dc6dc7" },
23 + "lazy.nvim": {
"branch":
"main",
"commit":
"d37a76b87137c777f3d778ed03729d7f332a85f0" },
24 24 "lsp_signature.nvim": {
"branch":
"master",
"commit":
"c6aeb2f1d2538bbdfdaab1664d9d4c3c75aa9db8" },
25 25 "lspkind.nvim": {
"branch":
"master",
"commit":
"1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
26 + "lua-utils.nvim": {
"branch":
"main",
"commit":
"e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
26 27 "mason-tool-installer.nvim": {
"branch":
"main",
"commit":
"1212fb6082b7177dde17ea65e429e027835aeb40" },
27 28 "mason.nvim": {
"branch":
"main",
"commit":
"c43eeb5614a09dc17c03a7fb49de2e05de203924" },
28 29 "mini.bracketed": {
"branch":
"main",
"commit":
"65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
29 30 "mkdir.nvim": {
"branch":
"main",
"commit":
"c55d1dee4f099528a1853b28bb28caa802eba217" },
30 31 "neogen": {
"branch":
"main",
"commit":
"0daffcec249bf42275e322361fe55b89a05ff278" },
31 - "neorg": {
"branch":
"main",
"commit":
"df755b5f5cf837743b78392fa90fd8d993263ca1" },
32 + "neorg": {
"branch":
"main",
"commit":
"d2d2167a5562d133723ba9ac0cf7f3e991df8a30" },
32 33 "neotest": {
"branch":
"master",
"commit":
"e07fe8241112274aae9947b98d255763738a1d52" },
33 34 "neotest-plenary": {
"branch":
"master",
"commit":
"dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" },
34 35 "nrpattern.nvim": {
"branch":
"master",
"commit":
"f862ce687761078ef3155688151c55f69d28453e" },
35 - "nui.nvim": {
"branch":
"main",
"commit":
"cbd2668414331c10039278f558630ed19b93e69b" },
36 + "nui.nvim": {
"branch":
"main",
"commit":
"a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
36 37 "nvim-autopairs": {
"branch":
"master",
"commit":
"dbfc1c34bed415906395db8303c71039b3a3ffb4" },
37 38 "nvim-cmp": {
"branch":
"main",
"commit":
"97dc716fc914c46577a4f254035ebef1aa72558a" },
38 - "nvim-dap": {
"branch":
"master",
"commit":
"c1695e500c7d552a0a19953a9aefcc89178fb1af" },
39 + "nvim-dap": {
"branch":
"master",
"commit":
"405df1dcc2e395ab5173a9c3d00e03942c023074" },
39 40 "nvim-dap-ui": {
"branch":
"master",
"commit":
"edfa93f60b189e5952c016eee262d0685d838450" },
40 41 "nvim-dap-virtual-text": {
"branch":
"master",
"commit":
"baa5b0dc6663284cce32e0d00ac1f2511b13496f" },
41 42 "nvim-genghis": {
"branch":
"main",
"commit":
"8613fc1b43db6cc761733b3630eabff9e86296f7" },
47 48 "nvim-navbuddy": {
"branch":
"master",
"commit":
"f34237e8a41ebc6e2716af2ebf49854d8c5289c8" },
48 49 "nvim-navic": {
"branch":
"master",
"commit":
"8649f694d3e76ee10c19255dece6411c29206a54" },
49 50 "nvim-neoclip.lua": {
"branch":
"main",
"commit":
"798cd0592a81c185465db3a091a0ff8a21af60fd" },
50 - "nvim-nio": {
"branch":
"master",
"commit":
"33c62b3eadd8154169e42144de16ba4db6784bec" },
51 + "nvim-nio": {
"branch":
"master",
"commit":
"5a3a06e5df34f1b4fc1500622b10620c49c60da6" },
51 52 "nvim-spectre": {
"branch":
"master",
"commit":
"31f62d7fc30257b2a5c5327ff7b47719da37a1b4" },
52 53 "nvim-surround": {
"branch":
"main",
"commit":
"84a26afce16cffa7e3322cfa80a42cddf60616eb" },
53 54 "nvim-tree.lua": {
"branch":
"master",
"commit":
"85c502e9076d9c82e2f04addabb3614846ae7558" },
54 - "nvim-treesitter": {
"branch":
"master",
"commit":
"33c9db832b6f25446f7bd2dd3353f7737a3476c4" },
55 + "nvim-treesitter": {
"branch":
"master",
"commit":
"7f3179315959bd762abd0f8dbe0361db805fb2d4" },
56 + "nvim-treesitter-endwise": {
"branch":
"master",
"commit":
"60e8c288e011403f248b5f6478dde12bed8a6c55" },
55 57 "nvim-treesitter-textobjects": {
"branch":
"master",
"commit":
"d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" },
56 58 "nvim-ts-autotag": {
"branch":
"main",
"commit":
"531f48334c422222aebc888fd36e7d109cb354cd" },
57 59 "nvim-ts-context-commentstring": {
"branch":
"main",
"commit":
"7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
58 - "nvim-web-devicons": {
"branch":
"master",
"commit":
"6662f059bf78e6092ba90cd1929599625f448f55" },
60 + "nvim-web-devicons": {
"branch":
"master",
"commit":
"3ee60deaa539360518eaab93a6c701fe9f4d82ef" },
59 61 "nvim-window": {
"branch":
"main",
"commit":
"e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },
60 62 "oil.nvim": {
"branch":
"master",
"commit":
"e462a3446505185adf063566f5007771b69027a1" },
61 63 "overseer.nvim": {
"branch":
"master",
"commit":
"b04b0b105c07b4f02b3073ea3a98d6eca90bf152" },
64 + "pair-ls.nvim": {
"branch":
"master",
"commit":
"e7a8f55f54a6a1956b782ddefba79dc6bb308d1d" },
62 65 "playground": {
"branch":
"master",
"commit":
"ba48c6a62a280eefb7c85725b0915e021a1a0749" },
63 - "plenary.nvim": {
"branch":
"master",
"commit":
"f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
66 + "plenary.nvim": {
"branch":
"master",
"commit":
"50012918b2fc8357b87cff2a7f7f0446e47da174" },
64 67 "qf_helper.nvim": {
"branch":
"master",
"commit":
"91dad029c11d1c39b0d1276eda52616f651072be" },
65 68 "resession.nvim": {
"branch":
"master",
"commit":
"dc8825439c619030925543a444c4186a2487c200" },
66 - "schemastore.nvim": {
"branch":
"main",
"commit":
"290e692d568e55be475f6af4579fea434e20ba0c" },
69 + "schemastore.nvim": {
"branch":
"main",
"commit":
"65f07cde64d9123eab8639c1a3f7aa7939060cde" },
67 70 "specs.nvim": {
"branch":
"main",
"commit":
"e929006d3f6bb8e43f03e13ac364c67236eb5299" },
68 71 "speedtyper.nvim": {
"branch":
"main",
"commit":
"2d158eed4c753995b0501a3a7a72464fbb213e3d" },
69 72 "ssr.nvim": {
"branch":
"main",
"commit":
"bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
70 - "stickybuf.nvim": {
"branch":
"master",
"commit":
"2160fcd536d81f5fa43f7167dba6634e814e3154" },
71 73 "substitute.nvim": {
"branch":
"main",
"commit":
"17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
72 74 "suda.vim": {
"branch":
"master",
"commit":
"66727b416837836712975e748bc8a19fb6cf4ec3" },
73 75 "telescope-symbols.nvim": {
"branch":
"master",
"commit":
"a6d0127a53d39b9fc2af75bd169d288166118aec" },
75 77 "telescope.nvim": {
"branch":
"master",
"commit":
"6312868392331c9c0f22725041f1ec2bef57c751" },
76 78 "tint.nvim": {
"branch":
"master",
"commit":
"862835626941d263466754b9c8e2ce2cb004f5ac" },
77 79 "todo-comments.nvim": {
"branch":
"main",
"commit":
"8febc60a76feefd8203077ef78b6a262ea1a41f9" },
78 - "toggleterm.nvim": {
"branch":
"main",
"commit":
"193786e0371e3286d3bc9aa0079da1cd41beaa62" },
79 80 "tree-sitter-nu": {
"branch":
"main",
"commit":
"c5b7816043992b1cdc1462a889bc74dc08576fa6" },
80 81 "treesj": {
"branch":
"main",
"commit":
"60e27280030f9cd8dfb6ceb335922c6ff76682cc" },
81 82 "twilight.nvim": {
"branch":
"main",
"commit":
"8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
neovim/lua/bugabinga/nugu/init.lua
Modified 42 42 vim.g.terminal_color_14
= ui_important_global
43 43 vim.g.terminal_color_15
= ui_normal
45 46 local set_group_properties = function ( self, properties )
47 - properties = { properties,
'table', },
49 - [
'properties.fg'] = { properties.fg,
'string',
true, },
51 - [
'properties.bg'] = { properties.bg,
'string',
true, },
53 - [
'properties.sp'] = { properties.sp,
'string',
true, },
55 - [
'properties.blend'] = { properties.blend,
'number',
true, },
57 - [
'properties.bold'] = { properties.bold,
'boolean',
true, },
59 - [
'properties.standout'] = { properties.standout,
'boolean',
true, },
61 - [
'properties.underline'] = { properties.underline,
'boolean',
true, },
63 - [
'properties.undercurl'] = { properties.undercurl,
'boolean',
true, },
65 - [
'properties.underdotted'] = { properties.underdotted,
'boolean',
true, },
67 - [
'properties.underdashed'] = { properties.underdashed,
'boolean',
true, },
69 - [
'properties.strikethrough'] = { properties.strikethrough,
'boolean',
true, },
71 - [
'properties.italic'] = { properties.italic,
'boolean',
true, },
73 - [
'properties.reverse'] = { properties.reverse,
'boolean',
true, },
75 - [
'properties.nocombine'] = { properties.nocombine,
'boolean',
true, },
77 - [
'properties.default'] = { properties.default,
'boolean',
true, },
79 - [
'properties.ctermfg'] = { properties.ctermfg,
'string',
true, },
81 - [
'properties.ctermbg'] = { properties.ctermbg,
'string',
true, },
83 - [
'properties.cterm'] = { properties.cterm,
'table',
true, },
85 - [
'properties.force'] = { properties.force,
'boolean',
true, },
88 - for key, value
in pairs( properties )
do 48 + properties = { properties,
'table', },
50 + [
'properties.fg'] = { properties.fg,
'string',
true, },
52 + [
'properties.bg'] = { properties.bg,
'string',
true, },
54 + [
'properties.sp'] = { properties.sp,
'string',
true, },
56 + [
'properties.blend'] = { properties.blend,
'number',
true, },
58 + [
'properties.bold'] = { properties.bold,
'boolean',
true, },
60 + [
'properties.standout'] = { properties.standout,
'boolean',
true, },
62 + [
'properties.underline'] = { properties.underline,
'boolean',
true, },
64 + [
'properties.undercurl'] = { properties.undercurl,
'boolean',
true, },
66 + [
'properties.underdotted'] = { properties.underdotted,
'boolean',
true, },
68 + [
'properties.underdashed'] = { properties.underdashed,
'boolean',
true, },
70 + [
'properties.strikethrough'] = { properties.strikethrough,
'boolean',
true, },
72 + [
'properties.italic'] = { properties.italic,
'boolean',
true, },
74 + [
'properties.reverse'] = { properties.reverse,
'boolean',
true, },
76 + [
'properties.nocombine'] = { properties.nocombine,
'boolean',
true, },
78 + [
'properties.default'] = { properties.default,
'boolean',
true, },
80 + [
'properties.ctermfg'] = { properties.ctermfg,
'string',
true, },
82 + [
'properties.ctermbg'] = { properties.ctermbg,
'string',
true, },
84 + [
'properties.cterm'] = { properties.cterm,
'table',
true, },
86 + [
'properties.force'] = { properties.force,
'boolean',
true, },
89 + for key, value
in pairs( properties )
do 93 94 local new_group = function ()
94 - return setmetatable( {}, {
95 - __call = set_group_properties,
95 + return setmetatable( {}, {
96 + __call = set_group_properties,
99 100 local add_group = function ( self, key )
100 - if not self.groups[key]
then 101 - self.groups[key]
= new_group()
103 - return self.groups[key]
101 + if not self.groups[key]
then 102 + self.groups[key]
= new_group()
104 + return self.groups[key]
106 107 local link_group = function ( self, key, value )
108 - local group
= add_group( self, key )
109 - for name, link_group
in pairs( self.groups )
do 110 - if link_group
== value
then 109 + local group
= add_group( self, key )
110 + for name, link_group
in pairs( self.groups )
do 111 + if link_group
== value
then 118 119 local _
= setmetatable( {
groups = {}, }, {
119 - __index = add_group,
120 - __newindex = link_group,
120 + __index = add_group,
121 + __newindex = link_group,
123 124 _.Debug {
fg = ui_normal,
bg =
debug,
bold =
true, }
124 125 _.Normal {
fg = content_normal,
bg = content_backdrop, }
125 -_.NotifyBackground {
bg = ui_backdrop, }
126 126 _.Comment {
fg = content_important_global, }
127 +_.NotifyBackground {
bg = ui_backdrop, }
127 128 _.LineNr {
fg = ui_minor,
bg = content_backdrop, }
128 129 _.CursorLineNr {
fg = ui_focus,
bg = ui_backdrop, }
129 130 _.Search {
bg = content_unfocus, }
535 536 return function ()
537 - local namespace
= 0 538 - for name, group
in pairs( _.groups )
do 539 - vim.api.nvim_set_hl( namespace, name, group )
538 + local namespace
= 0 539 + for name, group
in pairs( _.groups )
do 540 + vim.api.nvim_set_hl( namespace, name, group )
neovim/lua/bugabinga/options/commands.lua
Addednew file mode 100644 1 +local light_up
= require 'std.light_up' 3 +local light_up_current_buffer = function ()
4 + local group_names
= light_up.get_vim_highlight_groups()
5 + light_up.buffer(
0, group_names )
9 +vim.api.nvim_create_user_command(
11 + light_up_current_buffer,
neovim/lua/bugabinga/options/init.lua
Modified 5 5 require 'bugabinga.options.file' 6 6 require 'bugabinga.options.keymaps' 7 7 require 'bugabinga.options.spelling' 8 +require 'bugabinga.options.commands' neovim/lua/bugabinga/options/ui.lua
Modified 24 24 vim.opt.list
= true 25 25 vim.opt.listchars
= {
28 28 tab = icon.tab
.. icon.middle_ellipsis,
29 29 trail = icon.trail,
30 30 extends = icon.extends,
70 +vim.opt.syntax
= 'off' 73 73 vim.opt.shortmess:append
'c' neovim/lua/bugabinga/plugins/buffers.lua
Deleteddeleted file mode 1006443 - 'stevearc/stickybuf.nvim',
4 - cmd = {
'PinBuffer',
'PinBuftype',
'PinFiletype', },
neovim/lua/bugabinga/plugins/cmp.lua
Modified 1 +local map
= require 'std.map' 4 + description =
'Trigger cmp autocomplete',
5 + category =
'completion',
7 + command =
function () prequire
'cmp'.complete()
end,
11 +vim.api.nvim_create_user_command(
'CmpInfo',
function ()
12 + prequire
'cmp'.status()
5 - "hrsh7th/cmp-nvim-lsp",
6 - "hrsh7th/cmp-buffer",
8 - "hrsh7th/cmp-nvim-lua",
9 - "saadparwaiz1/cmp_luasnip",
10 - "onsails/lspkind.nvim",
18 + 'hrsh7th/cmp-nvim-lsp',
19 + 'hrsh7th/cmp-buffer',
21 + 'hrsh7th/cmp-nvim-lua',
22 + 'saadparwaiz1/cmp_luasnip',
23 + 'onsails/lspkind.nvim',
13 - cmd = {
"CmpInfo" },
14 - event =
"InsertEnter *",
16 - local cmp
= require(
"cmp")
17 - local luasnip
= require(
"luasnip")
26 + config =
function ()
27 + local cmp
= require 'cmp' 28 + local luasnip
= require 'luasnip' 18 29 local MAX_INDEX_FILE_SIZE
= 4000 20 - local has_words_before = function()
21 - local line, col
= unpack(vim.api.nvim_win_get_cursor(
0))
22 - return col
~= 0 and vim.api.nvim_buf_get_lines(
0, line
- 1, line,
true)[
1]:sub(col, col):match(
"%s")
== nil 31 + local has_words_before = function ()
32 + local line, col
= unpack( vim.api.nvim_win_get_cursor(
0 ) )
33 + return col
~= 0 and vim.api.nvim_buf_get_lines(
0, line
- 1, line,
true )[
1]:sub( col, col ):match
'%s' == nil 25 - local mapping
= cmp.mapping.preset.insert({
26 - [
"<C-d>"] = cmp.mapping.scroll_docs(
-4),
27 - [
"<C-f>"] = cmp.mapping.scroll_docs(
4),
28 - [
"<C-e>"] = cmp.mapping.close(),
29 - [
"<C-y>"] = cmp.mapping.confirm({
30 - behavior = cmp.ConfirmBehavior.Replace,
36 + local snippet_next = function ( fallback )
37 + if luasnip.expand_or_jumpable()
then 38 + luasnip.expand_or_jump()
39 + elseif cmp.visible()
then 40 + cmp.select_next_item()
41 + elseif has_words_before()
then 34 - [
"<C-space>"] = cmp.mapping.complete(),
35 - [
"<Tab>"] = cmp.mapping(
function(fallback)
36 - if luasnip.expand_or_jumpable()
then 37 - luasnip.expand_or_jump()
38 - elseif cmp.visible()
then 39 - cmp.select_next_item()
40 - elseif has_words_before()
then 49 - [
"<S-Tab>"] = cmp.mapping(
function(fallback)
50 - if luasnip.jumpable(
-1)
then 52 - elseif cmp.visible()
then 53 - cmp.select_prev_item()
48 + local snippet_prev = function ( fallback )
49 + if luasnip.jumpable(
-1 )
then 51 + elseif cmp.visible()
then 52 + cmp.select_prev_item()
58 + local mapping
= cmp.mapping.preset.insert {
59 + [
'<C-d>'] = cmp.mapping.scroll_docs(
-4 ),
60 + [
'<C-f>'] = cmp.mapping.scroll_docs(
4 ),
61 + [
'<C-e>'] = cmp.mapping.close(),
62 + [
'<C-y>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select =
true, },
63 + [
'<C-space>'] = cmp.mapping.complete(),
64 + [
'<Tab>'] = cmp.mapping( snippet_next, {
'i',
's', } ),
65 + [
'<S-Tab>'] = cmp.mapping( snippet_prev, {
'i',
's', } ),
63 69 local formatting
= {}
64 - local ok, lspkind
= pcall(
require,
"lspkind")
70 + local ok, lspkind
= pcall(
require,
'lspkind' )
66 - formatting.format
= lspkind.cmp_format({
72 + formatting.format
= lspkind.cmp_format {
91 - TypeParameter =
" ",
97 + TypeParameter =
' ',
101 - luasnip =
"[snip]",
104 + nvim_lsp =
'[LSP]',
105 + nvim_lua =
'[nvim]',
107 + luasnip =
'[snip]',
108 - formatting = formatting,
111 - {
name =
"nvim_lua" },
112 - {
name =
"nvim_lsp" },
114 - {
name =
"luasnip" },
115 - {
name =
"neorg" },
118 - keyword_length =
4,
120 - get_bufnrs =
function()
122 - for _, bufnr
in ipairs(vim.api.nvim_list_bufs())
do 124 - if vim.api.nvim_buf_is_loaded(bufnr)
and vim.api.nvim_buf_line_count(bufnr)
< MAX_INDEX_FILE_SIZE
then 125 - table.
insert(bufs, bufnr)
113 + {
name =
'nvim_lua', },
114 + {
name =
'nvim_lsp', },
115 + {
name =
'path', },
116 + {
name =
'luasnip', },
117 + {
name =
'neorg', },
120 + keyword_length =
4,
122 + get_bufnrs =
function ()
124 + for _, bufnr
in ipairs( vim.api.nvim_list_bufs() )
do 126 + if vim.api.nvim_buf_is_loaded( bufnr )
and vim.api.nvim_buf_line_count( bufnr )
< MAX_INDEX_FILE_SIZE
then 127 + table.
insert( bufs, bufnr )
138 + formatting = formatting,
141 + completion = {
autocomplete =
false, },
135 - expand =
function(args)
136 - luasnip.lsp_expand(args.body)
143 + expand =
function ( args )
144 + luasnip.lsp_expand( args.body )
141 - native_menu =
false,
145 - vim.api.nvim_create_user_command(
"CmpInfo",
function()
neovim/lua/bugabinga/plugins/format.lua
Modified 2 2 local debug = require 'std.debug' 3 3 local map
= require 'std.map' 5 5 local format = function ()
6 - require 'conform'.format( {
async =
false,
lsp_fallback =
true, },
function ( err )
6 + prequire
'conform'.format( {
async =
false,
lsp_fallback =
true, },
function ( err )
7 7 if err
and debug.get()
then 8 8 vim.print(
'Format failed', err )
32 32 just
= {
'just', },
33 33 zig
= {
'zigfmt', },
35 35 [
'*']
= {
'injected',
'typos', },
38 38 [
'_']
= {
'trim_whitespace',
'trim_newlines', },
neovim/lua/bugabinga/plugins/last-place.lua
Modified 3 3 local ignored
= require 'std.ignored' 7 7 'ethanholz/nvim-lastplace',
8 - event = {
'VimEnter' },
8 + event = {
'VimEnter',
'SessionLoadPost', },
10 10 lastplace_ignore_buftype = ignored.buftypes,
11 11 lastplace_ignore_filetype = ignored.filetypes,
neovim/lua/bugabinga/plugins/neorg.lua
Modified 4 - dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'jbyuki/venn.nvim', },
5 - build =
':Neorg sync-parsers',
7 - {
'<CR>',
':VBox<CR>',
mode =
'v', },
5 + {
'nvim-lua/plenary.nvim',
version =
'0.1.4', },
6 + {
'nvim-neorg/lua-utils.nvim',
version =
'1.0.2', },
7 + {
'nvim-neotest/nvim-nio',
version =
'1.7.*', },
8 + {
'MunifTanjim/nui.nvim',
version =
'0.3.0', },
9 + {
'nvim-treesitter/nvim-treesitter', },
12 + package.
loaded[
'neorg']
= nil 14 + require 'neorg'.setup_after_build()
15 + pcall( vim.cmd.Neorg,
'sync-parsers' )
27 35 engine
= 'nvim-cmp',
36 38 [
'core.presenter']
= {
38 40 zen_mode =
'zen-mode',
41 - [
'core.keybinds']
= {
43 - hook =
function ( keybinds )
44 - keybinds.unmap(
'norg',
'n',
'<CR>' )
46 - keybinds.unmap(
'presenter',
'n',
'l' )
47 - keybinds.unmap(
'presenter',
'n',
'h' )
48 - keybinds.unmap(
'presenter',
'n',
'<CR>' )
49 - keybinds.unmap(
'presenter',
'n',
'q' )
52 - keybinds.remap_event(
'presenter',
'n',
'<Right>',
'core.presenter.next_page' )
53 - keybinds.remap_event(
'presenter',
'n',
'<C-j>',
'core.presenter.next_page' )
54 - keybinds.remap_event(
'presenter',
'n',
'<Left>',
'core.presenter.previous_page' )
55 - keybinds.remap_event(
'presenter',
'n',
'<C-k>',
'core.presenter.previous_page' )
56 - keybinds.remap_event(
'presenter',
'n',
'<Down>',
'core.presenter.close' )
57 - keybinds.map(
'norg',
'n',
'<Up>',
'<CMD>Neorg presenter start<CR>' )
63 - config = function ( _, opts )
64 - local neorg
= require 'neorg' 68 - local ok, quick_action
= pcall(
require,
'quick_action' )
70 - quick_action.add(
'menu', {
71 - name =
'Toggle todo status',
72 - condition =
function ()
73 - if vim.bo.filetype
~= 'norg' then 76 - local lnum
= vim.api.nvim_win_get_cursor(
0 )[
1]
- 1 77 - local todo_module
= neorg.modules.get_module
'core.qol.todo_items' 78 - local item
= todo_module
and todo_module.get_todo_item_from_cursor(
0, lnum )
79 - local row
= item
and item:start()
82 - action =
function ()
83 - vim.cmd
'Neorg keybind norg core.qol.todo_items.todo.task_cycle' neovim/lua/bugabinga/plugins/pair-ls.lua
Addednew file mode 100644 2 + 'stevearc/pair-ls.nvim',
3 + cmd = {
'Pair',
'PairConnect', },
5 + cmd = {
'pair-ls',
'lsp', },
neovim/lua/bugabinga/plugins/toggleterm.lua
Deleteddeleted file mode 100644 1 -local map
= require 'std.map' 2 -local auto
= require 'std.auto' 5 - 'akinsho/toggleterm.nvim',
15 - open_mapping =
'<F7>',
16 - direction =
'float',
18 - border = vim.g.border_style,
20 - size =
function ( term )
21 - if term.direction
== 'horizontal' then 23 - elseif term.direction
== 'vertical' then 24 - return vim.o.columns
* 0.42 28 - config =
function ( _, opts )
29 - local toggleterm
= require 'toggleterm' 30 - toggleterm.setup( opts )
32 - local set_terminal_keymaps = function ()
34 - description =
'Quit insert mode',
35 - category =
'terminal',
38 - command =
[[ <C-\><C-n> ]],
41 - vim.opt_local.spell
= false 44 - auto
'normalize_terminal_windows' {
45 - description =
'Make terminal windows behave more normally.',
46 - events =
'TermOpen',
47 - pattern =
'term://*',
48 - command = set_terminal_keymaps,
neovim/lua/bugabinga/plugins/treesitter.lua
Modified 21 21 'nvim-treesitter/nvim-treesitter',
27 27 require 'nvim-treesitter.install'.update {
with_sync =
true, }
30 - 'windwp/nvim-ts-autotag',
31 30 'nvim-treesitter/playground',
32 31 'nvim-treesitter/nvim-treesitter-textobjects',
32 + 'windwp/nvim-ts-autotag',
33 + 'RRethy/nvim-treesitter-endwise',
33 34 'nushell/tree-sitter-nu',
35 36 config = function ()
36 37 local install
= require 'nvim-treesitter.install' 37 38 local configs
= require 'nvim-treesitter.configs' 38 - local parsers
= require 'nvim-treesitter.parsers' 40 40 install.prefer_git
= false 41 41 install.compilers
= {
'zig',
'clang',
'gcc',
'cl',
'cc', vim.fn.getenv
'CC', }
81 - ignore_install
= {
'oil',
disable = should_disable, },
82 + ignore_install
= {
'oil', },
83 84 auto_install
= true,
85 86 autotag
= {
enable =
true,
disable = should_disable, },
87 + ewndwise
= {
enable =
true,
disable = should_disable, },
95 97 disable
= should_disable,
97 99 init_selection =
'<up>',
98 - node_incremental =
'<right>',
100 + node_incremental =
'<up>',
99 101 node_decremental =
'<down>',
100 - scope_incremental =
'<up>',
102 + scope_incremental =
'<right>',
108 110 disable = should_disable,
111 112 persist_queries =
false,
216 - parsers.get_parser_configs().just
= {
218 - url =
'https://github.com/IndianBoy42/tree-sitter-just',
219 - files = {
'src/parser.c',
'src/scanner.c', },
222 - maintainers = {
'@IndianBoy42', },
neovim/lua/bugabinga/plugins/venn.lua
Addednew 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/terminal.lua
Addednew file mode 100644 1 +local map
= require 'std.map' 2 +local auto
= require 'std.auto' 5 + description =
'Open terminal in a split',
6 + category =
'terminal',
8 + command =
function ()
9 + local cwd
= vim.uv.cwd()
11 + local shell
= vim.opt.shell:get()
12 + local open_term_cmd
= string.
format(
'split term://%s//%s', cwd, shell )
13 + vim.cmd( open_term_cmd )
17 +local terminal_settings = function ()
19 + description =
'Quit insert mode via <esc>',
20 + category =
'terminal',
23 + command =
[[ <C-\><C-n> ]],
27 + description =
'Close current terminal',
28 + category =
'terminal',
31 + command =
[[ <C-\><C-n><cmd>q<cr> ]],
34 + vim.opt_local.spell
= false 36 + vim.cmd.startinsert()
39 +auto
'normalize_terminal_windows' {
40 + description =
'Make terminal windows behave more normally.',
41 + events =
'TermOpen',
42 + pattern =
'term://*',
43 + command = terminal_settings,
neovim/lua/std/light_up.lua
Addednew file mode 100644 8 +_.
buffer = function ( bufnr, words )
10 + bufnr = { bufnr,
'number', },
11 + words = { words,
'table', },
14 + local namespace
= vim.api.nvim_create_namespace
'light_up_ns' 15 + vim.api.nvim_buf_clear_namespace( bufnr, namespace,
0,
-1 )
17 + local handler = function ( event, buffer_handle, tick, first_line, last_line_changed, last_line_updated, bytes )
19 + assert( event
== 'lines',
'this handler is for `on_lines` notification' )
21 + local last
= math.
max( last_line_updated, last_line_changed )
22 + local lines
= vim.api.nvim_buf_get_lines( bufnr, first_line, last,
true )
24 + for index, line
in ipairs( lines )
do 25 + local current_line
= first_line
+ index
- 1 26 + for word, highlight_group
in pairs( words )
do 29 + local start_offset, end_offset
= line:find(
'[%s%.](' .. word
.. ')[%s$]' )
30 + if start_offset
then 32 + vim.api.nvim_buf_set_extmark( bufnr, namespace, current_line, start_offset, {
33 + end_col = end_offset
- 1,
34 + hl_group = highlight_group,
42 + local ok
= vim.api.nvim_buf_attach( bufnr,
false, {
on_lines = handler, } )
43 + if not ok
then error(
'unable to attach to buffer ' .. bufnr )
end 46 + handler(
'lines', bufnr,
nil,
0,
-1,
-1,
nil )
50 +_.
get_vim_highlight_groups = function ()
53 + local highlight_command_output
= vim.fn.execute
'highlight' 54 + for line
in highlight_command_output:gmatch
'[^\n]+' do 58 + local match
= line:match
'^([%w@%._]+)%s' 59 + if match
then groups[match]
= match
end neovim/lua/std/prequire.lua
Modified16 - local args
= {
... }
15 +return function (
... )
16 + local args
= {
..., }
19 - for _, arg
in ipairs(args)
do 20 - if type(arg)
== "function" then 19 + for _, arg
in ipairs( args )
do 20 + if type( arg )
== 'function' then 21 + arg(
unpack( mods ) )
24 - local ok, mod
= pcall(
require, arg)
24 + local ok, mod
= pcall(
require, arg )
26 26 if not first_mod
then 29 - table.
insert(mods, mod)
29 + table.
insert( mods, mod )
31 - vim.notify_once(
string.
format(
"Missing module: %s", arg), vim.log.levels.WARN)
31 + vim.notify_once(
string.
format(
'Missing module: %s', arg ), vim.log.levels.WARN )
35 - setmetatable(proxy, {
35 + setmetatable( proxy, {
36 + __call =
function ()
39 - __index =
function()
39 + __index =
function ()
neovim/spell/nerd.utf-8.add
Modifiedneovim/spell/nerd.utf-8.add.spl
ModifiedPrevious version contains binary or non-UTF-8 data.
Current version contains binary or non-UTF-8 data.