Merge branch 'trunk' of https://github.com/bugabinga/dotfiles into trunk
2a02f88cfdd57f93a8075aa90f9c0df1f63e6099
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: 065723132b3d · Showing diff
- Parent 2: a2df4842e1cc · Diff against parent 2
bugabingas dorkfiles
2a02f88cfdd57f93a8075aa90f9c0df1f63e6099
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+4388 / −2417 text lines · all files grouped into 32 bars
deleted file mode 100644+0 / −28 text lines
local runtime_path = vim.split( package.path, ';' )-- table.insert( runtime_path, vim.fs.joinpath( 'lua', '?.lua' ) )-- table.insert( runtime_path, vim.fs.joinpath( 'lua', '?', 'init.lua' ) )return { LuaLS = { Lua = { runtime = { version = 'LuaJIT', path = runtime_path, }, diagnostics = { globals = { 'vim', 'prequire' }, workspaceDelay = -1, }, workspace = { ignoreSubmodules = true, checkThridParties = false, library = { unpack( vim.api.nvim_get_runtime_file( '', true ) ), }, telemetry = { enable = false, }, }, }, },}+14 / −36 text lines
* use in-and-out* get rid of - cmp - lazy - treesj - gomove - devicons - heirline - luasnip - nui - telescope - surround* fix nugu floating highlight border background* indent line bg overwrites visual selection bg* fix bg highlight of treesitter-context* stabilize plugins that are only dependencies. move to own file?* fix markdown rendering in doc popup* make highlights more visible when expanding snippets* kill mason again and get lsps via packages.nu* simplify lsp config - make my config identical to vim.lsp.ClientConfig - fuck all that single file and workspace stuff - move start function and config creation from lsp/init.lua to ftplugin/*.lua* make assignment to map.x fail, e.g. `map.normal = {}`...* figure out desirable cmp key maps* try loading lsp async for better startup perf* check out `vim.snippet`* replace cmp with vim.lsp.completion when 0.11 comes out* adapt config to respect `vim.g.nerdfont` (std.const?)* check out harper-ls* check out ast-grep* nvim spell for camel case wordsdeleted file mode 100644No text changes.
+44 / −8 text lines
-- Setup debug moderequire 'std.dbg'.toggle()local start_time = vim.uv.hrtime()local auto = require 'std.auto'auto 'measure_startup_time' { events = 'VimEnter', description = 'Measure startup time of neovim.', once = true, command = function() local end_time = vim.uv.hrtime() local time_elapsed = end_time - start_time vim.notify(string.format('Neovim started in (%d ms).', time_elapsed / 1e6), vim.log.levels.INFO) end,}require 'bugabinga.lazy'require 'bugabinga.file_explorer'require 'bugabinga.virtual_column'require 'bugabinga.align'require 'bugabinga.autotag'require 'bugabinga.colorizer'require 'bugabinga.cursorword'require 'bugabinga.devicons'require 'bugabinga.diff'require 'bugabinga.format'require 'bugabinga.jump2d'require 'bugabinga.lint'require 'bugabinga.move'require 'bugabinga.navigation'require 'bugabinga.notifications'require 'bugabinga.operators'require 'bugabinga.specs'require 'bugabinga.splitjoin'require 'bugabinga.statusbar'require 'bugabinga.surround'require 'bugabinga.textobjects'require 'bugabinga.key_preview'require 'bugabinga.incubator'deleted file mode 100644+0 / −31 text lines
{ "blink.cmp": { "branch": "main", "commit": "12d9ecd98055423fa76dfcf05b856967129b8847" }, "conform.nvim": { "branch": "master", "commit": "6239d9986f51ca93ded99ecdb1af0e287eabb651" }, "decisive.nvim": { "branch": "main", "commit": "a7251adebccbc9c899cff39a524b20d06e2b78b5" }, "fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" }, "glance.nvim": { "branch": "master", "commit": "17ee84e29ac33e7e5d91609f675cee8477586bda" }, "heirline.nvim": { "branch": "master", "commit": "cc359b628266cb9a84b2d71c883f2b99e16473a0" }, "lazy.nvim": { "branch": "main", "commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2" }, "mini.align": { "branch": "main", "commit": "26111a737494bc39576ad67b52bbc2638ca23553" }, "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" }, "mini.cursorword": { "branch": "main", "commit": "7d1b38a17834acbbc4feff8e42aedc4ed0c6ff06" }, "mini.diff": { "branch": "main", "commit": "24d46798be8a358d38d3adc92c7ebcbb2d6f67e0" }, "mini.icons": { "branch": "main", "commit": "a2742459f0ee32806c2438ca06b4d8b331f3f4d4" }, "mini.jump2d": { "branch": "main", "commit": "b0963aa2ec80b4b1ed1c7f93d9c969bb3f4b65b6" }, "mini.operators": { "branch": "main", "commit": "35b12f54bd5acb860f4297fd6d12fd07b1b065e2" }, "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" }, "nvim-docs-view": { "branch": "master", "commit": "365593534e0acd762bfddce6e8313315ffa4fa36" }, "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" }, "nvim-highlight-colors": { "branch": "main", "commit": "a411550ef85cae467b889ba7d1a96bd78332d90e" }, "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" }, "nvim-rulebook": { "branch": "main", "commit": "528857a6e522396c2ded41cb24e694fb3f177429" }, "nvim-surround": { "branch": "main", "commit": "9f0cb495f25bff32c936062d85046fbda0c43517" }, "nvim-treesitter": { "branch": "main", "commit": "fc940eaf106981a92829518e977e46ad4f306472" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, "oil.nvim": { "branch": "master", "commit": "50c4bd4ee216f08907f64d0295c0663a69e58ffb" }, "refjump.nvim": { "branch": "main", "commit": "92ec869724b949c40efbea54a560a835680d3de2" }, "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" }, "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" }, "treesj": { "branch": "main", "commit": "03415ac60791d48e120a80d37e080744faf3ac15" }, "virt-column.nvim": { "branch": "master", "commit": "b87e3e0864211a32724a2ebf3be37e24e9e2fa99" }}new file mode 100644+5 / −0 text lines
new file mode 100644+6 / −0 text lines
new file mode 100644+47 / −0 text lines
-- Stolen from https://github.com/folke/snacks.nvim/blob/main/lua/snacks/bigfile.lualocal auto = require 'std.auto'local defaults = { size = 1.5 * 1024 * 1024, -- 1.5MB -- Enable or disable features when big file detected ---@param ctx {buf: number, ft:string} setup = function(ctx) vim.cmd([[NoMatchParen]]) vim.schedule(function() vim.bo[ctx.buf].syntax = ctx.ft end) end,}vim.filetype.add({ pattern = { [".*"] = { function(path, buf) return vim.bo[buf] and vim.bo[buf].filetype ~= "bigfile" and path and vim.fn.getfsize(path) > defaults.size and "bigfile" or nil end, }, },})auto 'bigfile' { events = 'FileType', pattern = "bigfile", command = function(ev) local path = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(ev.buf), ":p:~:.") vim.notify(("Big file detected `%s`."):format(path) .. "\nSome Neovim features have been **disabled**.", vim.log.levels.WARN, { title = 'bigfile' }) vim.api.nvim_buf_call(ev.buf, function() defaults.setup({ buf = ev.buf, ft = vim.filetype.match({ buf = ev.buf }) or "", }) end) end,}new file mode 100644+6 / −0 text lines
new file mode 100644+4 / −0 text lines
new file mode 100644+61 / −0 text lines
local puk = require 'std.puk'local table = require 'std.table'local auto = require 'std.auto'puk.defer 'mini.cursorword' (function (cursorword) cursorword.setup { delay = 4242, } vim.api.nvim_set_hl( 0, 'MiniCursorwordCurrent', { reverse = true } ) local cursorword_blocklist = function () local curword = vim.fn.expand '<cword>' local filetype = vim.bo.filetype -- Add any disabling global or filetype-specific logic here local blocklist = { 'if', 'else', 'switch', 'case', 'return', 'true', 'false', } if filetype == 'lua' then table.join( blocklist, { 'local', 'require', 'prequire', 'then', 'end', 'not', 'elseif', } ) elseif filetype == 'java' then table.join( blocklist, { 'import', 'class', 'final', 'interface', 'record', 'abstract', 'static', 'public', 'private', } ) end if #curword >= 2 then table.insert(blocklist, curword) end vim.b.minicursorword_disable = vim.tbl_contains( blocklist, curword ) end -- Make sure to add this autocommand *before* calling module's `setup()`. auto 'mini_cursorword_blocklist_update' { description = 'Disable Cursorword for certain words.', events = 'CursorMoved', pattern = '*', command = cursorword_blocklist, }end)new file mode 100644+3 / −0 text lines
new file mode 100644+4 / −0 text lines
new file mode 100644+60 / −0 text lines
local puk = require 'std.puk'local map = require 'std.map'local icon = require 'std.icon'local oil = puk 'oil'oil.setup { -- default_file_explorer = true, -- Set to true to watch the filesystem for changes and reload oil -- experimental_watch_for_changes = true, skip_confirm_for_simple_edits = true, prompt_save_on_select_new_entry = false, delete_to_trash = true, columns = { 'icon' }, win_options = { cursorline = true, }, keymaps = { ['q'] = 'actions.close', ['<C-v>'] = 'actions.select_vsplit', ['<C-s>'] = 'actions.select_split', ['`'] = 'actions.tcd', ['~'] = '<cmd>edit $HOME<CR>', ['<F7>'] = 'actions.open_terminal', ['gd'] = { desc = 'Toggle detail view', callback = function() local oil = require 'oil' local config = require 'oil.config' if #config.columns == 1 then oil.set_columns { 'icon', 'permissions', 'size', { 'mtime', format = '%d/%m/%y %T' } } else oil.set_columns { 'icon' } end end, }, }, float = { max_width = 69, min_width = 69, border = vim.g.border_style, padding = 2, }, -- Configuration for the floating keymaps help window keymaps_help = { border = vim.g.border_style, }, view_options = { is_always_hidden = function(name, bufnr) return name == '..' end, show_hidden = true, },}map.normal { description = 'Open parent directory in buffer.', category = 'files', keys = '-', command = oil.open,}new file mode 100644+40 / −0 text lines
local puk = require 'std.puk'local dbg = require 'std.dbg'local map = require 'std.map'local user_command = require 'std.user_command'local format = function () require 'conform'.format( { async = false, lsp_fallback = true }, function ( err ) if err and dbg.get() then vim.print( 'Format failed', err ) end end )endmap.N { description = 'Format buffer', category = 'format', keys = '=', command = format,}user_command.Format 'Format the current buffer' ( format )vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"puk.defer 'conform' (function (conform) conform.setup { formatters_by_ft = { toml = { 'taplo' }, sh = { 'shfmt' }, just = { 'just' }, zig = { 'zigfmt' }, -- Use the "*" file type to run formatters on all file types. ['*'] = { 'injected', 'typos' }, -- Use the "_" file type to run formatters on file types that don't -- have other formatters configured. ['_'] = { 'trim_whitespace', 'trim_newlines' }, }, log_level = dbg.get() and vim.log.levels.TRACE or vim.log.levels.INFO, }end)deleted file mode 100644+0 / −56 text lines
-- Stolen from https://github.com/ysmb-wtsg/in-and-out.nvimlocal map = require 'std.map'local function escape_lua_pattern( s ) local matches = { ['^'] = '%^', ['$'] = '%$', ['('] = '%(', [')'] = '%)', ['%'] = '%%', ['.'] = '%.', ['['] = '%[', [']'] = '%]', ['*'] = '%*', ['+'] = '%+', ['-'] = '%-', ['?'] = '%?', } return s:gsub( '.', matches )endlocal targets = { '"', "'", '(', ')', '{', '}', '[', ']', '`' }local in_and_out = function () local current_row, current_col = unpack( vim.api.nvim_win_get_cursor( 0 ) ) local lines_in_buf = vim.api.nvim_buf_get_lines( 0, current_row - 1, -1, false ) local target_row = 0 local target_col = nil for i, line in ipairs( lines_in_buf ) do for _, char in ipairs( targets ) do local found_col = string.find( line, escape_lua_pattern( char ), current_col + 1 ) if found_col and (not target_col or found_col < target_col) then -- If char is a multibyte character, we need to take into account the extra bytes. target_col = found_col + vim.fn.strlen( char ) - 1 end end if target_col then target_row = current_row + i - 1 break end current_col = 0 end if target_col then vim.api.nvim_win_set_cursor( 0, { target_row, target_col } ) endendmap.insert { description = 'Moves in or out of balanced tokens', category = 'editing', keys = '<C-CR>', command = in_and_out,}new file mode 100644+54 / −0 text lines
-- Stolen from https://github.com/ysmb-wtsg/in-and-out.nvimlocal map = require 'std.map'local function escape_lua_pattern( s ) local matches = { ['^'] = '%^', ['$'] = '%$', ['('] = '%(', [')'] = '%)', ['%'] = '%%', ['.'] = '%.', ['['] = '%[', [']'] = '%]', ['*'] = '%*', ['+'] = '%+', ['-'] = '%-', ['?'] = '%?', } return s:gsub( '.', matches )endlocal targets = { '"', "'", '(', ')', '{', '}', '[', ']', '`' }local in_and_out = function () local current_row, current_col = unpack( vim.api.nvim_win_get_cursor( 0 ) ) local lines_in_buf = vim.api.nvim_buf_get_lines( 0, current_row - 1, -1, false ) local target_row = 0 local target_col = nil for i, line in ipairs( lines_in_buf ) do for _, char in ipairs( targets ) do local found_col = string.find( line, escape_lua_pattern( char ), current_col + 1 ) if found_col and (not target_col or found_col < target_col) then -- If char is a multibyte character, we need to take into account the extra bytes. target_col = found_col + vim.fn.strlen( char ) - 1 end end if target_col then target_row = current_row + i - 1 break end current_col = 0 end if target_col then vim.api.nvim_win_set_cursor( 0, { target_row, target_col } ) endendmap.insert { description = 'Moves in or out of balanced tokens', category = 'editing', keys = '<C-CR>', command = in_and_out,}new file mode 100644+99 / −0 text lines
-- this file lists plugins in their "incubation" phase.-- that means i am testing those out of curiosity, but am not sure yet i wish-- to use and depend on them.local puk = require 'std.puk'local auto = require 'std.auto'local map = require 'std.map'local icon = require 'std.icon'local const = require 'std.const'local dbg = require 'std.dbg'local ignored = require 'std.ignored'---------------------------------------------------------------------------------- does not yet restore well with session--- cannot navigate with C-w inside the DocsView--- it has a manual update mode, but which key to bind it to?puk.defer 'docs-view' (function(docsview) docsview.setup { position = 'right', width = 42, } map.normal { description = 'Toggle stable documentation panel.', keys = '<leader>tk', command = '<cmd>DocsViewToggle<cr>', }end)---------------------------------------------------------------------------------- this is pretty great! i just need better binds and tell which key about thempuk.defer 'rulebook' (function(rulebook) rulebook.setup () map.normal { description = 'ignore rule', category = 'lint', keys = '<leader>ri', command = rulebook.ignoreRule, } map.normal { description = 'lookup rule', category = 'lint', keys = '<leader>rl', command = rulebook.lookupRule, } map.normal { description = 'yank diagnostic code', category = 'lint', keys = '<leader>ry', command = rulebook.yankDiagnosticCode, } map.normal { description = 'supress formatter', category = 'lint', keys = '<leader>rf', command = rulebook.suppressFormatter, }end)---------------------------------------------------------------------------------- this plugin has some sick visual text formatting chops. check them out some time.puk.defer 'symbol-usage'(function(symbolusage) symbolusage.setup { hi = { link = 'LineNr' }, vt_position = 'end_of_line', request_pending_text = false, disable = { filetypes = ignored.filetypes, }, log = { enabled = dbg.get() }, }end)---------------------------------------------------------------------------------- Pretty NICE!--- fix highlights to match nugu.puk.defer 'glance' (function(glance) glance.setup() map.normal { description = 'peek definitions', category = 'lsp', keys = '<Leader>lpd', command = '<cmd>Glance definitions<cr>', } map.normal { description = 'Peek references', category = 'lsp', keys = '<Leader>lpr', command = '<cmd>Glance references<cr>', } map.normal { description = 'Peek type definitions', category = 'lsp', keys = '<Leader>lpt', command = '<cmd>Glance type_definitions<cr>', } map.normal { description = 'Peek implementations', keys = '<Leader>lpi', command = '<cmd>Glance implementations<cr>', }end)-------------------------------------------------------------------------------new file mode 100644+4 / −0 text lines
new file mode 100644+51 / −0 text lines
local puk = require 'std.puk'puk.defer 'mini.clue' (function(clue) clue.setup { triggers = { -- Leader triggers { mode = 'n', keys = '<Leader>' }, { mode = 'x', keys = '<Leader>' }, -- Built-in completion { mode = 'i', keys = '<C-x>' }, -- `g` key { mode = 'n', keys = 'g' }, { mode = 'x', keys = 'g' }, -- Marks { mode = 'n', keys = "'" }, { mode = 'n', keys = '`' }, { mode = 'x', keys = "'" }, { mode = 'x', keys = '`' }, -- Registers { mode = 'n', keys = '"' }, { mode = 'x', keys = '"' }, { mode = 'i', keys = '<C-r>' }, { mode = 'c', keys = '<C-r>' }, -- Window commands { mode = 'n', keys = '<C-w>' }, -- `z` key { mode = 'n', keys = 'z' }, { mode = 'x', keys = 'z' }, }, clues = { -- Enhance this by adding descriptions for <Leader> mapping groups { mode = 'n', keys = '<Leader>t', desc = '+Toggle' }, { mode = 'n', keys = '<Leader>l', desc = '+LSP' }, { mode = 'n', keys = '<Leader>lp', desc = '+Peek' }, { mode = 'n', keys = '<Leader>r', desc = '+Rules' }, clue.gen_clues.builtin_completion(), clue.gen_clues.g(), clue.gen_clues.marks(), clue.gen_clues.registers(), clue.gen_clues.windows(), clue.gen_clues.z(), }, }end)deleted file mode 100644+0 / −129 text lines
local win32 = vim.uv.os_uname().sysname:match 'Win'local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'if not vim.uv.fs_stat( lazypath ) then vim.fn.system { 'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', -- latest stable release lazypath, }endvim.opt.rtp:prepend( lazypath )-- prevents lazy from setting up its highlights.-- those will be setup manually later.require 'lazy.view.colors'.did_setup = truelocal lazy = require 'lazy'local icon = require 'std.icon'local overrides = require 'std.localrc' ( '.lazy.specs.lua', 'table' )lazy.setup { spec = { { import = 'bugabinga.plugins' }, overrides }, defaults = { lazy = true, -- version = '*', -- useful to globally disable plugins cond = function ( plugin_spec ) return true -- return plugin_spec.name:find 'virt' end, }, install = { missing = true, colorscheme = { 'nugu', 'quiet' }, }, checker = { enabled = not win32, notify = true, }, ui = { size = { width = 0.69, heigth = 0.69 }, border = vim.g.border_style, icons = { lazy = icon.lazy, task = icon.terminal, ft = icon.file, }, }, change_detection = { notify = true }, performance = { rtp = { disabled_plugins = { 'netrw', 'netrwPlugin', 'netrwSettings', 'netrwFileHandlers', 'gzip', 'zip', 'zipPlugin', 'tar', 'tarPlugin', 'getscript', 'getscriptPlugin', 'vimball', 'vimballPlugin', '2html_plugin', 'logipat', 'rrhelper', 'spellfile_plugin', 'matchit', 'matchparen', 'man', 'tohtml', 'tutor', }, }, }, dev = { fallback = true, patterns = { 'bugabinga' }, path = win32 and 'W:/' or '~/Workspace', }, profiling = { loader = false, require = false, },}local map = require 'std.map'local lazy_cmds = vim.iter { { 'Show', '', lazy.show }, { 'Install', 'i', lazy.install }, { 'Update', 'u', lazy.update }, { 'Sync', 's', lazy.sync }, { 'Clean', 'x', lazy.clean }, { 'Check', 'c', lazy.check }, { 'Log', 'l', lazy.log }, { 'Restore', 'r', lazy.restore }, { 'Profile', 'p', lazy.profile }, { 'Debug', 'd', lazy.debug },}local base_key = '<leader>z'lazy_cmds:each( function ( cmd ) map.normal { description = cmd[1], category = 'plugins', keys = base_key .. cmd[2], command = cmd[3], }end )local auto = require 'std.auto'auto 'display_startup_time' { description = 'Display startup time on starter screen', events = 'User', pattern = 'LazyVimStarted', once = true, command = vim.schedule_wrap( function () local startuptime = lazy.stats().startuptime vim.notify( 'neovim started in ' .. startuptime .. 'ms' ) end ),}new file mode 100644+34 / −0 text lines
local puk = require 'std.puk'local auto = require 'std.auto'puk.defer 'lint' (function (lint) local linters_by_ft = { lua = { 'selene' }, sh = { 'shellcheck', 'dotenv_linter' }, systemd = { 'systemd-analyze' }, editorconfig = { 'editorconfig-checker' }, yaml = { 'yq' }, } for k, v in pairs( linters_by_ft ) do lint.linters[k] = v end local timer = vim.uv.new_timer() local DEBOUNCE_MS = 500 local try_lint = function () local bufnr = vim.api.nvim_get_current_buf() timer:stop() timer:start( DEBOUNCE_MS, 0, vim.schedule_wrap( function () if vim.api.nvim_buf_is_valid( bufnr ) then vim.api.nvim_buf_call( bufnr, function () lint.try_lint( nil, { ignore_errors = true } ) end ) end end )) end auto 'Lint' { description = '', events = 'BufWritePost', command = try_lint, }end)+0 / −4 text lines
+0 / −11 text lines
+102 / −395 text lines
local dbg = require 'std.dbg'local icon = require 'std.icon'local defer = require 'std.defer'local map = require 'std.map'local auto = require 'std.auto'local table = require 'std.table'local ignored = require 'std.ignored'local user_command = require 'std.user_command'local lsp_client_configs = require 'bugabinga.lsp.clients'local localrc = require 'std.localrc'local _ = {}local token_update = function ( lsp_client ) local token = lsp_client.data.token local buffer = lsp_client.buffer local client_id = lsp_client.data.client_id local mutable_variable_highlight = 'MutableVariable' if token.type == 'variable' and not token.modifiers.readonly then vim.lsp.semantic_tokens.highlight_token( token, buffer, client_id, mutable_variable_highlight ) end --TODO: find more use cases for semantic tokens --* global variables --* functions with side effects --* closures that capture somethinglocal expand_path = function ( path ) if vim.fn.executable( path ) == 1 then return vim.fn.exepath( path ) else return path endlocal language_servers = { lua_ls = { root_dir = project.find_lua_project_root, settings = { Lua = { hint = { enable = true, setType = true, }, telemetry = { enable = false, }, }, }, }, -- TODO: take some config from clients/ int here jdtls = { root_dir = project.find_java_project_root, }, zls = { root_dir = project.find_zig_project_root, }, ziggy = { root_dir = project.find_zig_project_root, }, ziggy_schema = { root_dir = project.find_zig_project_root, }, harper_ls = {}, asm_lsp = { linters = { spell_check = true, spelled_numbers = true, an_a = true, sentence_capitalization = true, unclosed_quotes = true, wrong_quotes = true, long_sentences = true, repeated_words = true, spaces = true, matcher = true, correct_number_suffix = true, number_suffix_capitalization = true, multiple_sequential_pronouns = true, linking_verbs = true, avoid_curses = true, terminating_conjunctions = true }, codeActions = { forceStable = true }, root_dir = project.find_vcs_project_root, }, clangd = {}, denols = {}, dotls = {}, docker_compose_language_service = {}, dockerls = {}, ast_grep = {}, cssls = {}, css_variables = {}, emmet_language_server = {}, gopls = {}, gradle_ls = {}, html = {}, htmx = {}, hyprls = {}, jsonls = {}, lemminx = {}, ltex = {}, marksman = {}, markdown_oxide = {}, nil_ls = {}, nixd = {}, nushell = {}, ocamllsp = {}, protols = {}, roc_ls = {}, rust_analyzer = {}, statix = {}, superhtml = {}, taplo = {}, ts_ls = {}, zk = {},}local lspconfig = puk 'lspconfig'for server, config in pairs(language_servers) do local capabilities = vim.lsp.protocol.make_client_capabilities() config.capabilities = require('bugabinga.completion').get_lsp_capabilities(config.capabilities) capabilities = table.extend('force', capabilities, config.capabilities) local settings = config.settings or {} -- TODO reimplement local settings overrides -- local settings_override = local_settings(server) or {} -- config.settings = table.extend('force', settings, settings_override) lspconfig[server].setup(config)local expand_command = function ( command ) vim.validate { command = { command, { 'string', 'table' } } } if type( command ) == 'table' then command[1] = expand_path( command[1] ) return command end return expand_path( command )endlocal lsp_start = function ( file_type_event ) dbg.print 'trying to start lsp' local match = file_type_event.match dbg.print( 'filetypes to ignore', ignored.filetypes, 'current filetype', match ) if vim.iter( ignored.filetypes ):find( match ) then return end local bufnr = file_type_event.buf local buftype = vim.api.nvim_get_option_value( 'buftype', { buf = bufnr } ) dbg.print( 'buftypes to ignore', ignored.buftypes, 'current buftype', buftype ) if vim.iter( ignored.buftypes ):find( buftype ) then return end local buffer_path = vim.api.nvim_buf_get_name( bufnr ) dbg.print( string.format( 'searching lsp client for: match: %s, buffer: %s, path: %s', match, bufnr, buffer_path ) ) local potential_client_configs = vim.iter( lsp_client_configs ) :map( function ( config ) vim.validate { ['config'] = { config, 'table' }, ['config.name'] = { config.name, 'string' }, ['config.filetypes'] = { config.filetypes, { 'string', 'table' } }, ['config.command'] = { config.command, { 'string', 'table' } }, ['config.environment'] = { config.environment, 'table', true }, ['config.root_dir'] = { config.root_dir, 'function', 'string' }, ['config.single_file_support'] = { config.single_file_support, 'boolean', true }, ['config.settings'] = { config.settings, 'table', true }, ['config.workspaces'] = { config.workspaces, 'boolean', true }, ['config.before_init'] = { config.before_init, { 'function', 'table' }, true }, ['config.init_options'] = { config.init_options, 'table', true }, ['config.capabilities'] = { config.capabilities, 'table', true }, ['config.custom_start'] = { config.custom_start, 'function', true }, } -- normalize scalar values to its vector alternative for easier processing later on -- this mutates the lsp client configs! careful! config.command = type( config.command ) == 'string' and { expand_command( config.command ) } or expand_command( config.command ) config.environment = config.environment or {} config.filetypes = type( config.filetypes ) == 'string' and { config.filetypes } or config.filetypes config.single_file_support = config.single_file_support == nil and false or config.single_file_support config.workspaces = config.workspaces == nil and false or config.workspaces config.capabilities = config.capabilities or {} config.init_options = config.init_options or {} return config end ) :filter( function ( config ) return vim.iter( config.filetypes ):find( match ) end ) :totable() dbg.print( 'POTENTIAL CLIENTS', vim.iter( potential_client_configs ):map( function ( config ) return { name = config.name, command = config.command, } end ) :totable() ) if table.is_empty( potential_client_configs ) then dbg.print( 'found no lsp client for', buffer_path ) return end --NOTE: this is super kool but has the limitation, that only lsp clients -- configured via my special lsp module are affected. local project_local_lsp_settings = localrc( '.lsp.settings.lua', 'table' ) or {} local project_local_workspace_folders = localrc( '.lsp.workspace_folders.lua', 'table' ) or {} -- expand relative workspace paths into lsp.workspaceFolders (name + uri) for lsp, folders in pairs( project_local_workspace_folders ) do for idx, path in ipairs( folders ) do local cwd = vim.uv.cwd() local abs_path = vim.fs.normalize( vim.fs.joinpath( cwd, path ) ) local exists = vim.uv.fs_stat( abs_path ) if not exists or exists.type ~= 'directory' then vim.error( 'the project local workspace folder ' .. abs_path .. ' does not exist or is not a directory.' ) end project_local_workspace_folders[lsp][idx] = { uri = 'file://' .. abs_path, name = path } end end dbg.print( 'patched project local workspace folders', project_local_workspace_folders ) for _, config in ipairs( potential_client_configs ) do local path = type( config.command ) == 'table' and config.command[1] or config.command if vim.fn.executable( path ) ~= 1 then vim.notify( 'The LSP ' .. config.name .. ' does not seem to be installed!' ) break end local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = table.extend( 'force', capabilities, config.capabilities ) local settings = config.settings local settings_override = project_local_lsp_settings[config.name] if settings_override then dbg.print( 'overriding settings with project local settings', settings, settings_override ) settings = vim.tbl_deep_extend( 'force', settings, settings_override ) end local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path ) local root_workspace = root_dir and { uri = 'file://' .. root_dir, name = root_dir } or nil local workspace_folders = root_workspace and { root_workspace } or nil local workspace_folders_local = project_local_workspace_folders[config.name] if not workspace_folders_local then dbg.print( 'no local workspace folders found for ' .. config.name ) end if workspace_folders_local and config.workspaces then dbg.print( 'setting workspace folders to project local workspace folders', workspace_folders_local ) workspace_folders = workspace_folders and vim.tbl_deep_extend( 'force', workspace_folders, workspace_folders_local ) or workspace_folders_local end dbg.print( 'starting command:', config.command ) local start_config = { cmd = config.command, cmd_cwd = root_dir, -- cmd_env = config.environment, detached = false, -- do i want this? root_dir = root_dir, workspace_folders = workspace_folders, capabilities = capabilities, -- handlers = vim.lsp.handlers, settings = settings, -- commands = nil, -- what is this? init_options = config.init_options, name = config.name, -- get_language_id = nil, -- offset_encoding = nil, on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end, before_init = config.before_init, -- on_init = nil, -- should i send workspace/didChangeConfiguration here? on_exit = function ( code, signal, client_id ) dbg.print( 'LSP CLIENT EXIT', code, signal, client_id ) end, on_attach = function ( client, attach_bufnr ) dbg.print( 'LSP CLIENT ATTACH', client, attach_bufnr ) end, trace = dbg.get() and 'on' or 'off', flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200 }, } local lsp_starter = config.custom_start or vim.lsp.start dbg.print( 'starting lsp', start_config.name, root_dir ) lsp_starter( start_config, { bufnr = bufnr, -- TODO: reuse if workspaces -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported') reuse_client = function ( existing_client, new_config ) dbg.print( 'lsp reuse client', existing_client.name, existing_client.workspace_folders, new_config.name, new_config.root_dir ) --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder local same_name = existing_client.name == new_config.name local new_root_raw = new_config.root_dir or nil local existing_root_raw = existing_client.workspace_folders and #existing_client.workspace_folders >= 1 and existing_client.workspace_folders[1].name or nil if not (new_root_raw and existing_root_raw) then return false end local new_root = vim.fs.normalize( new_root_raw ) local existing_root = vim.fs.normalize( existing_root_raw ) local same_root = new_root == existing_root local reuse = same_name and same_root dbg.print( 'reusing lsp client?', reuse ) return reuse end, } ) dbg.print( 'STARTING LSP CLIENT', config.name ) endend-- FIXME: move to own file with LspAttach instead, so that those settings are-- applied to all LSPs, not only those managed by my configs.local lsp_attach = function ( args )local lsp_attach = function(args) local client = vim.lsp.get_client_by_id( client_id ) local client = vim.lsp.get_client_by_id(client_id) dbg.print( client.server_capabilities ) if client.server_capabilities.definitionProvider then vim.bo[bufnr].tagfunc = 'v:lua.vim.lsp.tagfunc' end if client.server_capabilities.documentFormattingProvider then vim.bo[bufnr].formatexpr = 'v:lua.vim.lsp.formatexpr' end if client.server_capabilities.completionProvider then vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc' end vim.lsp.completion.enable(true, client_id, bufnr) map.normal { description = 'Show hover documentation above cursor.', category = 'lsp', buffer = bufnr, keys = { 'K', '<leader>lk' }, command = vim.lsp.buf.hover, } map.insert { description = 'Show signature help under cursor.', category = 'lsp', buffer = bufnr, keys = { '<C-h>' }, command = vim.lsp.buf.signature_help, } map.normal { description = 'Show available code actions on current line.', category = 'lsp', buffer = bufnr, keys = '<leader>la', command = vim.lsp.buf.code_action, } map.normal { description = 'Goto to definition of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>ld', command = vim.lsp.buf.definition, } map.normal { description = 'Show implementations of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>li', command = vim.lsp.buf.implementation, } map.normal { description = 'Show incoming calls of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>lc', command = vim.lsp.buf.incoming_calls, } map.normal { description = 'Show outgoing calls of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>lC', command = vim.lsp.buf.outgoing_calls, } map.normal { description = 'Show references of symbol under cursor.', category = 'lsp', buffer = bufnr, keys = '<leader>ln', command = vim.lsp.buf.references, } map.normal { description = 'Rename symbol under cursor.', category = 'lsp', buffer = bufnr, keys = { '<f2>', '<leader>lr' }, command = vim.lsp.buf.rename, } { description = 'Start or reuse LSP client', events = 'FileType', command = lsp_start, }, { description = 'Hook: LSP client attached to buffer', events = 'LspAttach', command = lsp_attach, }, { description = 'Semantic Tokens from the LSP', events = 'LspTokenUpdate', command = token_update, },local lsp_info = function ( command ) local all_or_current = command.args and command.args == 'all' and {} or { bufnr = 0 } local active_clients = vim.lsp.get_clients( all_or_current ) local infos = vim.iter( active_clients ) :map( function ( client ) local name = client.name local config = vim.iter( lsp_client_configs ):find( function ( config ) return config.name == name end ) assert( config, ('How did we not find a config for %s ?!?!'):format( name ) ) local full_cmd = table.deep_copy( client.config.cmd ) full_cmd[1] = vim.fn.exepath( full_cmd[1] ) local basic = { id = client.id, name = name, cmd = table.concat( full_cmd, ' ' ), workspace_folders = vim.iter( client.workspace_folders ):map( function ( w ) return vim.fs.normalize( w.name ) end ) :totable(), filetypes = table.concat( config.filetypes, ', ' ), single_file_support = config.single_file_support, workspaces = config.workspaces, } return basic end ) :totable() vim.print( vim.inspect( infos ) )endlocal lsp_info_extended = function ( command ) local all_or_current = command.args and command.args == 'all' and {} or { bufnr = 0 } local active_clients = vim.lsp.get_clients( all_or_current ) vim.print( vim.inspect( active_clients ) )enduser_command.LspInfo'Shows basic information about running LSP clients.' { nargs = '?', complete = function () return { 'all' } end } ( lsp_info )user_command.LspInfoExtended'Shows detailed information about running LSP clients.' { nargs = '?', complete = function () return { 'all' } end } ( lsp_info_extended )-- TODO: LspStart-- TODO: LspStop-- TODO: LspRestart ? Maybe good after changing project local settings?new file mode 100644+5 / −0 text lines
new file mode 100644+4 / −0 text lines
new file mode 100644+19 / −0 text lines
local puk = require 'std.puk'puk.defer 'lazydev' (function(lazydev) vim.cmd.packadd 'wezterm-types' lazydev.setup { library = { -- See the configuration section for more details -- Load luvit types when the `vim.uv` word is found { path = "${3rd}/luv/library", words = { "vim%.uv" } }, -- Load the wezterm types when the `wezterm` module is required -- Needs `justinsgithub/wezterm-types` to be installed { path = "wezterm-types", mods = { "wezterm" } }, }, -- disable when a .luarc.json file is found enabled = function(root_dir) return not vim.uv.fs_stat(root_dir .. "/.lsp.settings.lua") end, }end)new file mode 100644+17 / −0 text lines
local puk = require 'std.puk'local user_command = require 'std.user_command'local fidget = puk 'fidget'fidget.setup { -- Options related to LSP progress subsystem progress = { suppress_on_insert = true, -- Suppress new messages while in insert mode }, -- Options related to notification subsystem notification = { override_vim_notify = true, -- Automatically override vim.notify() with Fidget },}user_command.Notifications 'Show past notifications' (function() vim.cmd.Fidget 'history' end)new file mode 100644+4 / −0 text lines
+7 / −6 text lines
vim.opt.spelloptions:append 'camel'local spell_dir = joinpath( config_dir, 'spell' )local spell_dir = joinpath(config_dir, 'spell')deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −12 text lines
deleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −13 text lines
deleted file mode 100644+0 / −63 text lines
local table = require 'std.table'local auto = require 'std.auto'return { 'echasnovski/mini.cursorword', version = '0.*', event = 'VeryLazy', opts = { delay = 4242, }, config = function ( _, opts ) local cursorword_blocklist = function () local curword = vim.fn.expand '<cword>' local filetype = vim.bo.filetype -- Add any disabling global or filetype-specific logic here local blocklist = { '_', 'if', 'else', 'switch', 'case', 'return', 'true', 'false', } if filetype == 'lua' then table.join( blocklist, { 'local', 'require', 'prequire', 'then', 'end', 'not', 'elseif', } ) elseif filetype == 'java' then table.join( blocklist, { 'import', 'class', 'final', 'interface', 'record', 'abstract', 'static', 'public', 'private', } ) end vim.b.minicursorword_disable = vim.tbl_contains( blocklist, curword ) end -- Make sure to add this autocommand *before* calling module's `setup()`. auto 'mini_cursorword_blocklist_update' { description = 'Disable Cursorword for certein words.', events = 'CursorMoved', pattern = '*', command = cursorword_blocklist, } prequire 'mini.cursorword'.setup( opts ) vim.api.nvim_set_hl( 0, 'MiniCursorwordCurrent', { reverse = true } ) end,}deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −43 text lines
local debug = require 'std.dbg'local map = require 'std.map'local user_command = require 'std.user_command'local format = function () prequire 'conform'.format( { async = false, lsp_fallback = true }, function ( err ) if err and debug.get() then vim.print( 'Format failed', err ) end end )endmap.N { description = 'Format buffer', category = 'format', keys = '=', command = format,}user_command.Format 'Format the current buffer' ( format )return { 'stevearc/conform.nvim', version = '8.*', cmd = { 'ConformInfo' }, opts = { formatters_by_ft = { toml = { 'taplo' }, sh = { 'shfmt' }, just = { 'just' }, zig = { 'zigfmt' }, -- Use the "*" file type to run formatters on all file types. ['*'] = { 'injected', 'typos' }, -- Use the "_" file type to run formatters on file types that don't -- have other formatters configured. ['_'] = { 'trim_whitespace', 'trim_newlines' }, }, log_level = debug.get() and vim.log.levels.TRACE or vim.log.levels.INFO, }, init = function () vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" end,}deleted file mode 100644+0 / −152 text lines
-- this file lists plugins in their "incubation" phase.-- that means i am testing those out of curiosity, but am not sure yet i wish-- to use and depend on them.-- global toggle for all incubating plugins. set to false to quickly, but-- temporarily, get rid of all incubating plugins.local FUCK_STABILITY = truelocal icon = require 'std.icon'local const = require 'std.const'local dbg = require 'std.dbg'local ignored = require 'std.ignored'return { ------------------------------------------------------------------------------- --- does not yet restore well with session --- cannot navigate with C-w inside the DocsView --- it has a manual update mode, but which key to bind it to? { 'amrbashir/nvim-docs-view', keys = { { '<leader>tk', '<cmd>DocsViewToggle<cr>', mode = { 'n' }, desc = 'Toggle stable documentation panel.', }, }, cmd = 'DocsViewToggle', opts = { position = 'right', width = 42, }, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- --- look into demicolon.nvim for ,; repition { 'mawkler/refjump.nvim', dependencies = { }, keys = { ']r', '[r' }, opts = {}, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- --- this is pretty great! i just need better binds and tell which key about them { 'chrisgrieser/nvim-rulebook', keys = { { '<leader>ri', function () require 'rulebook'.ignoreRule() end }, { '<leader>rl', function () require 'rulebook'.lookupRule() end }, { '<leader>ry', function () require 'rulebook'.yankDiagnosticCode() end }, { '<leader>sf', function () require 'rulebook'.suppressFormatter() end, mode = { 'n', 'x' } }, }, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- --- this plugin has some sick visual text formatting chops. check them out some time. { 'Wansmer/symbol-usage.nvim', event = 'LspAttach', opts = { hi = { link = 'LineNr' }, vt_position = 'end_of_line', request_pending_text = false, disable = { filetypes = ignored.filetypes, }, log = { enabled = dbg.get() }, }, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- --- Pretty NICE! --- fix highlights to match nugu. { 'dnlhc/glance.nvim', event = 'LspAttach', keys = { { '<Leader>gd', '<cmd>Glance definitions<cr>', { silent = true }, desc = 'Peek definitions', mode = 'n' }, { '<Leader>gr', '<cmd>Glance references<cr>', { silent = true }, desc = 'Peek refernces', mode = 'n' }, { '<Leader>gy', '<cmd>Glance type_definitions<cr>', { silent = true }, desc = 'Peek type definitions', mode = 'n' }, { '<Leader>gm', '<cmd>Glance implementations<cr>', { silent = true }, desc = 'Peek implementations', mode = 'n' }, }, config = true, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- { 'emmanueltouzery/decisive.nvim', config = function () require 'decisive'.setup {} end, ft = { 'csv' }, keys = { { '<leader>cca', ":lua require('decisive').align_csv({})<cr>", { silent = true }, desc = 'Align CSV', mode = 'n' }, { '<leader>ccA', ":lua require('decisive').align_csv_clear({})<cr>", { silent = true }, desc = 'Align CSV clear', mode = 'n' }, { '[c', ":lua require('decisive').align_csv_prev_col()<cr>", { silent = true }, desc = 'Align CSV prev col', mode = 'n' }, { ']c', ":lua require('decisive').align_csv_next_col()<cr>", { silent = true }, desc = 'Align CSV next col', mode = 'n' }, }, enabled = FUCK_STABILITY, }, ------------------------------------------------------------------------------- --- fix nugu highlights (also snippet highlights) --- configure with custom snippets? { 'saghen/blink.cmp', lazy = false, -- lazy loading handled internally -- use a release tag to download pre-built binaries version = 'v0.*', ---@module 'blink.cmp' ---@type blink.cmp.Config opts = { -- 'default' for mappings similar to built-in completion -- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate) -- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept -- see the "default configuration" section below for full documentation on how to define -- your own keymap. keymap = { preset = 'default' }, highlight = { -- sets the fallback highlight groups to nvim-cmp's highlight groups -- useful for when your theme doesn't support blink.cmp -- will be removed in a future release, assuming themes add support use_nvim_cmp_as_default = true, }, -- set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font' -- adjusts spacing to ensure icons are aligned nerd_font_variant = 'normal', -- default list of enabled providers defined so that you can extend it -- elsewhere in your config, without redefining it, via `opts_extend` sources = { completion = { enabled_providers = { 'lsp', 'path', 'snippets', 'buffer' }, }, }, -- experimental auto-brackets support accept = { auto_brackets = { enabled = true } }, -- experimental signature help support trigger = { signature_help = { enabled = true } }, }, -- allows extending the enabled_providers array elsewhere in your config -- without having to redefine it opts_extend = { 'sources.completion.enabled_providers' }, }, -------------------------------------------------------------------------------}deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −47 text lines
-- FIXME: own thisreturn { 'mfussenegger/nvim-lint', commit = '968a35d54b3a4c1ce66609cf80b14d4ae44fe77f', ft = { 'lua', 'sh', 'systemd', 'editorconfig', 'yaml', }, opts = { linters_by_ft = { lua = { 'selene' }, sh = { 'shellcheck', 'dotenv_linter' }, systemd = { 'systemd-analyze' }, editorconfig = { 'editorconfig-checker' }, yaml = { 'yq' }, }, linters = {}, }, config = function ( _, opts ) local lint = require 'lint' lint.linters_by_ft = opts.linters_by_ft for k, v in pairs( opts.linters ) do lint.linters[k] = v end ---@diagnostic disable-next-line: undefined-field local timer = assert( vim.uv.new_timer() ) local DEBOUNCE_MS = 500 local aug = vim.api.nvim_create_augroup( 'Lint', { clear = true } ) vim.api.nvim_create_autocmd( { 'BufWritePost' }, { group = aug, callback = function () local bufnr = vim.api.nvim_get_current_buf() timer:stop() timer:start( DEBOUNCE_MS, 0, vim.schedule_wrap( function () if vim.api.nvim_buf_is_valid( bufnr ) then vim.api.nvim_buf_call( bufnr, function () lint.try_lint( nil, { ignore_errors = true } ) end ) end end ) ) end, } ) end,}deleted file mode 100644+0 / −151 text lines
local map = require 'std.map'return { { 'booperlv/nvim-gomove', commit = '2b44ae7ac0804f4e3959228122f7c85bef1964e3', event = 'VeryLazy', config = function () local move = require 'gomove' move.setup { -- whether or not to map default key bindings, (true/false) map_defaults = false, -- whether or not to reindent lines moved vertically (true/false) reindent = true, -- whether or not to undojoin same direction moves (true/false) undojoin = true, -- whether to not to move past end column when moving blocks horizontally, (true/false) move_past_end_col = false, } -- default mappings in gomove set no options, but use old keymap api. -- recreating old defaults here: local options = { remap = true } -- i have tried using the lua functions directly for the commands below. -- the behaviour was slightly buggy in respects to block selections though. -- unsure why that is. -- NORMAL MOVE map.normal { description = 'Move character left', category = 'editing', keys = '<A-h>', options = options, command = '<Plug>GoNSMLeft', } map.normal { description = 'Move line down', category = 'editing', keys = '<A-j>', options = options, command = '<Plug>GoNSMDown', } map.normal { description = 'Move line up', category = 'editing', keys = '<A-k>', options = options, command = '<Plug>GoNSMUp', } map.normal { description = 'Move character right', category = 'editing', keys = '<A-l>', options = options, command = '<Plug>GoNSMRight', } -- VISUAL MOVE map.visual { description = 'Move block left', category = 'editing', keys = '<A-h>', options = options, command = '<Plug>GoVSMLeft', } map.visual { description = 'Move block down', category = 'editing', keys = '<A-j>', options = options, command = '<Plug>GoVSMDown', } map.visual { description = 'Move block up', category = 'editing', keys = '<A-k>', options = options, command = '<Plug>GoVSMUp', } map.visual { description = 'Move block right', category = 'editing', keys = '<A-l>', options = options, command = '<Plug>GoVSMRight', } -- NORMAL DUPLICATE map.normal { description = 'Duplicate character left', category = 'editing', keys = '<A-H>', options = options, command = '<Plug>GoNSDLeft', } map.normal { description = 'Duplicate line down', category = 'editing', keys = '<A-J>', options = options, command = '<Plug>GoNSDDown', } map.normal { description = 'Duplicate line up', category = 'editing', keys = '<A-K>', options = options, command = '<Plug>GoNSDUp', } map.normal { description = 'Duplicate character right', category = 'editing', keys = '<A-L>', options = options, command = '<Plug>GoNSDRight', } -- VISUAL DUPLICATE map.visual { description = 'Duplicate block left', category = 'editing', keys = '<A-H>', options = options, command = '<Plug>GoVSDLeft', } map.visual { description = 'Duplicate block down', category = 'editing', keys = '<A-J>', options = options, command = '<Plug>GoVSDDown', } map.visual { description = 'Duplicate block up', category = 'editing', keys = '<A-K>', options = options, command = '<Plug>GoVSDUp', } map.visual { description = 'Duplicate block right', category = 'editing', keys = '<A-L>', options = options, command = '<Plug>GoVSDRight', } end, },}deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −22 text lines
return { 'j-hui/fidget.nvim', version = 'v1.*', lazy = false, opts = { -- Options related to LSP progress subsystem progress = { suppress_on_insert = true, -- Suppress new messages while in insert mode }, -- Options related to notification subsystem notification = { override_vim_notify = true, -- Automatically override vim.notify() with Fidget -- Options related to the notification window and buffer window = { winblend = vim.o.winblend, -- Background color opacity in the notification window border = vim.g.border_style, -- Border around the notification window }, }, },}deleted file mode 100644+0 / −70 text lines
local map = require 'std.map'local icon = require 'std.icon'map.normal { description = 'Open parent directory in buffer.', category = 'files', keys = '-', command = function () require 'oil'.open() end,}map.normal { description = 'Open parent directory in a float.', category = 'files', keys = '--', command = function () require 'oil'.open_float() end,}return { 'stevearc/oil.nvim', lazy = false, version = '2.*', cmd = { 'Oil' }, opts = { -- default_file_explorer = true, -- Set to true to watch the filesystem for changes and reload oil -- experimental_watch_for_changes = true, skip_confirm_for_simple_edits = true, prompt_save_on_select_new_entry = false, delete_to_trash = true, columns = { 'icon' }, win_options = { cursorline = true, }, keymaps = { ['q'] = 'actions.close', ['<C-v>'] = 'actions.select_vsplit', ['<C-s>'] = 'actions.select_split', ['`'] = 'actions.tcd', ['~'] = '<cmd>edit $HOME<CR>', ['<F7>'] = 'actions.open_terminal', ['gd'] = { desc = 'Toggle detail view', callback = function () local oil = require 'oil' local config = require 'oil.config' if #config.columns == 1 then oil.set_columns { 'icon', 'permissions', 'size', { 'mtime', format = '%d/%m/%y %T' } } else oil.set_columns { 'icon' } end end, }, }, float = { max_width = 69, min_width = 69, border = vim.g.border_style, padding = 2, }, -- Configuration for the floating keymaps help window keymaps_help = { border = vim.g.border_style, }, view_options = { is_always_hidden = function ( name, bufnr ) return name == '..' end, show_hidden = true, }, },}deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −13 text lines
require 'bugabinga.health'.add_dependency{ name_of_executable = 'zig' } { name = 'TreeSitter CLI', name_of_executable = 'tree-sitter' } { name_of_executable = 'tar' } { name_of_executable = 'curl' }return { 'nvim-treesitter/nvim-treesitter', branch = 'main', lazy = false, build = ':TSUpdate', opts = {},}deleted file mode 100644+0 / −41 text lines
local map = require 'std.map'local ignored = require 'std.ignored'map.normal { description = 'Find cursor!', category = 'fun', keys = '<leader><leader>', command = function () require 'specs'.show_specs() end,}map.normal { description = 'Find cursor, for real!', category = 'fun', keys = '<leader><leader><leader>', command = function () require 'specs'.show_specs { width = 69, delay_ms = 69, inc_ms = 42 } end,}return { 'KevinSilvester/specs.nvim', commit = '8a108c8b37dec1b184a1d3d76c6cf867bfbe9636', lazy = false, opts = function () return { show_jumps = true, min_jump = 10, popup = { delay_ms = 10, -- delay before popup displays inc_ms = 10, -- time increments used for fade/resize effects blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend width = 10, winhl = 'Cursor', fader = require 'specs'.exp_fader, resizer = require 'specs'.shrink_resizer, }, ignore_filetypes = ignored.filetypes_kv, ignore_buftypes = ignored.buftypes_kv, } end,}deleted file mode 100644+0 / −565 text lines
---@diagnostic disable: param-type-mismatchlocal icon = require 'std.icon'local auto = require 'std.auto'local ignored = require 'std.ignored'local NEW_FILE = '~untitled~'return { { 'rebelot/heirline.nvim', version = '2.*', lazy = false, config = function () local heirline = require 'heirline' local conditions = require 'heirline.conditions' local utils = require 'heirline.utils' local nugu = require 'bugabinga.nugu.palette' heirline.load_colors( nugu ) auto 'reload_heirline_colors' { description = 'Reload dark/light nugu colors for Heirline', events = 'ColorScheme', command = function () utils.on_colorscheme( nugu ) end, } local vi_mode = { init = function ( self ) self.mode = vim.fn.mode( 1 ) -- :h mode() end, static = { mode_names = { n = icon.normal, no = icon.normal .. '?', nov = icon.normal .. '?', noV = icon.normal .. '?', ['no\22'] = icon.normal .. '?', niI = icon.normal .. 'i', niR = icon.normal .. 'r', niV = icon.normal .. 'v', nt = icon.normal .. 't', v = icon.visual, vs = icon.visual .. 's', V = icon.visual .. '_', Vs = icon.visual .. 's', ['\22'] = '^' .. icon.visual, ['\22s'] = '^' .. icon.visual, s = icon.select, S = icon.select .. '_', ['\19'] = '^' .. icon.select, i = icon.insert, ic = icon.insert .. 'c', ix = icon.insert .. 'x', R = icon.replace, Rc = icon.replace .. 'c', Rx = icon.replace .. 'x', Rv = icon.replace .. 'v', Rvc = icon.replace .. 'v', Rvx = icon.replace .. 'v', c = icon.command, cv = icon.command .. 'x', r = icon.pending, rm = icon.pending .. 'm', ['r?'] = icon.pending .. '?', ['!'] = icon.exclaim, t = icon.terminal, }, mode_colors = { n = 'ui_normal', i = 'ui_accent', v = 'ui_important_global', V = 'ui_important_global', ['\22'] = 'ui_important_global', c = 'ui_important_global', s = 'ui_important_global', S = 'ui_important_global', ['\19'] = 'ui_important_global', R = 'ui_important_global', r = 'ui_important_global', ['!'] = 'ui_important_global', t = 'ui_important_global', }, }, provider = function ( self ) local mode_name = self.mode_names[self.mode] return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) ' end, hl = function ( self ) local mode = self.mode:sub( 1, 1 ) -- get only the first mode character return { fg = self.mode_colors[mode], bold = true } end, update = { 'ModeChanged', pattern = '*:*', callback = vim.schedule_wrap( function () vim.cmd.redrawstatus() end ), }, } local file_icon = { init = function ( self ) local filename = self.filename local extension = vim.fn.fnamemodify( filename, ':e' ) self.icon = MiniIcons.get( 'file', filename ) end, provider = function ( self ) return self.icon and (self.icon .. ' ') end, hl = 'DefaultIcon', } local file_name = { init = function ( self ) self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) ) if self.lfilename == '' then self.lfilename = NEW_FILE end end, flexible = 2, { provider = function ( self ) return self.lfilename end, }, { provider = function ( self ) return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) ) end, }, } local file_flags = { { condition = function () return vim.bo.modified end, provider = string.format( ' %s ', icon.modified ), hl = 'Comment', }, { condition = function () return not vim.bo.modifiable or vim.bo.readonly end, provider = string.format( ' %s ', icon.lock ), hl = 'ErrorMsg', }, } local file_name_block = { init = function ( self ) self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) ) end, file_icon, { provider = ' ' }, file_name, file_flags, { provider = '%<' }, -- this means that the statusline is cut here when there's not enough space } local file_type = { provider = function () return icon.file .. ' ' .. string.lower( vim.bo.filetype ) end, } local file_encoding = { provider = function () local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc' return enc ~= 'utf-8' and enc:upper() end, } local file_format = { static = { dos = icon.newline .. icon.carriage_return, unix = icon.newline, mac = icon.carriage_return, }, provider = function ( self ) local fileformat = vim.bo.fileformat return self[fileformat] end, } local file_size = { provider = function () -- stackoverflow, compute human readable file size -- i want to see vim opening a 1EiB file local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' } local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) ) fsize = (fsize < 0 and 0) or fsize if fsize < 1024 then return fsize .. suffix[1] end local i = math.floor( (math.log( fsize ) / math.log( 1024 )) ) return string.format( '%.2g%s', fsize / math.pow( 1024, i ), suffix[i + 1] ) end, } local file_last_modified = { provider = function () local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) ) if ftime > 0 then local timeago = require 'std.timeago' return timeago.format( ftime ) end end, } local lsp_active = { condition = conditions.lsp_attached, update = { 'LspAttach', 'LspDetach', 'BufEnter', 'BufLeave' }, provider = function () local names = {} for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do table.insert( names, client.name ) end return icon.lsp .. ' ' .. table.concat( names, ' ' ) end, } local diagnostic = { condition = conditions.has_diagnostics, static = { error_icon = icon.error, warn_icon = icon.warn, info_icon = icon.info, hint_icon = icon.hint, }, init = function ( self ) self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR } ) self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN } ) self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT } ) self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO } ) end, update = { 'DiagnosticChanged', 'BufEnter', 'BufLeave' }, { provider = function ( self ) -- 0 is just another output, we can decide to print it or not! return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ') end, hl = 'DiagnosticError', }, { provider = function ( self ) return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ') end, hl = 'DiagnosticWarn', }, { provider = function ( self ) return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ') end, hl = 'DiagnosticInfo', }, { provider = function ( self ) return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints) end, hl = 'DiagnosticHint', }, } local is_svn_repo = function () local svn_dir = vim.fs.find( '.svn', { upward = true, stop = vim.uv.os_homedir(), path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ), type = 'directory', } ) return not vim.tbl_isempty( svn_dir ) end local svn_get_relative_url = function () -- FIXME: replace with vim.system local job = require 'plenary.job' local relative_url = { '[ERR]' } job :new { command = 'svn', args = { 'info', '--show-item', 'relative-url', '--no-newline' }, on_exit = function ( current_job, exit_code ) if exit_code == 0 then relative_url = current_job:result() end end, } :sync() return relative_url[1] end local svn = { condition = is_svn_repo, update = 'BufEnter', init = function ( self ) self.relative_url = svn_get_relative_url() end, { provider = function ( self ) return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url end, }, } local git = { condition = conditions.is_git_repo, init = function ( self ) self.status_dict = vim.b.minidiff_summary end, { provider = function ( self ) return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.source_name .. ' ' end, }, { provider = function ( self ) local count = self.status_dict.add or 0 return count > 0 and (icon.diff_add .. ' ' .. count .. ' ') end, hl = 'DiffAdd', }, { provider = function ( self ) local count = self.status_dict.delete or 0 return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ') end, hl = 'DiffDelete', }, { provider = function ( self ) local count = self.status_dict.change or 0 return count > 0 and (icon.diff_change .. ' ' .. count .. ' ') end, hl = 'DiffChange', }, } local work_dir = { init = function ( self ) self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local'] or '') .. ' ' .. icon.global .. ' ' self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' ) end, flexible = 1, { provider = function ( self ) return self.icon .. self.cwd end, }, { provider = function ( self ) local cwd = vim.fn.pathshorten( self.cwd ) return self.icon .. cwd end, }, { provider = '', }, } local help_file_name = { condition = function () return vim.bo.filetype == 'help' end, provider = function () local filename = vim.api.nvim_buf_get_name( 0 ) return vim.fn.fnamemodify( filename, ':t' ) end, hl = 'Question', } local terminal_name = { provider = function () local name, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:', '' ) local basename = vim.fs.basename( name ) return icon.terminal .. ' ' .. (basename or 'noname') end, hl = 'Bold', } local macro_recording = { condition = function () return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0 end, provider = icon.macro .. ' ', hl = 'PreProc', utils.surround( { '░▒▓ ', ' ▓▒░' }, nil, { provider = function () return vim.fn.reg_recording() end, hl = 'Bold', } ), update = { 'RecordingEnter', 'RecordingLeave', }, } local align = { provider = '%=' } local space = { provider = ' ' } local default_statusline = { vi_mode, macro_recording, work_dir, space, git, svn, align, diagnostic, align, space, space, lsp_active, space, file_encoding, space, file_format, space, file_type, space, file_size, space, file_last_modified, } local special_statusline = { condition = function () return conditions.buffer_matches { buftype = ignored.buftypes, filetype = ignored.filetypes, } end, file_type, space, help_file_name, align, } local terminal_statusline = { condition = function () return conditions.buffer_matches { buftype = { 'terminal' } } end, { condition = conditions.is_active, vi_mode, space }, file_type, space, terminal_name, align, } local inactive_statusline = { condition = conditions.is_not_active, file_type, space, file_name, align, } local statuslines = { hl = function () if conditions.is_active() then return 'StatusLine' else return 'StatusLineNC' end end, fallthrough = false, special_statusline, terminal_statusline, inactive_statusline, default_statusline, } local winbars = { hl = function () if conditions.is_active() then return 'Winbar' else return 'WinbarNC' end end, fallthrough = false, { condition = function () return conditions.buffer_matches { buftype = { 'terminal' } } end, space, file_type, space, terminal_name, }, { file_name_block, }, } local tabpage = { provider = function ( self ) return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T' end, hl = function ( self ) if self.is_active then return 'TabLineSel' else return 'TabLine' end end, } local tab_pages = { { provider = '%=' }, utils.make_tablist( tabpage ), } heirline.setup { statusline = statuslines, winbar = winbars, tabline = tab_pages, opts = { colors = nugu, disable_winbar_cb = function ( args ) return conditions.buffer_matches( { buftype = ignored.buftypes, filetype = ignored.filetypes, }, args.buf ) end, }, } end, },}deleted file mode 100644+0 / −48 text lines
return { 'kylechui/nvim-surround', event = 'VeryLazy', version = '2.*', opts = { -- setting key maps for this plugin is pretty intricate. -- normally I would set them myself, but in this case not... keymaps = { insert = '<C-g>s', insert_line = '<C-g>S', normal = 'sa', normal_line = 'sA', normal_cur = 'sc', normal_cur_line = 'sC', visual = 'sa', visual_line = 'sA', delete = 'sd', change = 'sr', change_line = 'sR', }, surrounds = { ['R'] = { add = { "require '", "'" }, find = "require%b''", --FIXME: find out how to craft these, those cannot be correct right now delete = "^(require')().-(')()$", change = { target = "^(require')().-('()$", }, }, ['P'] = { add = { 'vim.print(', ')' }, find = 'vim%.print%b()', delete = '^(vim%.print%()().-(%))()$', change = { target = '^(vim%.print%()().-(%))()$', }, }, }, }, dependencies = { 'nvim-treesitter/nvim-treesitter', },}deleted file mode 100644+0 / −58 text lines
return { 'nvim-treesitter/nvim-treesitter-textobjects', branch = 'master', event = 'VeryLazy', dependencies = 'nvim-treesitter/nvim-treesitter', config = function () ---@diagnostic disable-next-line: missing-fields require 'nvim-treesitter.configs'.setup { textobjects = { select = { enable = true, lookahead = true, keymaps = { ['af'] = { query = '@call.outer', desc = 'outer function call' }, ['if'] = { query = '@call.inner', desc = 'inner function call' }, ['am'] = { query = '@function.outer', desc = 'outer function definition' }, ['im'] = { query = '@function.inner', desc = 'inner function definition' }, ['ai'] = { query = '@conditional.outer', desc = 'outer conditional' }, ['ii'] = { query = '@conditional.inner', desc = 'inner conditional' }, ['aa'] = { query = '@parameter.outer', desc = 'outer parameter' }, ['ia'] = { query = '@parameter.inner', desc = 'inner parameter' }, ['ac'] = { query = '@comment.outer', desc = 'outer comment' }, ['ic'] = { query = '@comment.inner', desc = 'inner comment' }, ['aS'] = { query = '@statement.outer', desc = 'outer statement' }, ['iS'] = { query = '@statement.inner', desc = 'inner statement' }, -- Nushell only ['aP'] = { query = '@pipeline.outer', desc = 'outer pipeline' }, ['iP'] = { query = '@pipeline.inner', desc = 'inner pipeline' }, }, selection_modes = { ['@parameter.outer'] = 'v', ['@function.outer'] = 'v', ['@class.outer'] = '<c-v>', ['@scope'] = 'v', }, include_surroundig_whitespace = true, }, move = { enable = true, set_jumps = true, goto_next = { [']m'] = { query = '@function.outer', desc = 'goto next function definition' }, }, goto_previous = { ['[m'] = { query = '@function.outer', desc = 'goto previous function definition' }, }, }, }, } end,}deleted file mode 100644+0 / −37 text lines
local map = require 'std.map'map.normal { description = 'Toggle Tree Join/Split', category = 'editing', keys = '<leader>j', command = function () prequire 'treesj'.toggle { split = { recursive = false } } end,}map.normal { description = 'Join Tree', category = 'editing', keys = '<leader>jj', command = function () prequire 'treesj'.join() end,}map.normal { description = 'Split Tree', category = 'editing', keys = '<leader>js', command = function () prequire 'treesj'.split() end,}return { 'Wansmer/treesj', dependencies = { 'nvim-treesitter/nvim-treesitter' }, opts = { use_default_keymaps = false, max_join_length = 360, },}deleted file mode 100644+0 / −15 text lines
new file mode 100644+37 / −0 text lines
local puk = require 'std.puk'local map = require 'std.map'local ignored = require 'std.ignored'map.normal { description = 'Find cursor!', category = 'fun', keys = '<leader><leader>', command = function () require 'specs'.show_specs() end,}map.normal { description = 'Find cursor, for real!', category = 'fun', keys = '<leader><leader><leader>', command = function () require 'specs'.show_specs { width = 69, delay_ms = 69, inc_ms = 42 } end,}puk.defer 'specs' (function(specs) specs.setup { show_jumps = true, min_jump = 10, popup = { delay_ms = 10, -- delay before popup displays inc_ms = 10, -- time increments used for fade/resize effects blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend width = 10, winhl = 'Cursor', fader = specs.exp_fader, resizer = specs.shrink_resizer, }, ignore_filetypes = ignored.filetypes_kv, ignore_buftypes = ignored.buftypes_kv, }end)new file mode 100644+26 / −0 text lines
local puk = require 'std.puk'local map = require 'std.map'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()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 splitjoin.toggle() end end,}new file mode 100644+556 / −0 text lines
local puk = require 'std.puk'local icon = require 'std.icon'local auto = require 'std.auto'local ignored = require 'std.ignored'local NEW_FILE = '~untitled~'local heirline = puk 'heirline'local conditions = require 'heirline.conditions'local utils = require 'heirline.utils'local nugu = require 'bugabinga.nugu.palette'heirline.load_colors( nugu )auto 'reload_heirline_colors' { description = 'Reload dark/light nugu colors for Heirline', events = 'ColorScheme', command = function () utils.on_colorscheme( nugu ) end,}local vi_mode = { init = function ( self ) self.mode = vim.fn.mode( 1 ) -- :h mode() end, static = { mode_names = { n = icon.normal, no = icon.normal .. '?', nov = icon.normal .. '?', noV = icon.normal .. '?', ['no\22'] = icon.normal .. '?', niI = icon.normal .. 'i', niR = icon.normal .. 'r', niV = icon.normal .. 'v', nt = icon.normal .. 't', v = icon.visual, vs = icon.visual .. 's', V = icon.visual .. '_', Vs = icon.visual .. 's', ['\22'] = '^' .. icon.visual, ['\22s'] = '^' .. icon.visual, s = icon.select, S = icon.select .. '_', ['\19'] = '^' .. icon.select, i = icon.insert, ic = icon.insert .. 'c', ix = icon.insert .. 'x', R = icon.replace, Rc = icon.replace .. 'c', Rx = icon.replace .. 'x', Rv = icon.replace .. 'v', Rvc = icon.replace .. 'v', Rvx = icon.replace .. 'v', c = icon.command, cv = icon.command .. 'x', r = icon.pending, rm = icon.pending .. 'm', ['r?'] = icon.pending .. '?', ['!'] = icon.exclaim, t = icon.terminal, }, mode_colors = { n = 'ui_normal', i = 'ui_accent', v = 'ui_important_global', V = 'ui_important_global', ['\22'] = 'ui_important_global', c = 'ui_important_global', s = 'ui_important_global', S = 'ui_important_global', ['\19'] = 'ui_important_global', R = 'ui_important_global', r = 'ui_important_global', ['!'] = 'ui_important_global', t = 'ui_important_global', }, }, provider = function ( self ) local mode_name = self.mode_names[self.mode] return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) ' end, hl = function ( self ) local mode = self.mode:sub( 1, 1 ) -- get only the first mode character return { fg = self.mode_colors[mode], bold = true } end, update = { 'ModeChanged', pattern = '*:*', callback = vim.schedule_wrap( function () vim.cmd.redrawstatus() end ), },}local file_icon = { init = function ( self ) local filename = self.filename local extension = vim.fn.fnamemodify( filename, ':e' ) self.icon = MiniIcons.get( 'file', filename ) end, provider = function ( self ) return self.icon and (self.icon .. ' ') end, hl = 'DefaultIcon',}local file_name = { init = function ( self ) self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) ) if self.lfilename == '' then self.lfilename = NEW_FILE end end, flexible = 2, { provider = function ( self ) return self.lfilename end, }, { provider = function ( self ) return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) ) end, },}local file_flags = { { condition = function () return vim.bo.modified end, provider = string.format( ' %s ', icon.modified ), hl = 'Comment', }, { condition = function () return not vim.bo.modifiable or vim.bo.readonly end, provider = string.format( ' %s ', icon.lock ), hl = 'ErrorMsg', },}local file_name_block = { init = function ( self ) self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) ) end, file_icon, { provider = ' ' }, file_name, file_flags, { provider = '%<' }, -- this means that the statusline is cut here when there's not enough space}local file_type = { provider = function () return icon.file .. ' ' .. string.lower( vim.bo.filetype ) end,}local file_encoding = { provider = function () local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc' return enc ~= 'utf-8' and enc:upper() end,}local file_format = { static = { dos = icon.newline .. icon.carriage_return, unix = icon.newline, mac = icon.carriage_return, }, provider = function ( self ) local fileformat = vim.bo.fileformat return self[fileformat] end,}local file_size = { provider = function () -- stackoverflow, compute human readable file size -- i want to see vim opening a 1EiB file local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' } local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) ) fsize = (fsize < 0 and 0) or fsize if fsize < 1024 then return fsize .. suffix[1] end local i = math.floor( (math.log( fsize ) / math.log( 1024 )) ) return string.format( '%.2g%s', fsize / math.pow( 1024, i ), suffix[i + 1] ) end,}local file_last_modified = { provider = function () local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) ) if ftime > 0 then local timeago = require 'std.timeago' return timeago.format( ftime ) end end,}local lsp_active = { condition = conditions.lsp_attached, update = { 'LspAttach', 'LspDetach', 'BufEnter', 'BufLeave' }, provider = function () local names = {} for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do table.insert( names, client.name ) end return icon.lsp .. ' ' .. table.concat( names, ' ' ) end,}local diagnostic = { condition = conditions.has_diagnostics, static = { error_icon = icon.error, warn_icon = icon.warn, info_icon = icon.info, hint_icon = icon.hint, }, init = function ( self ) self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR } ) self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN } ) self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT } ) self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO } ) end, update = { 'DiagnosticChanged', 'BufEnter', 'BufLeave' }, { provider = function ( self ) -- 0 is just another output, we can decide to print it or not! return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ') end, hl = 'DiagnosticError', }, { provider = function ( self ) return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ') end, hl = 'DiagnosticWarn', }, { provider = function ( self ) return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ') end, hl = 'DiagnosticInfo', }, { provider = function ( self ) return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints) end, hl = 'DiagnosticHint', },}local is_svn_repo = function () local svn_dir = vim.fs.find( '.svn', { upward = true, stop = vim.uv.os_homedir(), path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ), type = 'directory', } ) return not vim.tbl_isempty( svn_dir )endlocal svn_get_relative_url = function () -- FIXME: replace with vim.system local job = require 'plenary.job' local relative_url = { '[ERR]' } job :new { command = 'svn', args = { 'info', '--show-item', 'relative-url', '--no-newline' }, on_exit = function ( current_job, exit_code ) if exit_code == 0 then relative_url = current_job:result() end end, } :sync() return relative_url[1]endlocal svn = { condition = is_svn_repo, update = 'BufEnter', init = function ( self ) self.relative_url = svn_get_relative_url() end, { provider = function ( self ) return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url end, },}local git = { condition = conditions.is_git_repo, init = function ( self ) self.status_dict = vim.b.minidiff_summary end, { provider = function ( self ) return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.source_name .. ' ' end, }, { provider = function ( self ) local count = self.status_dict.add or 0 return count > 0 and (icon.diff_add .. ' ' .. count .. ' ') end, hl = 'DiffAdd', }, { provider = function ( self ) local count = self.status_dict.delete or 0 return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ') end, hl = 'DiffDelete', }, { provider = function ( self ) local count = self.status_dict.change or 0 return count > 0 and (icon.diff_change .. ' ' .. count .. ' ') end, hl = 'DiffChange', },}local work_dir = { init = function ( self ) self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local'] or '') .. ' ' .. icon.global .. ' ' self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' ) end, flexible = 1, { provider = function ( self ) return self.icon .. self.cwd end, }, { provider = function ( self ) local cwd = vim.fn.pathshorten( self.cwd ) return self.icon .. cwd end, }, { provider = '', },}local help_file_name = { condition = function () return vim.bo.filetype == 'help' end, provider = function () local filename = vim.api.nvim_buf_get_name( 0 ) return vim.fn.fnamemodify( filename, ':t' ) end, hl = 'Question',}local terminal_name = { provider = function () local name, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:', '' ) local basename = vim.fs.basename( name ) return icon.terminal .. ' ' .. (basename or 'noname') end, hl = 'Bold',}local macro_recording = { condition = function () return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0 end, provider = icon.macro .. ' ', hl = 'PreProc', utils.surround( { '░▒▓ ', ' ▓▒░' }, nil, { provider = function () return vim.fn.reg_recording() end, hl = 'Bold', } ), update = { 'RecordingEnter', 'RecordingLeave', },}local align = { provider = '%=' }local space = { provider = ' ' }local default_statusline = { vi_mode, macro_recording, work_dir, space, git, svn, align, diagnostic, align, space, space, lsp_active, space, file_encoding, space, file_format, space, file_type, space, file_size, space, file_last_modified,}local special_statusline = { condition = function () return conditions.buffer_matches { buftype = ignored.buftypes, filetype = ignored.filetypes, } end, file_type, space, help_file_name, align,}local terminal_statusline = { condition = function () return conditions.buffer_matches { buftype = { 'terminal' } } end, { condition = conditions.is_active, vi_mode, space }, file_type, space, terminal_name, align,}local inactive_statusline = { condition = conditions.is_not_active, file_type, space, file_name, align,}local statuslines = { hl = function () if conditions.is_active() then return 'StatusLine' else return 'StatusLineNC' end end, fallthrough = false, special_statusline, terminal_statusline, inactive_statusline, default_statusline,}local winbars = { hl = function () if conditions.is_active() then return 'Winbar' else return 'WinbarNC' end end, fallthrough = false, { condition = function () return conditions.buffer_matches { buftype = { 'terminal' } } end, space, file_type, space, terminal_name, }, { file_name_block, },}local tabpage = { provider = function ( self ) return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T' end, hl = function ( self ) if self.is_active then return 'TabLineSel' else return 'TabLine' end end,}local tab_pages = { { provider = '%=' }, utils.make_tablist( tabpage ),}heirline.setup { statusline = statuslines, winbar = winbars, tabline = tab_pages, opts = { colors = nugu, disable_winbar_cb = function ( args ) return conditions.buffer_matches( { buftype = ignored.buftypes, filetype = ignored.filetypes, }, args.buf ) end, },}new file mode 100644+25 / −0 text lines
local puk = require 'std.puk'puk.defer 'nvim-surround' (function(surround) surround.setup { -- setting key maps for this plugin is pretty intricate. -- normally I would set them myself, but in this case not... keymaps = { insert = '<C-g>s', insert_line = '<C-g>S', normal = 'sa', normal_line = 'sA', normal_cur = 'sc', normal_cur_line = 'sC', visual = 'sa', visual_line = 'sA', delete = 'sd', change = 'sr', change_line = 'sR', }, }end)new file mode 100644+109 / −0 text lines
local puk = require 'std.puk'local map = require 'std.map'local textobject_select_keymaps = { ['af'] = { query = '@call.outer', description = 'outer function call' }, ['if'] = { query = '@call.inner', description = 'inner function call' }, ['am'] = { query = '@function.outer', description = 'outer function definition' }, ['im'] = { query = '@function.inner', description = 'inner function definition' }, ['ai'] = { query = '@conditional.outer', description = 'outer conditional' }, ['ii'] = { query = '@conditional.inner', description = 'inner conditional' }, ['aa'] = { query = '@parameter.outer', description = 'outer parameter' }, ['ia'] = { query = '@parameter.inner', description = 'inner parameter' }, ['ac'] = { query = '@comment.outer', description = 'outer comment' }, ['ic'] = { query = '@comment.inner', description = 'inner comment' },}for keys, maps in pairs(textobject_select_keymaps) do map.visual.operator_pending { description = maps.description, category = 'operator', keys = keys, command = function() require 'nvim-treesitter-textobjects.select'.select_textobject(maps.query, 'textobjects') end, }endmap.normal { description = 'swap inner parameter', category = 'operator', keys = '<M-l>', command = function() require 'nvim-treesitter-textobjects.swap'.swap_next '@parameter.inner' end,}map.normal { description = 'swap outer parameter', category = 'operator', keys = '<M-h>', command = function() require 'nvim-treesitter-textobjects.swap'.swap_previous '@parameter.outer' end,}local textobject_move_keymaps = { ['m'] = { query = '@function.outer', description = 'to %s function definition' }, ['i'] = { query = '@conditional.outer', description = 'to %s conditional' }, ['a'] = { query = '@parameter.outer', description = 'to %s parameter' },}for keys, maps in pairs(textobject_move_keymaps) do map.normal.visual.operator_pending { description = string.format(maps.description, 'next'), category = 'operator', keys = ']' .. keys, command = function() require 'nvim-treesitter-textobjects.move'.goto_next(maps.query, 'textobjects') end, } map.normal.visual.operator_pending { description = string.format(maps.description, 'previous'), category = 'operator', keys = '[' .. keys, command = function() require 'nvim-treesitter-textobjects.move'.goto_previous(maps.query, 'textobjects') end, }endpuk.defer 'nvim-treesitter-textobjects' (function(textobjects) textobjects.setup { select = { -- Automatically jump forward to textobj, similar to targets.vim lookahead = true, -- You can choose the select mode (default is charwise 'v') -- -- Can also be a function which gets passed a table with the keys -- * query_string: eg '@function.inner' -- * method: eg 'v' or 'o' -- and should return the mode ('v', 'V', or '<c-v>') or a table -- mapping query_strings to modes. selection_modes = { ['@parameter.outer'] = 'v', -- charwise ['@function.outer'] = 'V', -- linewise ['@class.outer'] = '<c-v>', -- blockwise }, -- If you set this to `true` (default is `false`) then any textobject is -- extended to include preceding or succeeding whitespace. Succeeding -- whitespace has priority in order to act similarly to eg the built-in -- `ap`. -- -- Can also be a function which gets passed a table with the keys -- * query_string: eg '@function.inner' -- * selection_mode: eg 'v' -- and should return true of false include_surrounding_whitespace = false, }, move = { -- whether to set jumps in the jumplist set_jumps = true, }, }end)+21 / −31 text lines
local puk = require 'std.puk'-- old code from nvim-treesitter master---- if config.auto_install then-- vim.api.nvim_create_autocmd('FileType', {-- callback = function(args)-- local buf = args.buf --- @type integer-- local ft = vim.bo[buf].filetype-- local lang = vim.treesitter.language.get_lang(ft) or ft-- if-- require('nvim-treesitter.parsers')[lang]-- and not vim.list_contains(M.installed_parsers(), lang)-- and not vim.list_contains(config.ignore_install, lang)-- then-- require('nvim-treesitter.install').install(lang, nil, function()-- -- Need to pcall since 'FileType' can be triggered multiple times-- -- per buffer-- pcall(vim.treesitter.start, buf, lang)-- end)-- end-- end,-- })-- endnew file mode 100644+13 / −0 text lines
+9 / −0 text lines
vim.validate { ['autocommand.command'] = {autocommand.events, {'string', 'table'} }, ['autocommand.command'] = {autocommand.command, { 'string', 'function'}, true}, ['autocommand.callback'] = {autocommand.callback, 'function', true}, ['autocommand.command'] = {autocommand.description, 'string', true}, ['autocommand.command'] = {autocommand.buffer, 'number', true}, ['autocommand.command'] = {autocommand.once, 'boolean', true}, ['autocommand.command'] = {autocommand.pattern, {'string', 'table'}, true}, }deleted file mode 100644+0 / −178 text lines
-- taken from https://gist.github.com/runiq/31aa5c4bf00f8e0843cd267880117201local _ = {}---Validates args for `throttle()` and `debounce()`.local function td_validate( fn, ms ) vim.validate { fn = { fn, 'f' }, ms = { ms, function ( ms ) return type( ms ) == 'number' and ms > 0 end, 'number > 0', }, }end--- Throttles a function on the leading edge. Automatically `schedule_wrap()`s.-----@param fn (function) Function to throttle--@param timeout (number) Timeout in ms--@returns (function, timer) throttled function and timer. Remember to call---`timer:close()` at the end or you will leak memory!function _.throttle_leading( fn, ms ) td_validate( fn, ms ) local timer = vim.loop.new_timer() local running = false local function wrapped_fn( ... ) if not running then timer:start( ms, 0, function () running = false end ) running = true pcall( vim.schedule_wrap( fn ), select( 1, ... ) ) end end return wrapped_fn, timerend--- Throttles a function on the trailing edge. Automatically--- `schedule_wrap()`s.-----@param fn (function) Function to throttle--@param timeout (number) Timeout in ms--@param last (boolean, optional) Whether to use the arguments of the last---call to `fn` within the timeframe. Default: Use arguments of the first call.--@returns (function, timer) Throttled function and timer. Remember to call---`timer:close()` at the end or you will leak memory!function _.throttle_trailing( fn, ms, last ) td_validate( fn, ms ) local timer = vim.loop.new_timer() local running = false local wrapped_fn if not last then function wrapped_fn( ... ) if not running then local argv = { ... } local argc = select( '#', ... ) timer:start( ms, 0, function () running = false pcall( vim.schedule_wrap( fn ), unpack( argv, 1, argc ) ) end ) running = true end end else local argv, argc function wrapped_fn( ... ) argv = { ... } argc = select( '#', ... ) if not running then timer:start( ms, 0, function () running = false pcall( vim.schedule_wrap( fn ), unpack( argv, 1, argc ) ) end ) running = true end end end return wrapped_fn, timerend--- Debounces a function on the leading edge. Automatically `schedule_wrap()`s.-----@param fn (function) Function to debounce--@param timeout (number) Timeout in ms--@returns (function, timer) Debounced function and timer. Remember to call---`timer:close()` at the end or you will leak memory!function _.debounce_leading( fn, ms ) td_validate( fn, ms ) local timer = vim.loop.new_timer() local running = false local function wrapped_fn( ... ) timer:start( ms, 0, function () running = false end ) if not running then running = true pcall( vim.schedule_wrap( fn ), select( 1, ... ) ) end end return wrapped_fn, timerend--- Debounces a function on the trailing edge. Automatically--- `schedule_wrap()`s.-----@param fn (function) Function to debounce--@param timeout (number) Timeout in ms--@param first (boolean, optional) Whether to use the arguments of the first---call to `fn` within the timeframe. Default: Use arguments of the last call.--@returns (function, timer) Debounced function and timer. Remember to call---`timer:close()` at the end or you will leak memory!function _.debounce_trailing( fn, ms, first ) td_validate( fn, ms ) local timer = vim.loop.new_timer() local wrapped_fn if not first then function wrapped_fn( ... ) local argv = { ... } local argc = select( '#', ... ) timer:start( ms, 0, function () pcall( vim.schedule_wrap( fn ), unpack( argv, 1, argc ) ) end ) end else local argv, argc function wrapped_fn( ... ) argv = argv or { ... } argc = argc or select( '#', ... ) timer:start( ms, 0, function () pcall( vim.schedule_wrap( fn ), unpack( argv, 1, argc ) ) end ) end end return wrapped_fn, timerend--- Test deferment methods (`{throttle,debounce}_{leading,trailing}()`).-----@param bouncer (string) Bouncer function to test--@param ms (number, optional) Timeout in ms, default 2000.--@param firstlast (bool, optional) Whether to use the 'other' fn call---strategy.function _.test_defer( bouncer, ms, firstlast ) local bouncers = { tl = _.throttle_leading, tt = _.throttle_trailing, dl = _.debounce_leading, dt = _.debounce_trailing, } local timeout = ms or 2000 local bounced = bouncers[bouncer]( function ( i ) vim.cmd( 'echom "' .. bouncer .. ': ' .. i .. '"' ) end, timeout, firstlast ) for i, _ in ipairs { 1, 2, 3, 4, 5 } do bounced( i ) vim.schedule( function () vim.cmd( 'echom ' .. i ) end ) vim.fn.call( 'wait', { 1000, 'v:false' } ) endendreturn _+5 / −4 text lines
'bigfile',+44 / −49 text lines
local debug = require 'std.dbg'local expand = function ( path ) return vim.fn.fnamemodify( path, ':p' ) endlocal expand = function(path) return vim.fn.fnamemodify(path, ':p') end---@param stop string? The last directory on the path to root, when to stop searching. if `nil`, the users home---@return string? # Directory, that contains the `markers` and lies on the path from `path` to `stop`. if not exists( stop ) then error( ('the stop directory %s does not exist!'):format( stop ) ) end if not exists(stop) then error(('the stop directory %s does not exist!'):format(stop)) end local cache_hit = cache_get( path, markers, stop ) local cache_hit = cache_get(path, markers, stop) debug.print( 'CACHE HIT', cache_hit ) debug.print( ('searching for markers reached the max traversal count for path %s !'):format( path ) ) if debug.get() then score.likelyhood = likelyhood end debug.print( 'found project root', project_root, directory_scores )---@return string? # The project root of the current buffer, or `nil`, if none could be determined.local function find_project_root( path, markers )local function find_project_root(path, markers) return find_root( path, join( default_markers, markers ) ) return find_root(path, join(default_markers, markers)) local cargo_crate_dir = find_project_root( path, markers ) local cargo_crate_dir = find_project_root(path, markers) vim.fs.joinpath( cargo_crate_dir, 'Cargo.toml' ), vim.fs.joinpath(cargo_crate_dir, 'Cargo.toml'), local result = vim.system( cmd, { text = true, } ):wait() local result = vim.system(cmd, { text = true, }):wait() cargo_workspace_root = vim.fs.normalize( json['workspace_root'] ) cargo_workspace_root = vim.fs.normalize(json['workspace_root'])local find_root_by_filetype = function ( path, filetype )local find_root_by_filetype = function(path, filetype)new file mode 100644+20 / −0 text lines
local load_pack = function ( plugin_name ) vim.validate( 'plugin_name', plugin_name, 'string' ) vim.cmd.packadd { plugin_name, bang = true } return require( plugin_name )endreturn setmetatable( { defer = function ( plugin_name ) return vim.schedule_wrap(function ( f ) f( load_pack( plugin_name ) ) end) end , }, { __call = function ( _, plugin_name ) return load_pack( plugin_name ) end, })+105 / −14 text lines
# TODO:# treesj for nushell# setup new nvim-treesitter and nvim-treesitter-textobjects# clean unspecified plugins# XXX use rss feeds of forges to find latest commit# TODO: reimplement in lua? let cache_path = nvim --headless --clean +'lua print(vim.fn.stdpath "cache")' +q | complete | get stderr print 'Installing plugins from puk.plugins.nuon.'# check online for fresh commits. Does not actually mutate or update anything.# updated plugin specs will be written to a new file.def 'main update' [] { let plugin_specs = open puk.plugins.nuon let updated = $plugin_specs | update commit { |spec| let fresh_commit = find-latest-commit $spec if ($fresh_commit != $spec.commit) { print $"Found fresh commit for ($spec.name):($fresh_commit)!" return $fresh_commit } return $spec.commit } if not ($plugin_specs == $updated) { $plugin_specs | merge $updated | to nuon --indent 2 | save --force puk.plugins.updated.nuon print "Written updated puk.plugins into puk.plugins.updated.nuon!" } else { print "Nothing to do." }}# deletes all existing plugins, that are NOT in the specs!def clean-plugins [ plugins_path: path # folder to install plugins into plugin_specs: list<any> # all known plugins] { ls $plugins_path | each { | row | let existing_plugin_name = $row.name | path basename if ( $plugin_specs | where name == $existing_plugin_name | is-empty) { print $"Found plugin, that is not part of the specs: ($existing_plugin_name)" rm --interactive --trash --recursive $row.name } }} $commit == $spec.commit return ($commit == $spec.commit)}def find-latest-commit [ spec: record # a plugin to install] { let feed = generate-commit-feed-url $spec let commit = match $spec.source { github => { # http get $feed | lines | parse --regex "Commit/(?<commit>[a-z0-9]+)" | first | get commit curl --silent --location $feed | lines | parse --regex "Commit/(?<commit>[a-z0-9]+)" | first | get commit }, codeberg => { 'TODO' }, srht => { 'TODO' }, _ => { error make { msg: 'unknown plugin source given' label: { text: 'dunno this one' span: (metadata $spec.source).span } } } } $commit}def generate-commit-feed-url [ spec: record # a plugin to install] { let url_format = match $spec.source { github => { 'https://github.com/{repo}/commits/{branch}.atom' }, codeberg => { 'TODO' }, srht => { 'TODO' }, _ => { error make { msg: 'unknown plugin source given' label: { text: 'dunno this one' span: (metadata $spec.source).span } } } } $spec | format pattern $url_format print $"($spec.name) already cached in ($archive_path)" run-external tar '--extract' '--file' $archive_path '--directory' $tmp_path '--strip-components=1'let allowed_shared_lib_type = match ( sys host | get name ) { $name if $name =~ 'Windows' => { 'dll' }, $name if $name =~ 'Linux' => { 'so' }, $name if $name =~ 'Mac' => { 'dylib' }, _ => { error make { msg: 'unknown operating system' } },}let allowed_filetypes = [ lua vim scm txt $allowed_shared_lib_type ] print $"Downloading ($spec.name)..." print $"Unpacking ($spec.name)..." print $"Installing ($spec.name)..."+305 / −40 text lines
# vim: ft=nu [name, source, repo, commit, build]; ## IMPORTANT ONES [nvim-treesitter, github, 'nvim-treesitter/nvim-treesitter', "fc940eaf106981a92829518e977e46ad4f306472", null], [nvim-treesitter-textobjects, github, 'nvim-treesitter/nvim-treesitter-textobjects', "e0a7b5a6b7f18a5d508d05ca8853273db7bcbe50", null], [nvim-ts-autotag, github, 'windwp/nvim-ts-autotag', "e239a560f338be31337e7abc3ee42515daf23f5e", null], ["oil", github, 'stevearc/oil.nvim', "3c2de37accead0240fbe812f5ccdedfe0b973557", null], [blink, github, 'Saghen/blink.cmp', '180be7ba574033baa30fa8af0db4f59db7353584', [cargo build '--release'] ], [ivy, github, 'AdeAttwood/ivy.nvim', 'cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed', [cargo build '--release'] ], [nvim-surround, github, 'kylechui/nvim-surround', 'dca2e998ff26681ee422b92c6ed39b3d2908d8a9', null ], [neoterm, github, 'itmecho/neoterm.nvim', '23a780136892b1128485f20d772a771e528b651b', null ], ["conform", github, 'stevearc/conform.nvim', "6239d9986f51ca93ded99ecdb1af0e287eabb651", null], ["fidget", github, 'j-hui/fidget.nvim', "ef99df04a1c53a453602421bc0f756997edc8289", null], ["heirline", github, "rebelot/heirline.nvim", "cc359b628266cb9a84b2d71c883f2b99e16473a0", null], ["mini.bracketed", github, 'echasnovski/mini.bracketed', "833d66df6e0588222312a963780c6ec42ed7437d", null], ["mini.align", github, 'echasnovski/mini.align', "26111a737494bc39576ad67b52bbc2638ca23553", null], ["mini.cursorword",github, "echasnovski/mini.cursorword", "7d1b38a17834acbbc4feff8e42aedc4ed0c6ff06", null], ["mini.diff",github, "echasnovski/mini.diff", "24d46798be8a358d38d3adc92c7ebcbb2d6f67e0", null], ["mini.jump2d",github, "echasnovski/mini.jump2d", "b0963aa2ec80b4b1ed1c7f93d9c969bb3f4b65b6", null], ["mini.operators",github, "echasnovski/mini.operators", "35b12f54bd5acb860f4297fd6d12fd07b1b065e2", null], ['mini.move', github, 'echasnovski/mini.move', "4caa1c212f5ca3d1633d21cfb184808090ed74b1", null], ['mini.icons', github, 'echasnovski/mini.icons', "54686be7d58807906cb2c8c2216e0bf9c044f19a", null], [nvim-autopairs, github, 'windwp/nvim-autopairs', "f158dcb865c36f72c92358f87787dab2c272eaf3", null], [nvim-highlight-colors, github, 'brenoprata10/nvim-highlight-colors', "e967e2ba13fd4ca731b41d0e5cc1ac2edcd6e25e", null], [lint, github, 'mfussenegger/nvim-lint', "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f", null], [treesj, github, 'Wansmer/treesj', "03415ac60791d48e120a80d37e080744faf3ac15", null], ["virt-column", github, 'lukas-reineke/virt-column.nvim', "b87e3e0864211a32724a2ebf3be37e24e9e2fa99", null], ["specs", github, 'edluffy/specs.nvim', "2743e412bbe21c9d73954c403d01e8de7377890d", null], ## INLINING CANDIDATES ## INCUBATOR ["decisive", github, 'emmanueltouzery/decisive.nvim', "a7251adebccbc9c899cff39a524b20d06e2b78b5", null], ["glance", github, 'DNLHC/glance.nvim', "17ee84e29ac33e7e5d91609f675cee8477586bda", null], ["iswap", github, "mizlan/iswap.nvim", "e02cc91f2a8feb5c5a595767d208c54b6e3258ec", null], [docs-view, github, 'amrbashir/nvim-docs-view',"365593534e0acd762bfddce6e8313315ffa4fa36", null], [rulebook, github, 'chrisgrieser/nvim-rulebook', "528857a6e522396c2ded41cb24e694fb3f177429", null], ["symbol-usage", github, 'Wansmer/symbol-usage.nvim', "0f9b3da014b7e41559b643e7461fcabb2a7dc83a", null],] [ name, source, repo, branch, commit, build ]; [ lspconfig, github, neovim/nvim-lspconfig, master, "47f236c058f0511702286a21ba53bbf42abbd8a8", null ], [ nvim-treesitter, github, nvim-treesitter/nvim-treesitter, main, "75904bdff7da13cb54e05f53f25f25a924fe28a6", [ nvim, --headless, -u, NONE, "+\"packadd nvim-treesitter\"", "+\":TSUpdate", +q ] ], [ nvim-treesitter-textobjects, github, nvim-treesitter/nvim-treesitter-textobjects, main, "e0a7b5a6b7f18a5d508d05ca8853273db7bcbe50", null ], [ nvim-ts-autotag, github, windwp/nvim-ts-autotag, main, "1cca23c9da708047922d3895a71032bc0449c52d", null ], [ oil, github, "stevearc/oil.nvim", master, "9a59256c8e88b29d2150e99b5960b2f111e51f75", null ], [ "blink.cmp", github, "Saghen/blink.cmp", main, "765ee4cfb6d71e9d88a27f64f406251f3aa85fac", [ cargo, build, --release ] ], [ ivy, github, "AdeAttwood/ivy.nvim", "0.x", "cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed", [ cargo, build, --release ] ], [ nvim-surround, github, kylechui/nvim-surround, main, "9f0cb495f25bff32c936062d85046fbda0c43517", null ], [ neoterm, github, "itmecho/neoterm.nvim", main, "23a780136892b1128485f20d772a771e528b651b", null ], [ conform, github, "stevearc/conform.nvim", master, "02fd64fb3d4b18ec029c0e0683c3dc3ec6d2c5b8", null ], [ fidget, github, "j-hui/fidget.nvim", main, "e2a175c2abe2d4f65357da1c98c59a5cfb2b543f", null ], [ heirline, github, "rebelot/heirline.nvim", master, "cc359b628266cb9a84b2d71c883f2b99e16473a0", null ], [ "mini.splitjoin", github, "echasnovski/mini.splitjoin", main, "3e92f6764e770ba392325cad3a4497adcada695f", null ], [ "mini.clue", github, "echasnovski/mini.clue", main, "983a6c2e6231e94016343ea58921001ab2b74183", null ], [ "mini.bracketed", github, "echasnovski/mini.bracketed", main, "daf2bff8172bc84bfb934f765275618f5e7844a8", null ], [ "mini.align", github, "echasnovski/mini.align", main, "26111a737494bc39576ad67b52bbc2638ca23553", null ], [ "mini.cursorword", github, "echasnovski/mini.cursorword", main, "7d1b38a17834acbbc4feff8e42aedc4ed0c6ff06", null ], [ "mini.diff", github, "echasnovski/mini.diff", main, "5947342c95a9c2e24c659b54bb8ef083da4495ad", null ], [ "mini.jump2d", github, "echasnovski/mini.jump2d", main, "b0963aa2ec80b4b1ed1c7f93d9c969bb3f4b65b6", null ], [ "mini.operators", github, "echasnovski/mini.operators", main, "7cb4dc66c51a3d736d347bbc517dc73dc7d28888", null ], [ "mini.surround", github, "echasnovski/mini.splitjoin", main, "3e92f6764e770ba392325cad3a4497adcada695f", null ], [ "mini.move", github, "echasnovski/mini.move", main, "4caa1c212f5ca3d1633d21cfb184808090ed74b1", null ], [ "mini.icons", github, "echasnovski/mini.icons", main, "54686be7d58807906cb2c8c2216e0bf9c044f19a", null ], [ nvim-autopairs, github, windwp/nvim-autopairs, master, "b464658e9b880f463b9f7e6ccddd93fb0013f559", null ], [ nvim-highlight-colors, github, "brenoprata10/nvim-highlight-colors", main, "e967e2ba13fd4ca731b41d0e5cc1ac2edcd6e25e", null ], [ lint, github, mfussenegger/nvim-lint, master, "6b46370d02cd001509a765591a3ffc481b538794", null ], [ treesj, github, Wansmer/treesj, main, "03415ac60791d48e120a80d37e080744faf3ac15", null ], [ virt-column, github, "lukas-reineke/virt-column.nvim", master, "b87e3e0864211a32724a2ebf3be37e24e9e2fa99", null ], [ specs, github, "cxwx/specs.nvim", main, "dd82496f538b688cedf98429f89fef47ecb0625e", null ], [ glance, github, "DNLHC/glance.nvim", master, "04f7325d46eb3b450f2e2ba96d13dbf0b00aba0b", null ], [ docs-view, github, amrbashir/nvim-docs-view, master, "365593534e0acd762bfddce6e8313315ffa4fa36", null ], [ rulebook, github, chrisgrieser/nvim-rulebook, main, "e57a154b316a986a10d98f14acb2f822d0153029", null ], [ symbol-usage, github, "Wansmer/symbol-usage.nvim", main, "0f9b3da014b7e41559b643e7461fcabb2a7dc83a", null ], [ lazydev, github, "folke/lazydev.nvim", main, "f59bd14a852ca43db38e3662395354cb2a9b13e0", null ], [ wezterm-types, github, justinsgithub/wezterm-types, main, "1518752906ba3fac0060d9efab6e4d3ec15d4b5a", null ]]No final newline+2416 / −0 text lines
module completions { # Jujutsu (An experimental VCS) export extern jj [ --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') --version(-V) # Print version ] # Abandon a revision export extern "jj abandon" [ ...revisions: string # The revision(s) to abandon --summary(-s) # Do not print every abandoned commit on a separate line -r # Ignored (but lets you pass `-r` for consistency with other commands) --restore-descendants # Do not modify the content of the children of the abandoned commits --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') ] # Apply the reverse of a revision on top of another revision export extern "jj backout" [ --revisions(-r): string # The revision(s) to apply the reverse of --destination(-d): string # The revision to apply the reverse changes on top of --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') ] # Manage bookmarks export extern "jj bookmark" [ --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 bookmark export extern "jj bookmark create" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision ...names: string # The bookmarks to create --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') ] # Delete an existing bookmark and propagate the deletion to remotes on the next push export extern "jj bookmark delete" [ ...names: string # The bookmarks to delete --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') ] # Forget everything about a bookmark, including its local and remote targets export extern "jj bookmark forget" [ ...names: string # The bookmarks to forget --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') ] # List bookmarks and their targets export extern "jj bookmark list" [ --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default --conflicted(-c) # Show conflicted bookmarks only ...names: string # Show bookmarks whose local name matches --revisions(-r): string # Show bookmarks whose local targets are in the given revisions --template(-T): string # Render each bookmark using the given template --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 existing bookmarks to target revision export extern "jj bookmark move" [ --from: string # Move bookmarks from the given revisions --to: string # Move bookmarks to this revision --allow-backwards(-B) # Allow moving bookmarks backwards or sideways ...names: string # Move bookmarks matching the given name patterns --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') ] # Rename `old` bookmark name to `new` bookmark name export extern "jj bookmark rename" [ old: string # The old name of the bookmark new: string # The new name of the bookmark --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 or update a bookmark to point to a certain commit export extern "jj bookmark set" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision --allow-backwards(-B) # Allow moving the bookmark backwards or sideways ...names: string # The bookmarks to update --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') ] # Start tracking given remote bookmarks export extern "jj bookmark track" [ ...names: string # Remote bookmarks to track --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') ] # Stop tracking given remote bookmarks export extern "jj bookmark untrack" [ ...names: string # Remote bookmarks to untrack --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') ] # Manage bookmarks export extern "jj branch" [ --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 bookmark export extern "jj branch create" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision ...names: string # The bookmarks to create --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') ] # Delete an existing bookmark and propagate the deletion to remotes on the next push export extern "jj branch delete" [ ...names: string # The bookmarks to delete --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') ] # Forget everything about a bookmark, including its local and remote targets export extern "jj branch forget" [ ...names: string # The bookmarks to forget --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') ] # List bookmarks and their targets export extern "jj branch list" [ --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default --conflicted(-c) # Show conflicted bookmarks only ...names: string # Show bookmarks whose local name matches --revisions(-r): string # Show bookmarks whose local targets are in the given revisions --template(-T): string # Render each bookmark using the given template --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 existing bookmarks to target revision export extern "jj branch move" [ --from: string # Move bookmarks from the given revisions --to: string # Move bookmarks to this revision --allow-backwards(-B) # Allow moving bookmarks backwards or sideways ...names: string # Move bookmarks matching the given name patterns --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') ] # Rename `old` bookmark name to `new` bookmark name export extern "jj branch rename" [ old: string # The old name of the bookmark new: string # The new name of the bookmark --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 or update a bookmark to point to a certain commit export extern "jj branch set" [ --revision(-r): string # The bookmark's target revision --to: string # The bookmark's target revision --allow-backwards(-B) # Allow moving the bookmark backwards or sideways ...names: string # The bookmarks to update --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') ] # Start tracking given remote bookmarks export extern "jj branch track" [ ...names: string # Remote bookmarks to track --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') ] # Stop tracking given remote bookmarks export extern "jj branch untrack" [ ...names: string # Remote bookmarks to untrack --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') ] # Print contents of files in a revision export extern "jj cat" [ --revision(-r): string # The revision to get the file contents from ...paths: string # Paths to print --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') ] def "nu-complete jj chmod mode" [] { [ "n" "x" ] } # Sets or removes the executable bit for paths in the repo export extern "jj chmod" [ mode: string@"nu-complete jj chmod mode" --revision(-r): string # The revision to update ...paths: string # Paths to change the executable bit for --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') ] # Update the description and create a new change on top export extern "jj commit" [ --interactive(-i) # Interactively choose which changes to include in the first commit --tool: string # Specify diff editor to be used (implies --interactive) --message(-m): string # The change description to use (don't open editor) ...paths: string # Put these paths in the first commit --reset-author # Reset the author to the configured user --author: string # Set author to the provided string --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') ] # Manage config options export extern "jj config" [ --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') ] # Start an editor on a jj config file export extern "jj config edit" [ --user # Target the user-level config --repo # Target the repo-level config --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') ] # Get the value of a given config option. export extern "jj config get" [ name: string --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') ] # List variables set in config file, along with their values export extern "jj config list" [ name?: string # An optional name of a specific config option to look up --include-defaults # Whether to explicitly include built-in default values in the list --include-overridden # Allow printing overridden values --user # Target the user-level config --repo # Target the repo-level config --template(-T): string # Render each variable using the given template --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') ] # Print the path to the config file export extern "jj config path" [ --user # Target the user-level config --repo # Target the repo-level config --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') ] # Update config file to set the given option to a given value export extern "jj config set" [ name: string value: string --user # Target the user-level config --repo # Target the repo-level config --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') ] # Update config file to unset the given option export extern "jj config unset" [ name: string --user # Target the user-level config --repo # Target the repo-level config --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') ] # Low-level commands not intended for users export extern "jj debug" [ --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') ] # Rebuild commit index export extern "jj debug copy-detection" [ revision?: string # Show changes in this revision, compared to its parent(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') ] # Parse fileset expression export extern "jj debug fileset" [ path: string --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') ] # Show commit index stats export extern "jj debug index" [ --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') ] # Show information about the local working copy state export extern "jj debug local-working-copy" [ --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') ] def "nu-complete jj debug operation display" [] { [ "operation" "id" "view" "all" ] } # Show information about an operation and its view export extern "jj debug operation" [ operation?: string --display: string@"nu-complete jj debug operation display" --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') ] # Rebuild commit index export extern "jj debug reindex" [ --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') ] # Evaluate revset to full commit IDs export extern "jj debug revset" [ revision: string --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') ] # Trigger a snapshot in the op log export extern "jj debug snapshot" [ --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') ] # Parse a template export extern "jj debug template" [ template: string --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') ] # List the recursive entries of a tree export extern "jj debug tree" [ --revision(-r): string --id: string --dir: string ...paths: string --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') ] export extern "jj debug watchman" [ --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') ] # Check whether `watchman` is enabled and whether it's correctly installed export extern "jj debug watchman status" [ --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') ] export extern "jj debug watchman query-clock" [ --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') ] export extern "jj debug watchman query-changed-files" [ --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') ] export extern "jj debug watchman reset-clock" [ --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') ] # Show information about the working copy state export extern "jj debug working-copy" [ --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') ] # Update the change description or other metadata export extern "jj describe" [ ...revisions: string # The revision(s) whose description to edit -r # Ignored (but lets you pass `-r` for consistency with other commands) --message(-m): string # The change description to use (don't open editor) --stdin # Read the change description from stdin --no-edit # Don't open an editor --reset-author # Reset the author to the configured user --author: string # Set author to the provided string --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') ] # Compare file contents between two revisions export extern "jj diff" [ --revision(-r): string # Show changes in this revision, compared to its parent(s) --from: string # Show changes from this revision --to: string # Show changes to this revision ...paths: string # Restrict the diff to these paths --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space(-w) # Ignore whitespace when comparing lines --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines --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') ] # Touch up the content changes in a revision with a diff editor export extern "jj diffedit" [ --revision(-r): string # The revision to touch up --from: string # Show changes from this revision --to: string # Edit changes in this revision --tool: string # Specify diff editor to be used --restore-descendants # Preserve the content (not the diff) when rebasing descendants --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 export extern "jj duplicate" [ ...revisions: string # The revision(s) to duplicate -r # Ignored (but lets you pass `-r` for consistency with other commands) --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') ] # Sets the specified revision as the working-copy revision export extern "jj edit" [ revision: string # The commit to edit -r # Ignored (but lets you pass `-r` for consistency with other commands) --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') ] # Show how a change has evolved over time export extern "jj evolog" [ --revision(-r): string --limit(-n): string # Limit number of revisions to show -l: string --no-graph # Don't show the graph, show a flat list of revisions --template(-T): string # Render each revision using the given template --patch(-p) # Show patch compared to the previous version of this change --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] # File operations export extern "jj file" [ --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') ] # Show the source change for each line of the target file export extern "jj file annotate" [ path: string # the file to annotate --revision(-r): string # an optional revision to start at --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') ] def "nu-complete jj file chmod mode" [] { [ "n" "x" ] } # Sets or removes the executable bit for paths in the repo export extern "jj file chmod" [ mode: string@"nu-complete jj file chmod mode" --revision(-r): string # The revision to update ...paths: string # Paths to change the executable bit for --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') ] # List files in a revision export extern "jj file list" [ --revision(-r): string # The revision to list files in ...paths: string # Only list files matching these prefixes (instead of all files) --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') ] # Print contents of files in a revision export extern "jj file show" [ --revision(-r): string # The revision to get the file contents from ...paths: string # Paths to print --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') ] # Start tracking specified paths in the working copy export extern "jj file track" [ ...paths: string # Paths to track --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') ] # Stop tracking specified paths in the working copy export extern "jj file untrack" [ ...paths: string # Paths to untrack. They must already be ignored --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') ] # List files in a revision (DEPRECATED use `jj file list`) export extern "jj files" [ --revision(-r): string # The revision to list files in ...paths: string # Only list files matching these prefixes (instead of all files) --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') ] # Update files with formatting fixes or other changes export extern "jj fix" [ --source(-s): string # Fix files in the specified revision(s) and their descendants. If no revisions are specified, this defaults to the `revsets.fix` setting, or `reachable(@, mutable())` if it is not set ...paths: string # Fix only these paths --include-unchanged-files # Fix unchanged files in addition to changed ones. If no paths are specified, all files in the repo will be fixed --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') ] # Commands for working with Git remotes and the underlying Git repo export extern "jj git" [ --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 repo backed by a clone of a Git repo export extern "jj git clone" [ source: string # URL or path of the Git repo to clone destination?: string # Specifies the target directory for the Jujutsu repository clone. If not provided, defaults to a directory named after the last component of the source URL. The full directory path will be created if it doesn't exist --remote: string # Name of the newly created remote --colocate # Whether or not to colocate the Jujutsu repo with the git repo --depth: string # Create a shallow clone of the given depth --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') ] # Update the underlying Git repo with changes made in the repo export extern "jj git export" [ --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') ] # Fetch from a Git remote export extern "jj git fetch" [ --branch(-b): string # Fetch only some of the branches --remote: string # The remote to fetch from (only named remotes are supported, can be repeated) --all-remotes # Fetch from all remotes --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') ] # Update repo with changes made in the underlying Git repo export extern "jj git import" [ --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 Git backed repo export extern "jj git init" [ destination?: string # The destination directory where the `jj` repo will be created. If the directory does not exist, it will be created. If no directory is given, the current directory is used --colocate # Specifies that the `jj` repo should also be a valid `git` repo, allowing the use of both `jj` and `git` commands in the same directory --git-repo: string # Specifies a path to an **existing** git repository to be used as the backing git repo for the newly created `jj` repo --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') ] # Push to a Git remote export extern "jj git push" [ --remote: string # The remote to push to (only named remotes are supported) --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated) --all # Push all bookmarks (including deleted bookmarks) --tracked # Push all tracked bookmarks (including deleted bookmarks) --deleted # Push all deleted bookmarks --allow-empty-description # Allow pushing commits with empty descriptions --allow-private # Allow pushing commits that are private --revisions(-r): string # Push bookmarks pointing to these commits (can be repeated) --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated) --dry-run # Only display what will change on the remote --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') ] # Manage Git remotes export extern "jj git remote" [ --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') ] # Add a Git remote export extern "jj git remote add" [ remote: string # The remote's name url: string # The remote's URL --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') ] # List Git remotes export extern "jj git remote list" [ --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') ] # Remove a Git remote and forget its bookmarks export extern "jj git remote remove" [ remote: string # The remote's name --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') ] # Rename a Git remote export extern "jj git remote rename" [ old: string # The name of an existing remote new: string # The desired name for `old` --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') ] # Set the URL of a Git remote export extern "jj git remote set-url" [ remote: string # The remote's name url: string # The desired url for `remote` --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') ] # FOR INTERNAL USE ONLY Interact with git submodules export extern "jj git submodule" [ --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') ] # Print the relevant contents from .gitmodules. For debugging purposes only export extern "jj git submodule print-gitmodules" [ --revisions(-r): string # Read .gitmodules from the given revision --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') ] def "nu-complete jj help keyword" [] { [ "revsets" "tutorial" ] } # Print this message or the help of the given subcommand(s) export extern "jj help" [ ...command: string # Print help for the subcommand(s) --keyword(-k): string@"nu-complete jj help keyword" # Show help for keywords instead of commands --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 repo in the given directory export extern "jj init" [ destination?: string # The destination directory --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo --git-repo: string # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by --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') ] # Compare the changes of two commits export extern "jj interdiff" [ --from: string # Show changes from this revision --to: string # Show changes to this revision ...paths: string # Restrict the diff to these paths --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space(-w) # Ignore whitespace when comparing lines --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines --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') ] # Show revision history export extern "jj log" [ --revisions(-r): string # Which revisions to show ...paths: string # Show revisions modifying the given paths --reversed # Show revisions in the opposite order (older revisions first) --limit(-n): string # Limit number of revisions to show -l: string --no-graph # Don't show the graph, show a flat list of revisions --template(-T): string # Render each revision using the given template --patch(-p) # Show patch --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] # 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') ] # Create a new, empty change and (by default) edit it in the working copy export extern "jj new" [ ...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 the working-copy commit to the child revision export extern "jj next" [ offset?: string # How many revisions to move forward. Advances to the next child by default --edit(-e) # Instead of creating a new working-copy commit on top of the target commit (like `jj new`), edit the target commit directly (like `jj edit`) --no-edit(-n) # The inverse of `--edit` --conflict # Jump to the next conflicted descendant --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') ] # Commands for working with the operation log export extern "jj operation" [ --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') ] # Abandon operation history export extern "jj operation abandon" [ operation: string # The operation or operation range to abandon --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') ] # Compare changes to the repository between two operations export extern "jj operation diff" [ --operation: string # Show repository changes in this operation, compared to its parent --op: string # Show repository changes in this operation, compared to its parent --from: string # Show repository changes from this operation --to: string # Show repository changes to this operation --no-graph # Don't show the graph, show a flat list of modified changes --patch(-p) # Show patch of modifications to changes --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] # Show the operation log export extern "jj operation log" [ --limit(-n): string # Limit number of operations to show -l: string --no-graph # Don't show the graph, show a flat list of operations --template(-T): string # Render each operation using the given template --op-diff # Show changes to the repository at each operation --patch(-p) # Show patch of modifications to changes (implies --op-diff) --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] def "nu-complete jj operation restore what" [] { [ "repo" "remote-tracking" ] } # Create a new operation that restores the repo to an earlier state export extern "jj operation restore" [ operation: string # The operation to restore to --what: string@"nu-complete jj operation restore what" # What portions of the local state to restore (can be repeated) --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') ] # Show changes to the repository in an operation export extern "jj operation show" [ operation?: string # Show repository changes in this operation, compared to its parent(s) --no-graph # Don't show the graph, show a flat list of modified changes --patch(-p) # Show patch of modifications to changes --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] def "nu-complete jj operation undo what" [] { [ "repo" "remote-tracking" ] } # Create a new operation that undoes an earlier operation export extern "jj operation undo" [ operation?: string # The operation to undo --what: string@"nu-complete jj operation undo what" # What portions of the local state to restore (can be repeated) --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') ] # Parallelize revisions by making them siblings export extern "jj parallelize" [ ...revisions: string # Revisions to parallelize --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') ] # Change the working copy revision relative to the parent revision export extern "jj prev" [ offset?: string # How many revisions to move backward. Moves to the parent by default --edit(-e) # Edit the parent directly, instead of moving the working-copy commit --no-edit(-n) # The inverse of `--edit` --conflict # Jump to the previous conflicted ancestor --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 revisions to different parent(s) export extern "jj rebase" [ --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated) --source(-s): string # Rebase specified revision(s) together with their trees of descendants (can be repeated) --revisions(-r): string # Rebase the given revisions, rebasing descendants onto this revision's parent(s) --destination(-d): string # The revision(s) to rebase 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) --skip-empty # Deprecated. Use --skip-emptied instead --skip-emptied # If true, when rebasing would produce an empty commit, the commit is abandoned. It will not be abandoned if it was already empty before the rebase. Will never skip merge commits with multiple non-empty parents --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') ] # Resolve a conflicted file with an external merge tool export extern "jj resolve" [ --revision(-r): string --list(-l) # Instead of resolving one conflict, list all the conflicts --tool: string # Specify 3-way merge tool to be used ...paths: string # Restrict to these paths when searching for a conflict to resolve. We will attempt to resolve the first conflict we can find. You can use the `--list` argument to find paths to use here --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') ] # Restore paths from another revision export extern "jj restore" [ ...paths: string # Restore only these paths (instead of all paths) --from: string # Revision to restore from (source) --to: string # Revision to restore into (destination) --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents --revision(-r): string # Prints an error. DO NOT USE --restore-descendants # Preserve the content (not the diff) when rebasing descendants --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') ] # A dummy command that accepts any arguments export extern "jj revert" [ ..._args: string --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') ] # Show the current workspace root directory export extern "jj root" [ --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') ] # (**Stub**, does not work yet) Run a command across a set of revisions. export extern "jj run" [ shell_command: string # The command to run across all selected revisions --revisions(-r): string # The revisions to change -x # A no-op option to match the interface of `git rebase -x` --jobs(-j): string # How many processes should run in parallel, uses by default all cores --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') ] # Show commit description and changes in a revision export extern "jj show" [ revision?: string # Show changes in this revision, compared to its parent(s) -r # Ignored (but lets you pass `-r` for consistency with other commands) --template(-T): string # Render a revision using the given template --summary(-s) # For each path, show only whether it was modified, added, or deleted --stat # Show a histogram of the changes --types # For each path, show only its type before and after --name-only # For each path, show only its path --git # Show a Git-format diff --color-words # Show a word-level diff with changes indicated only by color --tool: string # Generate diff by external command --context: string # Number of lines of context to show --ignore-all-space # Ignore whitespace when comparing lines --ignore-space-change # Ignore changes in amount of whitespace when comparing lines --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') ] # Simplify parent edges for the specified revision(s) export extern "jj simplify-parents" [ --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated) --revisions(-r): string # Simplify specified revision(s) (can be repeated) --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') ] # Manage which paths from the working-copy commit are present in the working copy export extern "jj sparse" [ --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') ] # Start an editor to update the patterns that are present in the working copy export extern "jj sparse edit" [ --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') ] # List the patterns that are currently present in the working copy export extern "jj sparse list" [ --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') ] # Reset the patterns to include all files in the working copy export extern "jj sparse reset" [ --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') ] # Update the patterns that are present in the working copy export extern "jj sparse set" [ --add: string # Patterns to add to the working copy --remove: string # Patterns to remove from the working copy --clear # Include no files in the working copy (combine with --add) --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') ] # Split a revision in two export extern "jj split" [ --interactive(-i) # Interactively choose which parts to split. This is the default if no paths are provided --tool: string # Specify diff editor to be used (implies --interactive) --revision(-r): string # The revision to split --parallel(-p) # Split the revision into two parallel revisions instead of a parent and child ...paths: string # Put these paths in the first commit --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 a revision into another revision export extern "jj squash" [ --revision(-r): string # Revision to squash into its parent (default: @) --from(-f): string # Revision(s) to squash from (default: @) --into(-t): string # Revision to squash into (default: @) --to: string # Revision to squash into (default: @) --message(-m): string # The description to use for squashed revision (don't open editor) --use-destination-message(-u) # Use the description of the destination revision and discard the description(s) of the source revision(s) --interactive(-i) # Interactively choose which parts to squash --tool: string # Specify diff editor to be used (implies --interactive) ...paths: string # Move only changes to these paths (instead of all paths) --keep-emptied(-k) # The source revision will not be abandoned --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') ] # Show high-level repo status export extern "jj status" [ ...paths: string # Restrict the status display to these 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') ] # Manage tags export extern "jj tag" [ --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') ] # List tags export extern "jj tag list" [ ...names: string # Show tags whose local name matches --template(-T): string # Render each tag using the given template --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') ] # Infrequently used commands such as for generating shell completions export extern "jj util" [ --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') ] def "nu-complete jj util completion shell" [] { [ "bash" "elvish" "fish" "nushell" "power-shell" "zsh" ] } # Print a command-line-completion script export extern "jj util completion" [ shell?: string@"nu-complete jj util completion shell" --bash # Deprecated. Use the SHELL positional argument instead --fish # Deprecated. Use the SHELL positional argument instead --zsh # Deprecated. Use the SHELL positional argument instead --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') ] # Print the JSON schema for the jj TOML config format export extern "jj util config-schema" [ --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') ] # Run backend-dependent garbage collection export extern "jj util gc" [ --expire: string # Time threshold --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') ] # Print a ROFF (manpage) export extern "jj util mangen" [ --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') ] # Print the CLI help for all subcommands in Markdown export extern "jj util markdown-help" [ --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') ] def "nu-complete jj undo what" [] { [ "repo" "remote-tracking" ] } # Undo an operation (shortcut for `jj op undo`) export extern "jj undo" [ operation?: string # The operation to undo --what: string@"nu-complete jj undo what" # What portions of the local state to restore (can be repeated) --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 a revision's parent into the revision export extern "jj unsquash" [ --revision(-r): string --interactive(-i) # Interactively choose which parts to unsquash --tool: string # Specify diff editor to be used (implies --interactive) --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') ] # Stop tracking specified paths in the working copy export extern "jj untrack" [ ...paths: string # Paths to untrack. They must already be ignored --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') ] # Display version information export extern "jj version" [ --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') ] # Commands for working with workspaces export extern "jj workspace" [ --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') ] def "nu-complete jj workspace add sparse_patterns" [] { [ "copy" "full" "empty" ] } # Add a workspace export extern "jj workspace add" [ destination: string # Where to create the new workspace --name: string # A name for the workspace --revision(-r): string # A list of parent revisions for the working-copy commit of the newly created workspace. You may specify nothing, or any number of parents --sparse-patterns: string@"nu-complete jj workspace add sparse_patterns" # How to handle sparse patterns when creating a new workspace --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') ] # Stop tracking a workspace's working-copy commit in the repo export extern "jj workspace forget" [ ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace --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') ] # List workspaces export extern "jj workspace list" [ --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') ] # Renames the current workspace export extern "jj workspace rename" [ new_workspace_name: string # The name of the workspace to update to --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') ] # Show the current workspace root directory export extern "jj workspace root" [ --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') ] # Update a workspace that has become stale export extern "jj workspace update-stale" [ --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') ]}export use completions *+3 / −3 text lines