dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search neovim: profiler fix 3f9201342422d89928811eb582afca870ac06b38
Oliver Jan Krylow <oliver@bugabinga.net > · 18 May 2025
unsigned
Browse files Compare with HEAD
adujusted some keymaps to all follow the <leader>KEY standard.
puk had wrong data for profiler plugin cached.
i do not know hwo and why, but the content of the cached file was the
plenary plugin.
deleting and redownloading the cache fixed the issue...
Changed files (8) 12 12 vim.g.bugabinga_debug_mode
= false 17 18 require 'bugabinga.profile' 42 43 require 'bugabinga.bigfile' 43 44 require 'bugabinga.editorconfig' 44 45 require 'bugabinga.save_actions' 46 46 require 'bugabinga.lsp' 47 47 require 'bugabinga.java' 48 - vim.schedule(
function ()
49 - require 'bugabinga.in_and_out' 50 - require 'bugabinga.mkdir' 51 - require 'bugabinga.diagnostic' 48 + require 'bugabinga.in_and_out' 49 + require 'bugabinga.mkdir' 50 + require 'bugabinga.diagnostic' neovim/lua/bugabinga/key_preview.lua Modified 44 44 {
mode =
'n' ,
keys =
'<Leader>t' ,
desc =
'+Toggle' },
45 + {
mode =
's' ,
keys =
'<Leader>s' ,
desc =
'+Session' },
45 46 {
mode =
'n' ,
keys =
'<Leader>f' ,
desc =
'+Find' },
46 47 {
mode =
'n' ,
keys =
'<Leader>r' ,
desc =
'+Rules' },
47 48 {
mode =
'n' ,
keys =
'<Leader>x' ,
desc =
'+Neovim' },
neovim/lua/bugabinga/navigation.lua Modified 1 1 local puk
= require 'std.puk' 2 - puk.defer
'mini.bracketed' (
function (bracketed)
2 + puk.defer
'mini.bracketed' (
function (bracketed)
4 + indent = {
suffix =
'' },
5 + undo = {
suffix =
'' },
6 + yank = {
suffix =
'' },
7 + window = {
suffix =
'' },
neovim/lua/bugabinga/options/filetypes.lua Modified 8 9 [
'.*/%.vscode/.*%.json' ] =
'json5' ,
neovim/lua/bugabinga/profile.lua Modified 5 7 local should_profile
= os .
getenv 'NVIM_PROFILE' 6 9 if should_profile
then 7 10 vim.cmd.packadd
'profile' 8 11 require 'profile' .instrument_autocmds()
17 20 local prof
= require 'profile' 18 21 if prof.is_recording()
then 20 - vim.ui.input( {
prompt =
'Save profile to:' ,
completion =
'file' ,
default =
'profile.json' },
function ( filename )
23 + vim.ui.input({
prompt =
'Save profile to:' ,
completion =
'file' ,
default =
'profile.json' },
function (filename)
22 - prof.export( filename )
23 - vim.notify(
string .
format (
'Wrote %s' , filename ) )
25 + prof.export(filename)
26 + vim.notify(
string .
format (
'Wrote %s' , filename))
30 + vim.notify(
"Starting profiler" )
30 - vim.keymap.set(
'' ,
'<F12>' , toggle_profile )
35 + vim.keymap.set(
'n' ,
'<F12>' , toggle_profile, {
desc =
'Toggle profiler' })
neovim/lua/bugabinga/search_and_replace.lua Modified 8 8 description =
'search and replace current word' ,
10 + keys =
'<leader>fr' ,
11 11 command =
function () grug.open {
prefills = {
search = vim.fn.expand
'<cword>' } }
end ,
neovim/lua/bugabinga/sessions.lua Modified 86 86 description =
'Load for cwd, if available.' ,
87 87 category =
'session' ,
88 + keys =
'<leader>ss' ,
89 89 command = load_current_session,
93 93 description =
'Load any.' ,
94 94 category =
'session' ,
95 + keys =
'<leader>sa' ,
96 96 command = load_any_session,
neovim/lua/bugabinga/terminal.lua Modified 72 72 map.normal.terminal {
73 73 description =
'Toggle terminal' ,
74 74 category =
'terminal' ,
75 + keys =
'<leader>tf' ,
76 76 command = toggle_terminal,