repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: fix mapleader and puk update

6c7bdfbf3266fb58c1552237348019aedbfdf5fe

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (7)

neovim/colors/nugu.lua

Modified
5 5 vim.cmd [[ highlight clear ]]
6 6 else
7 7 -- only set bg, first time nugu is loaded
9 8 local start_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
10 9 vim.opt.background = const.os_background
11 10 local end_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field

neovim/init.lua

Modified
36 36 command = function()
37 37 local end_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
38 38 local time_elapsed = end_time - start_time
39 - vim.notify(string.format('Neovim started in (%d ms).', time_elapsed / 1e6), vim.log.levels.INFO)
39 + vim.schedule(function()
40 + vim.notify(string.format('Neovim started in (%d ms).', time_elapsed / 1e6), vim.log.levels.INFO)
41 + end)
40 42 end,

neovim/lua/bugabinga/incubator.lua

Modified
14 14 --- does not yet restore well with session
15 15 --- cannot navigate with C-w inside the DocsView
16 16 --- it has a manual update mode, but which key to bind it to?
17 -puk.defer 'docs-view' ( function ( docsview )
17 +puk.defer 'docs-view' (function(docsview)
18 18 docsview.setup {
19 - position = 'right',
19 + position = 'top',
20 20 width = 42,
22 22 map.normal {
24 24 keys = '<leader>tk',
25 25 command = '<cmd>DocsViewToggle<cr>',
27 -end )
27 +end)
28 28 -------------------------------------------------------------------------------
29 ---- this is pretty great! i just need better binds and tell which key about them
30 -puk.defer 'rulebook' ( function ( rulebook )
29 +puk.defer 'rulebook' (function(rulebook)
31 30 rulebook.setup()
32 31 map.normal {
33 32 description = 'ignore rule',
53 52 keys = '<leader>rf',
54 53 command = rulebook.suppressFormatter,
56 -end )
55 +end)
57 56 -------------------------------------------------------------------------------
58 57 --- this plugin has some sick visual text formatting chops. check them out some time.
59 -puk.defer 'symbol-usage' ( function ( symbolusage )
58 +puk.defer 'symbol-usage' (function(symbolusage)
60 59 symbolusage.setup {
61 60 hi = { link = 'LineNr' },
62 61 vt_position = 'end_of_line',
67 66 log = { enabled = dbg.get() },
69 -end )
68 +end)
70 69 -------------------------------------------------------------------------------
71 70 --- Pretty NICE!
72 71 --- fix highlights to match nugu.
73 -puk.defer 'glance' ( function ( glance )
72 +puk.defer 'glance' (function(glance)
74 73 glance.setup()
75 74 map.normal {
76 75 description = 'peek definitions',
95 94 keys = 'grpi',
96 95 command = '<cmd>Glance implementations<cr>',
98 -end )
97 +end)
99 98 -------------------------------------------------------------------------------
100 -puk.defer 'tiny-inline-diagnostic' ( function ( tiny )
99 +puk.defer 'tiny-inline-diagnostic' (function(tiny)
101 100 tiny.setup {
102 101 options = {
103 102 -- Show the source of the diagnostic.
107 106 use_icons_from_diagnostic = true,
110 -end )
109 +end)
111 110 -------------------------------------------------------------------------------
112 111 puk.defer 'nvim-autopairs' (function(autopairs)
113 112 autopairs.setup {
119 118 -------------------------------------------------------------------------------
120 119 puk.defer 'arrow' (function(arrow)
121 - arrow.setup{
120 + arrow.setup {
122 121 show_icons = true,
123 122 leader_key = ';',
124 123 buffer_leader_key = 'm',

neovim/lua/bugabinga/options/init.lua

Modified
1 +# keymaps sets leader key. needs to be early
2 +require 'bugabinga.options.keymaps'
1 3 require 'bugabinga.options.filetypes'
2 4 require 'bugabinga.options.core'
4 6 vim.schedule(function()
5 7 require 'bugabinga.options.behaviour'
6 - require 'bugabinga.options.keymaps'
7 8 require 'bugabinga.options.spelling'
8 9 require 'bugabinga.options.commands'
9 10 require 'bugabinga.options.menus'

neovim/lua/bugabinga/options/shell.lua

Modified
1 1 if vim.fn.executable 'nu' then
2 2 -- integrate Nushell with nvim
3 - vim.opt.shell = 'nu'
3 + vim.opt.shell = 'nu --error-style plain --table-mode none'
4 4 -- flags for nu:
5 5 -- * `--stdin` redirect all input to -c
6 6 -- * `--no-newline` do not append `\n` to stdout
7 7 -- * `--commands` execute a command
8 - vim.opt.shellcmdflag = '--stdin --no-newline --commands --error-style plain --table-mode none'
8 + vim.opt.shellcmdflag = '--error-style plain --table-mode none --stdin --no-newline --commands'
9 9 -- string to be used to put the output of shell commands in a temp file
10 10 -- 1. when 'shelltemp' is `true`
11 11 -- 2. in the `diff-mode` (`nvim -d file1 file2`) when `diffopt` is set

neovim/lua/std/const.lua

Modified
2 2 local uname = vim.uv.os_uname()
3 3 local win32 = uname.sysname:match 'Win' and true or false
4 4 local wsl = uname.release:match 'WSL2' and true or false
6 -local os_background = function ()
6 +local os_background = function()
7 7 -- Default value
8 8 local background = 'dark'
9 9 -- First check whether we are on WSL or Windows
26 26 -- The result is in the form of "v u 0" for light and "v u 1" for dark
27 27 local color_scheme = result:match 'u%s+(%d+)'
29 - if color_scheme == '1' then
30 - background = 'dark'
29 + if color_scheme == '0' then
30 + background = 'light'

neovim/puk.plugins.nuon

Modified
3 - name
4 - source
5 - repo
6 - branch
7 - commit
3 + name,
4 + source,
5 + repo,
6 + branch,
7 + commit,
8 8 build
11 - nvim-treesitter
12 - github
13 - nvim-treesitter/nvim-treesitter
14 - main
15 - "011f02936f5c69500315a32df1a1b01fdd2feaf3"
11 + nvim-treesitter,
12 + github,
13 + nvim-treesitter/nvim-treesitter,
14 + main,
15 + "27b0bd487c4a1c72c9b53d0ca6f67f0ac6956b0a",
17 - nvim
18 - --headless
19 - -u
20 - NONE
21 - "+packadd nvim-treesitter"
22 - "+:TSUpdate"
17 + nvim,
18 + --headless,
19 + -u,
20 + NONE,
21 + "+packadd nvim-treesitter",
22 + "+:TSUpdate",
25 - ]
25 + ],
27 - nvim-treesitter-textobjects
28 - github
29 - nvim-treesitter/nvim-treesitter-textobjects
30 - main
31 - "fa32a45fdbab9c9c3bda9ecec9b12dddb221b927"
27 + nvim-treesitter-textobjects,
28 + github,
29 + nvim-treesitter/nvim-treesitter-textobjects,
30 + main,
31 + "fa32a45fdbab9c9c3bda9ecec9b12dddb221b927",
33 - ]
33 + ],
35 - nvim-ts-autotag
36 - github
37 - windwp/nvim-ts-autotag
38 - main
39 - "a1d526af391f6aebb25a8795cbc05351ed3620b5"
35 + nvim-ts-autotag,
36 + github,
37 + windwp/nvim-ts-autotag,
38 + main,
39 + "a1d526af391f6aebb25a8795cbc05351ed3620b5",
41 - ]
41 + ],
43 - oil
44 - github
45 - "stevearc/oil.nvim"
46 - master
47 - "685cdb4ffa74473d75a1b97451f8654ceeab0f4a"
43 + oil,
44 + github,
45 + "stevearc/oil.nvim",
46 + master,
47 + "5b6068aad7d2057dd399fac73b7fb2cdf23ccd6e",
49 - ]
49 + ],
51 - nvim-surround
52 - github
53 - kylechui/nvim-surround
54 - main
55 - "0e62500b98f4513feaaf7425c135472457ea5b7d"
51 + nvim-surround,
52 + github,
53 + kylechui/nvim-surround,
54 + main,
55 + "8dd9150ca7eae5683660ea20cec86edcd5ca4046",
57 - ]
57 + ],
59 - conform
60 - github
61 - "stevearc/conform.nvim"
62 - master
63 - "6feb2f28f9a9385e401857b21eeac3c1b66dd628"
59 + conform,
60 + github,
61 + "stevearc/conform.nvim",
62 + master,
63 + "6feb2f28f9a9385e401857b21eeac3c1b66dd628",
65 - ]
65 + ],
67 - heirline
68 - github
69 - "rebelot/heirline.nvim"
70 - master
71 - "74529ce6a47f3f8dc7546c221c187a2dd025ffee"
67 + heirline,
68 + github,
69 + "rebelot/heirline.nvim",
70 + master,
71 + "fae936abb5e0345b85c3a03ecf38525b0828b992",
73 - ]
73 + ],
75 - plenary
76 - github
77 - "nvim-lua/plenary.nvim"
78 - master
79 - "857c5ac632080dba10aae49dba902ce3abf91b35"
75 + plenary,
76 + github,
77 + "nvim-lua/plenary.nvim",
78 + master,
79 + "857c5ac632080dba10aae49dba902ce3abf91b35",
81 - ]
81 + ],
83 - "mini.notify"
84 - github
85 - "echasnovski/mini.notify"
86 - main
87 - "3a06b21dd0b335b95d125eae813276113b5e9ce7"
83 + "mini.notify",
84 + github,
85 + "echasnovski/mini.notify",
86 + main,
87 + "3a06b21dd0b335b95d125eae813276113b5e9ce7",
89 - ]
89 + ],
91 - "mini.splitjoin"
92 - github
93 - "echasnovski/mini.splitjoin"
94 - main
95 - "70240d5d3881ff1b2b1d7902450f98a6fa303800"
91 + "mini.splitjoin",
92 + github,
93 + "echasnovski/mini.splitjoin",
94 + main,
95 + "70240d5d3881ff1b2b1d7902450f98a6fa303800",
97 - ]
97 + ],
99 - "mini.pick"
100 - github
101 - "echasnovski/mini.pick"
102 - main
103 - "fa1e449e1080bf7aa9b2890ee186d23b1b4e1287"
99 + "mini.pick",
100 + github,
101 + "echasnovski/mini.pick",
102 + main,
103 + "c272dc61cd0326b344761cd9d031bfcdef1978c7",
105 - ]
105 + ],
107 - "mini.extra"
108 - github
109 - "echasnovski/mini.extra"
110 - main
111 - "87be97ac00a8827e8380156cfef7222afb38f8bd"
107 + "mini.extra",
108 + github,
109 + "echasnovski/mini.extra",
110 + main,
111 + "69ba107ac8712820f3ad391d327f62b57fead277",
113 - ]
113 + ],
115 - "mini.hipatterns"
116 - github
117 - "echasnovski/mini.hipatterns"
118 - main
119 - "e5083df391171dc9d8172645606f8496d9443374"
115 + "mini.hipatterns",
116 + github,
117 + "echasnovski/mini.hipatterns",
118 + main,
119 + "e5083df391171dc9d8172645606f8496d9443374",
121 - ]
121 + ],
123 - "mini.clue"
124 - github
125 - "echasnovski/mini.clue"
126 - main
127 - "8b8598afa285f2a25cfd15a67e7eaa210ad405c3"
123 + "mini.clue",
124 + github,
125 + "echasnovski/mini.clue",
126 + main,
127 + "97198ef9d8425e69f74d2875e217440ba0ff1730",
129 - ]
129 + ],
131 - "mini.bracketed"
132 - github
133 - "echasnovski/mini.bracketed"
134 - main
135 - "079b8375e40ebf3f8af319ad835263ff390c3965"
131 + "mini.bracketed",
132 + github,
133 + "echasnovski/mini.bracketed",
134 + main,
135 + "079b8375e40ebf3f8af319ad835263ff390c3965",
137 - ]
137 + ],
139 - "mini.diff"
140 - github
141 - "echasnovski/mini.diff"
142 - main
143 - "ec8a5ae365c5d15920721ea42b1351dbc9e61f2d"
139 + "mini.diff",
140 + github,
141 + "echasnovski/mini.diff",
142 + main,
143 + "f7bcd3cb4561f7d3a02ae9afafeda899c82f7108",
145 - ]
145 + ],
147 - "mini.jump2d"
148 - github
149 - "echasnovski/mini.jump2d"
150 - main
151 - "c90f7f8cebf3282d0f0b228015fceefb841375c6"
147 + "mini.jump2d",
148 + github,
149 + "echasnovski/mini.jump2d",
150 + main,
151 + "6045bd61659d97926ba7ae5f9be8924e11c15079",
153 - ]
153 + ],
155 - "mini.operators"
156 - github
157 - "echasnovski/mini.operators"
158 - main
159 - "2df4df029be367adfc781a8a1b5e8067d2d979df"
155 + "mini.operators",
156 + github,
157 + "echasnovski/mini.operators",
158 + main,
159 + "b79a95958c57e127704bbeb1dc11a511954fc888",
161 - ]
161 + ],
163 - "mini.surround"
164 - github
165 - "echasnovski/mini.splitjoin"
166 - main
167 - "70240d5d3881ff1b2b1d7902450f98a6fa303800"
163 + "mini.surround",
164 + github,
165 + "echasnovski/mini.splitjoin",
166 + main,
167 + "70240d5d3881ff1b2b1d7902450f98a6fa303800",
169 - ]
169 + ],
171 - "mini.move"
172 - github
173 - "echasnovski/mini.move"
174 - main
175 - "4fe4a855fee53c66b0f3255a4b54ddc2ae6b308c"
171 + "mini.move",
172 + github,
173 + "echasnovski/mini.move",
174 + main,
175 + "4fe4a855fee53c66b0f3255a4b54ddc2ae6b308c",
177 - ]
177 + ],
179 - "mini.icons"
180 - github
181 - "echasnovski/mini.icons"
182 - main
183 - "397ed3807e96b59709ef3292f0a3e253d5c1dc0a"
179 + "mini.icons",
180 + github,
181 + "echasnovski/mini.icons",
182 + main,
183 + "397ed3807e96b59709ef3292f0a3e253d5c1dc0a",
185 - ]
185 + ],
187 - nvim-autopairs
188 - github
189 - windwp/nvim-autopairs
190 - master
191 - "4d74e75913832866aa7de35e4202463ddf6efd1b"
187 + nvim-autopairs,
188 + github,
189 + windwp/nvim-autopairs,
190 + master,
191 + "4d74e75913832866aa7de35e4202463ddf6efd1b",
193 - ]
193 + ],
195 - nvim-highlight-colors
196 - github
197 - "brenoprata10/nvim-highlight-colors"
198 - main
199 - "b42a5ccec7457b44e89f7ed3b3afb1b375bb2093"
195 + nvim-highlight-colors,
196 + github,
197 + "brenoprata10/nvim-highlight-colors",
198 + main,
199 + "b42a5ccec7457b44e89f7ed3b3afb1b375bb2093",
201 - ]
201 + ],
203 - lint
204 - github
205 - mfussenegger/nvim-lint
206 - master
207 - "fdb04e9285edefbe25a02a31a35e8fbb10fe054d"
203 + lint,
204 + github,
205 + mfussenegger/nvim-lint,
206 + master,
207 + "b47cbb249351873e3a571751c3fb66ed6369852f",
209 - ]
209 + ],
211 - virt-column
212 - github
213 - "lukas-reineke/virt-column.nvim"
214 - master
215 - "b87e3e0864211a32724a2ebf3be37e24e9e2fa99"
211 + virt-column,
212 + github,
213 + "lukas-reineke/virt-column.nvim",
214 + master,
215 + "b87e3e0864211a32724a2ebf3be37e24e9e2fa99",
217 - ]
217 + ],
219 - specs
220 - github
221 - "cxwx/specs.nvim"
222 - main
223 - "4a2f6f71eaa054a9355a2f424b4723e68f7ce22c"
219 + specs,
220 + github,
221 + "cxwx/specs.nvim",
222 + main,
223 + "4a2f6f71eaa054a9355a2f424b4723e68f7ce22c",
225 - ]
225 + ],
227 - glance
228 - github
229 - "DNLHC/glance.nvim"
230 - master
231 - "cb19b86349cbe634eec0ea768b9a27fdd6d24f34"
227 + glance,
228 + github,
229 + "DNLHC/glance.nvim",
230 + master,
231 + "1649b772a7216bfd55125c627e100d065ddf3de9",
233 - ]
233 + ],
235 - docs-view
236 - github
237 - amrbashir/nvim-docs-view
238 - master
239 - "f674ba57349849bce894efdd54096483c88e810b"
235 + docs-view,
236 + github,
237 + amrbashir/nvim-docs-view,
238 + master,
239 + "f674ba57349849bce894efdd54096483c88e810b",
241 - ]
241 + ],
243 - rulebook
244 - github
245 - chrisgrieser/nvim-rulebook
246 - main
247 - "4c0e8b16976393f6d3c6bcfad85897eb3e0dd661"
243 + rulebook,
244 + github,
245 + chrisgrieser/nvim-rulebook,
246 + main,
247 + "b1aa87e80ba44e3346094be2f816f3f8fad2dd49",
249 - ]
249 + ],
251 - symbol-usage
252 - github
253 - "Wansmer/symbol-usage.nvim"
254 - main
255 - "e07c07dfe7504295a369281e95a24e1afa14b243"
251 + symbol-usage,
252 + github,
253 + "Wansmer/symbol-usage.nvim",
254 + main,
255 + "e07c07dfe7504295a369281e95a24e1afa14b243",
257 - ]
257 + ],
259 - profile
260 - github
261 - "stevearc/profile.nvim"
262 - master
263 - "30433d7513f0d14665c1cfcea501c90f8a63e003"
259 + profile,
260 + github,
261 + "stevearc/profile.nvim",
262 + master,
263 + "30433d7513f0d14665c1cfcea501c90f8a63e003",
265 - ]
265 + ],
267 - tiny-inline-diagnostic
268 - github
269 - "rachartier/tiny-inline-diagnostic.nvim"
270 - main
271 - "b6ed8038dfd256eb963a2c79cb30f0f4683551a0"
267 + tiny-inline-diagnostic,
268 + github,
269 + "rachartier/tiny-inline-diagnostic.nvim",
270 + main,
271 + "b6ed8038dfd256eb963a2c79cb30f0f4683551a0",
273 - ]
273 + ],
275 - grug-far
276 - github
277 - "MagicDuck/grug-far.nvim"
278 - main
279 - "7df08fff7da6ee08006fe8eaccc3407b89da368b"
275 + grug-far,
276 + github,
277 + "MagicDuck/grug-far.nvim",
278 + main,
279 + "6fd719634c529bfbfe031a03b7af9d728d849dc7",
281 - ]
281 + ],
283 - jdtls
284 - github
285 - mfussenegger/nvim-jdtls
286 - master
287 - "c23f200fee469a415c77265ca55b496feb646992"
283 + jdtls,
284 + github,
285 + mfussenegger/nvim-jdtls,
286 + master,
287 + "c23f200fee469a415c77265ca55b496feb646992",
289 - ]
290 - [
291 - nvim-autopairs
292 - github
293 - windwp/nvim-autopairs
294 - master
295 - "4d74e75913832866aa7de35e4202463ddf6efd1b"
296 - null
297 - ]
298 - [
299 - arrow
300 - github
301 - otavioschwanck/arrow.nvim
302 - master
303 - "6e0f726f55f99332dd726a53effd6813786b6d49"
304 - null
305 - ]
289 + ],
291 + nvim-autopairs,
292 + github,
293 + windwp/nvim-autopairs,
294 + master,
295 + "4d74e75913832866aa7de35e4202463ddf6efd1b",
296 + null
297 + ],
299 + arrow,
300 + github,
301 + "otavioschwanck/arrow.nvim",
302 + master,
303 + "6e0f726f55f99332dd726a53effd6813786b6d49",
304 + null
305 + ],