Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
2e342045326202988a6c9af193144409a1d9f670
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: f2343112f825 · Showing diff
- Parent 2: d585d199ecaa · Diff against parent 2
bugabingas dorkfiles
2e342045326202988a6c9af193144409a1d9f670
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+189 / −157 text lines
+22 / −11 text lines
vim.g.bugabinga_debug_mode = falselocal start_time = vim.uv.hrtime()local start_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field--[[ MY STUFF ]] --require 'bugabinga.search_and_replace'+20 / −8 text lines
puk.defer 'symbol-usage' (function(symbolusage)puk.defer 'symbol-usage' ( function ( symbolusage )end)end )-------------------------------------------------------------------------------puk.defer 'tiny-inline-diagnostic' ( function ( tiny ) tiny.setup { options = { -- Show the source of the diagnostic. show_source = true, -- Use your defined signs in the diagnostic config table. use_icons_from_diagnostic = true, }, }end )+3 / −3 text lines
new file mode 100644+30 / −0 text lines
--- Starts `profile.nvim`, if special `NVIM_PROFILE` environment variable is set.--- This file intentionally does not import any other Lua files, in order to not--- skew the later profiling results with cached modules.local should_profile = os.getenv 'NVIM_PROFILE'if should_profile then vim.cmd.packadd 'profile' require 'profile'.instrument_autocmds() if should_profile:lower():match '^start' then require 'profile'.start '*' else require 'profile'.instrument '*' endendlocal function toggle_profile() local prof = require 'profile' if prof.is_recording() then prof.stop() vim.ui.input( { prompt = 'Save profile to:', completion = 'file', default = 'profile.json' }, function ( filename ) if filename then prof.export( filename ) vim.notify( string.format( 'Wrote %s', filename ) ) end end ) else prof.start '*' endendvim.keymap.set( '', '<F12>', toggle_profile )new file mode 100644+15 / −0 text lines
local puk = require 'std.puk'local map = require 'std.map'puk.defer 'grug-far' ( function ( grug ) grug.setup {} map.normal { description = 'search and replace current word', category = 'find', keys = '<F4>', command = function () grug.open { prefills = { search = vim.fn.expand '<cword>' } } end, }end )-- TODO: check grug-far README for binding in oil.nvim+10 / −31 text lines
local auto = require 'std.auto'local treesj = puk 'treesj'local splitjoin = puk 'mini.splitjoin'treesj.setup { use_default_keymaps = false, max_join_length = 360,}splitjoin.setup { -- Module mappings. Use `''` (empty string) to disable one. -- Created for both Normal and Visual modes. mappings = { toggle = '', split = '', join = '', },}map.normal { description = 'Toggle Tree Join/Split', category = 'editing', keys = '<c-j>', command = function() local langs = require 'treesj.langs'['presets'] if langs[vim.bo.filetype] then treesj.toggle { split = { recursive = false } } else+2 / −2 text lines
+24 / −24 text lines
"6b46370d02cd001509a765591a3ffc481b538794", null ], [ treesj, github, Wansmer/treesj, main, "94f6df623f2d15630b1b617abff39962024cb501", "1fea92f1d9908eaa5eb8bafe08b4293d7aadaa55", "2d9b06177a975543726ce5c73fca176cedbffe9d", null ], [ nui, github, "MunifTanjim/nui.nvim", main, "53e907ffe5eedebdca1cd503b00aa8692068ca46", "d57df512bdade4c7a04a1bb6c89c8b54c5dce52a", "efff286dd74c22f731cdec26a70b46e5b203c619", "11d0fbd6fff6f4e394af95319deeaab4ef88ce97", null ], [ tiny-inline-diagnostic, github, "rachartier/tiny-inline-diagnostic.nvim", main, "66d9166520a0cb3392a5ef68946fd3980d57383f", null ], [ grug-far, github, "MagicDuck/grug-far.nvim", main, "11d0fbd6fff6f4e394af95319deeaab4ef88ce97",+58 / −78 text lines
# Move changes from a revision into the stack of mutable revisions export extern "jj absorb" [ --from(-f): string # Source revision to absorb from --into(-t): string # Destination revisions to absorb into --to: string # Destination revisions to absorb into ...paths: string # Move only changes to these paths (instead of all paths) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new, empty change and edit it in the working copy (DEPRECATED, use `jj new`) export extern "jj checkout" [ revision: string # The revision to update to -r # Ignored (but lets you pass `-r` for consistency with other commands) --message(-m): string # The change description to use --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Create a new change with the same content as an existing one # Create new changes with the same content as existing ones ...revisions: string # The revision(s) to duplicate -r # Ignored (but lets you pass `-r` for consistency with other commands) ...revisions_pos: string # The revision(s) to duplicate (default: @) -r: string --destination(-d): string # The revision(s) to duplicate onto (can be repeated to create a merge commit) --insert-after(-A): string # The revision(s) to insert after (can be repeated to create a merge commit) --after: string # The revision(s) to insert after (can be repeated to create a merge commit) --insert-before(-B): string # The revision(s) to insert before (can be repeated to create a merge commit) --before: string # The revision(s) to insert before (can be repeated to create a merge commit) --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated) --all # Push all bookmarks (including deleted bookmarks) --all # Push all bookmarks (including new and deleted bookmarks) --allow-new(-N) # Allow pushing new bookmarks # Merge work from multiple bookmarks (DEPRECATED, use `jj new`) export extern "jj merge" [ ...revisions: string # Parent(s) of the new change -d # Ignored (but lets you pass `-d`/`-r` for consistency with other commands) --message(-m): string # The change description to use --no-edit # Do not edit the newly created change --edit # No-op flag to pair with --no-edit --insert-after(-A): string # Insert the new change after the given commit(s) --after: string # Insert the new change after the given commit(s) --insert-before(-B): string # Insert the new change before the given commit(s) --before: string # Insert the new change before the given commit(s) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] # Move changes from one revision into another (DEPRECATED, use `jj squash`) export extern "jj move" [ --from(-f): string # Move part of this change into the destination --to(-t): string # Move part of the source into this change --interactive(-i) # Interactively choose which parts to move --tool: string # Specify diff editor to be used (implies --interactive) ...paths: string # Move only changes to these paths (instead of all paths) --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ] --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents # Execute an external command via jj export extern "jj util exec" [ command: string # External command to execute ...args: string # Arguments to pass to the external command --repository(-R): string # Path to repository to operate on --ignore-working-copy # Don't snapshot the working copy, and don't update it --ignore-immutable # Allow rewriting immutable commits --at-operation: string # Operation to load the repo at --at-op: string # Operation to load the repo at --debug # Enable debug logging --color: string # When to colorize output (always, never, debug, auto) --quiet # Silence non-primary command output --no-pager # Disable the pager --config-toml: string # Additional configuration options (can be repeated) --help(-h) # Print help (see more with '--help') ]+5 / −0 text lines