neovim: added some sntax support for VFP files
550b35623e7c6656e22b6f51421b1dcfd61e6a7e
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: bf51ae2e9721
bugabingas dorkfiles
550b35623e7c6656e22b6f51421b1dcfd61e6a7e
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+1175 / −303 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
new file mode 100644+128 / −0 text lines
-- File: C:\Users\okr\AppData\Local\nvim\ftplugin\vfp.lua-- Always-on dark flair for Visual FoxPro 9.0 (.prg files), blended with current themelocal api = vim.api-- Dark flair palettelocal dark_flair = { neon_red = '#FF1A1A', cyber_green = '#00FF66', shadow_purple = '#8A2BE2', toxic_yellow = '#FFFF33', gunmetal_gray = '#333333', faint_glow = '#666666',}-- OKLab blendinglocal function rgb_to_oklab( r, g, b ) r, g, b = r / 255, g / 255, b / 255 local l = 0.412221 * r + 0.536332 * g + 0.051447 * b local m = 0.211666 * r + 0.680525 * g + 0.107809 * b local s = 0.088302 * r + 0.281718 * g + 0.629980 * b l, m, s = l ^ (1 / 3), m ^ (1 / 3), s ^ (1 / 3) local L = 0.210454 * l + 0.793617 * m - 0.004071 * s local a = 1.977998 * l - 2.428592 * m + 0.450594 * s local b_ = 0.025904 * l + 0.782771 * m - 0.808675 * s return L, a, b_endlocal function oklab_to_rgb( L, a, b_ ) local l = L + 0.396337 * a + 0.215803 * b_ local m = L - 0.105561 * a - 0.063854 * b_ local s = L - 0.089484 * a - 1.291485 * b_ l, m, s = l ^ 3, m ^ 3, s ^ 3 local r = 4.076741 * l - 3.307711 * m + 0.230969 * s local g = -1.268143 * l + 2.609757 * m - 0.341319 * s local b = -0.004196 * l - 0.703228 * m + 1.707614 * s r, g, b = math.max( 0, math.min( 1, r ) ) * 255, math.max( 0, math.min( 1, g ) ) * 255, math.max( 0, math.min( 1, b ) ) * 255 return math.floor( r ), math.floor( g ), math.floor( b )endlocal function blend_colors( fg_hex, bg_hex, factor ) local fr, fg, fb = fg_hex:match '#(%x%x)(%x%x)(%x%x)' fr, fg, fb = tonumber( fr, 16 ) or 0, tonumber( fg, 16 ) or 0, tonumber( fb, 16 ) or 0 local br, bg, bb = bg_hex:match '#(%x%x)(%x%x)(%x%x)' br, bg, bb = tonumber( br, 16 ) or 0, tonumber( bg, 16 ) or 0, tonumber( bb, 16 ) or 0 local fL, fa, fb_ = rgb_to_oklab( fr, fg, fb ) local bL, ba, bb_ = rgb_to_oklab( br, bg, bb ) local L = bL + factor * (fL - bL) local a = ba + factor * (fa - ba) local b = bb_ + factor * (fb_ - bb_) local r, g, b = oklab_to_rgb( L, a, b ) ---@diagnostic disable-line: redefined-local return string.format( '#%02x%02x%02x', r, g, b )end-- Fetch theme colors with nvim_get_hllocal function get_theme_colors() local comment = api.nvim_get_hl( 0, { name = 'Comment' } ) or {} local statement = api.nvim_get_hl( 0, { name = 'Statement' } ) or {} local identifier = api.nvim_get_hl( 0, { name = 'Identifier' } ) or {} local str = api.nvim_get_hl( 0, { name = 'String' } ) or {} local constant = api.nvim_get_hl( 0, { name = 'Constant' } ) or {} local operator = api.nvim_get_hl( 0, { name = 'Operator' } ) or {} local err = api.nvim_get_hl( 0, { name = 'Error' } ) or {} return { comment = comment.fg and string.format( '#%06x', comment.fg ) or '#808080', statement = statement.fg and string.format( '#%06x', statement.fg ) or '#FFFF00', identifier = identifier.fg and string.format( '#%06x', identifier.fg ) or '#00FFFF', str = str.fg and string.format( '#%06x', str.fg ) or '#FF00FF', constant = constant.fg and string.format( '#%06x', constant.fg ) or '#00FF00', operator = operator.fg and string.format( '#%06x', operator.fg ) or '#FF0000', error = err.fg and string.format( '#%06x', err.fg ) or '#FF0000', }end-- Apply dark flairlocal function apply_dark_flair( buf ) local theme = get_theme_colors() local blend_factor = 0.7 -- Create a buffer-local namespace local ns_id = api.nvim_create_namespace( 'vfp_dark_flair_' .. buf ) -- Blend colors local blended = { special = blend_colors( dark_flair.neon_red, theme.operator, blend_factor ), preproc = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ), cmd = blend_colors( dark_flair.toxic_yellow, theme.statement, blend_factor ), func = blend_colors( dark_flair.toxic_yellow, theme.identifier, blend_factor ), sysvar = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ), str = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ), const = blend_colors( dark_flair.cyber_green, theme.constant, blend_factor ), number = blend_colors( dark_flair.cyber_green, theme.constant, blend_factor ), operator = blend_colors( dark_flair.neon_red, theme.operator, blend_factor ), comment = blend_colors( dark_flair.faint_glow, theme.comment, blend_factor ), error = blend_colors( dark_flair.neon_red, theme.error, blend_factor ), xmlfunc = blend_colors( dark_flair.cyber_green, theme.identifier, blend_factor ), oop = blend_colors( dark_flair.cyber_green, theme.identifier, blend_factor ), line = blend_colors( dark_flair.faint_glow, theme.comment, 0.4 ), } api.nvim_set_hl( ns_id, 'vfpSpecial', { fg = blended.special, bold = true } ) api.nvim_set_hl( ns_id, 'vfpPreProc', { fg = blended.preproc, italic = true } ) api.nvim_set_hl( ns_id, 'vfpCmd', { fg = blended.cmd, bold = true } ) api.nvim_set_hl( ns_id, 'vfpFunc', { fg = blended.func } ) api.nvim_set_hl( ns_id, 'vfpSysVar', { fg = blended.sysvar } ) api.nvim_set_hl( ns_id, 'vfpString', { fg = blended.str, italic = true } ) api.nvim_set_hl( ns_id, 'vfpConst', { fg = blended.const } ) api.nvim_set_hl( ns_id, 'vfpNumber', { fg = blended.number } ) api.nvim_set_hl( ns_id, 'vfpFloat', { fg = blended.number } ) api.nvim_set_hl( ns_id, 'vfpOperator', { fg = blended.operator, bold = true } ) api.nvim_set_hl( ns_id, 'vfpComment', { fg = blended.comment, italic = true } ) api.nvim_set_hl( ns_id, 'vfpError', { fg = blended.error, bg = blended.bg, underline = true } ) api.nvim_set_hl( ns_id, 'vfpXmlFunc', { fg = blended.xmlfunc, bold = true } ) api.nvim_set_hl( ns_id, 'vfpOop', { fg = blended.oop, italic = true } ) api.nvim_set_hl( ns_id, 'Normal', { bg = blended.bg } ) api.nvim_set_hl( ns_id, 'LineNr', { fg = blended.line } )end-- Autocommand to apply flair only to VFP buffersapi.nvim_create_autocmd( 'BufEnter', { pattern = '*.prg', callback = function () local buf = api.nvim_get_current_buf() apply_dark_flair( buf ) end,} )new file mode 100644+276 / −0 text lines
-- File: ~/.config/nvim/after/syntax/vfp.lua-- Syntax highlighting for Visual FoxPro 9.0-- Bail if syntax is already setif vim.b.current_syntax then return endlocal api = vim.apilocal fn = vim.fn-- Case-insensitive matchingvim.opt.ignorecase = true-- Define VFP9 Commands (unchanged from earlier)local commands = { 'accept', 'activate', 'add', 'additive', 'after', 'again', 'aindent', 'alias', 'all', 'alt', 'alter', 'alternate', 'ansi', 'any', 'aplabout', 'app', 'append', 'array', 'as', 'asc', 'ascending', 'ascii', 'assert', 'asserts', 'assist', 'attributes', 'aused', 'automatic', 'autosave', 'average', 'avg', 'before', 'begin', 'bell', 'bitmap', 'blank', 'blink', 'blocksize', 'border', 'bottom', 'box', 'browse', 'brstatus', 'bucket', 'buffers', 'build', 'by', 'calculate', 'calcvalue', 'call', 'cancel', 'carry', 'cascade', 'catalog', 'cd', 'center', 'century', 'cga', 'change', 'character', 'chdir', 'check', 'classlib', 'clear', 'click', 'clock', 'close', 'cnt', 'codepage', 'collate', 'color', 'column', 'com1', 'com2', 'command', 'compact', 'compatible', 'compile', 'compress', 'confirm', 'connection', 'connections', 'connstring', 'console', 'container', 'continue', 'control', 'copies', 'copy', 'count', 'cpcompile', 'cpdialog', 'create', 'currency', 'cursor', 'cursorgetprop', 'cursorsetprop', 'cycle', 'database', 'databases', 'datasession', 'datasource', 'db4', 'dblclick', 'dbmemo3', 'dbtrap', 'dde', 'deactivate', 'debug', 'decimals', 'declare', 'default', 'defaultsource', 'define', 'delete', 'deletetables', 'delimited', 'delimiters', 'desc', 'design', 'development', 'device', 'dif', 'dimension', 'dir', 'directory', 'disabled', 'display', 'distinct', 'dll', 'dlls', 'do', 'dohistory', 'dos', 'dosmem', 'double', 'down', 'drag', 'draw', 'driver', 'duplex', 'echo', 'edit', 'editwork', 'ega25', 'ega43', 'eject', 'ems64', 'ems', 'enabled', 'encrypt', 'encryption', 'end', 'environment', 'erase', 'escape', 'events', 'exact', 'except', 'exclusive', 'exe', 'exists', 'exit', 'export', 'expression', 'extended', 'external', 'f11f12', 'fdow', 'fetch', 'fields', 'file', 'filer', 'fill', 'find', 'fixed', 'float', 'flush', 'foldconst', 'font', 'footer', 'for', 'force', 'foreign', 'form', 'format', 'formset', 'found', 'fox2x', 'foxplus', 'free', 'freeze', 'from', 'full', 'function', 'fw2', 'fweek', 'gather', 'general', 'get', 'getexpr', 'getnextmodified', 'getobject', 'gets', 'global', 'go', 'goto', 'group', 'grow', 'halfheight', 'having', 'heading', 'headings', 'height', 'help', 'helpfilter', 'hidden', 'hide', 'highlight', 'history', 'hmemory', 'hours', 'iblock', 'icon', 'id', 'import', 'in', 'index', 'indexes', 'information', 'inner', 'input', 'insert', 'instruct', 'integer', 'intensity', 'intersect', 'into', 'is', 'isometric', 'join', 'keyboard', 'keycolumns', 'keycomp', 'keyset', 'label', 'last', 'ldcheck', 'ledit', 'left', 'level', 'library', 'line', 'linked', 'list', 'load', 'local', 'locate', 'logerrors', 'long', 'loop', 'lparameters', 'lpartition', 'mac', 'macdesktop', 'machelp', 'mackey', 'macro', 'macros', 'margin', 'mark', 'master', 'maxmem', 'mblock', 'md', 'mdi', 'memlimit', 'memo', 'memos', 'memowidth', 'memvar', 'menu', 'menus', 'message', 'messages', 'middle', 'minimize', 'minus', 'mkdir', 'modal', 'modify', 'module', 'mono43', 'mono', 'mouse', 'move', 'movers', 'multilocks', 'multiselect', 'mvarsiz', 'mvcount', 'name', 'near', 'negotiate', 'next', 'noalias', 'noappend', 'noclear', 'noclose', 'noconsole', 'nocptrans', 'nodata', 'nodebug', 'nodelete', 'nodefault', 'nodup', 'noedit', 'noeject', 'noenvironment', 'nofloat', 'nofollow', 'nogrow', 'noinit', 'nolgrid', 'nolink', 'nolock', 'nolog', 'nomargin', 'nomdi', 'nomenu', 'nominimize', 'nomodify', 'nomouse', 'none', 'nooptimize', 'noorganize', 'nooverwrite', 'noprompt', 'noprojecthook', 'noread', 'norefresh', 'norequery', 'norgrid', 'normal', 'nosave', 'noshadow', 'noshow', 'nospace', 'notify', 'noupdate', 'novalidate', 'noverify', 'nowait', 'nowindow', 'nowrap', 'nozoom', 'npv', 'null', 'number', 'nvl', 'object', 'objects', 'odometer', 'of', 'off', 'ole', 'oleobject', 'oleobjects', 'olepublic', 'on', 'only', 'open', 'optimize', 'order', 'orientation', 'outer', 'output', 'outshow', 'overlay', 'overwrite', 'pack', 'page', 'palette', 'panel', 'paperlength', 'papersize', 'paperwidth', 'parameters', 'partition', 'password', 'path', 'pattern', 'pause', 'pdox', 'pdsetup', 'pen', 'percent', 'pfs', 'picture', 'pixels', 'plain', 'play', 'point', 'pop', 'popup', 'popups', 'precision', 'preference', 'preview', 'primary', 'printer', 'printquality', 'private', 'procedure', 'procedures', 'production', 'progwork', 'project', 'protected', 'public', 'push', 'query', 'quit', 'random', 'range', 'rd', 'read', 'readborder', 'readerror', 'recall', 'record', 'recover', 'recsize', 'redit', 'reference', 'references', 'refresh', 'regional', 'reindex', 'relation', 'relative', 'release', 'remote', 'remove', 'rename', 'replace', 'report', 'reprocess', 'required', 'resource', 'rest', 'restore', 'restrict', 'resume', 'retry', 'return', 'right', 'rmdir', 'rollback', 'rowset', 'rpd', 'run', 'runscript', 'runtime', 'safety', 'same', 'sample', 'save', 'say', 'scale', 'scatter', 'scheme', 'screen', 'screens', 'scroll', 'sdf', 'seek', 'select', 'selection', 'separator', 'set', 'setfldstate', 'shadows', 'shared', 'sheet', 'shell', 'shift', 'show', 'shutdown', 'single', 'size', 'skip', 'some', 'sort', 'sortwork', 'spinner', 'sql', 'standalone', 'status', 'std', 'step', 'sticky', 'store', 'stretch', 'string', 'structure', 'style', 'subclass', 'sum', 'summary', 'suspend', 'sylk', 'sysformats', 'sysmenu', 'sysmenus', 'system', 'tab', 'tag', 'table', 'tables', 'tabs', 'talk', 'tedit', 'textmerge', 'this', 'this_access', 'thisform', 'thisformset', 'timeout', 'titles', 'tmpfiles', 'to', 'top', 'topic', 'total', 'transaction', 'trap', 'trbetween', 'trigger', 'ttoption', 'type', 'typeahead', 'udfparms', 'union', 'unlock', 'up', 'update', 'use', 'userid', 'users', 'validate', 'values', 'var', 'verb', 'vga25', 'vga50', 'view', 'views', 'volume', 'wait', 'when', 'where', 'width', 'window', 'windows', 'with', 'wk1', 'wk3', 'wks', 'workarea', 'wp', 'wr1', 'wrap', 'wrk', 'xcmdfile', 'xl5', 'xls', 'zap',}-- Define VFP9 Functions (unchanged)local functions = { 'abs', 'aclass', 'acopy', 'acos', 'adatabases', 'adbobjects', 'addbs', 'adel', 'adir', 'aelement', 'aerror', 'afields', 'afont', 'agetclass', 'agetfileversion', 'ains', 'ainstance', 'alen', 'alias', 'alines', 'alltrim', 'amembers', 'amouseobj', 'anetresources', 'ansitooem', 'aprinters', 'asc', 'ascan', 'aselobj', 'asin', 'asort', 'asubscript', 'at', 'at_c', 'atan', 'atc', 'atcc', 'atcline', 'atline', 'atn2', 'aused', 'avcxclasses', 'avg', 'bar', 'barcount', 'barprompt', 'between', 'bintoc', 'bitand', 'bitclear', 'bitlshift', 'bitnot', 'bitor', 'bitrshift', 'bitset', 'bittest', 'bitxor', 'bof', 'candidate', 'capslock', 'cdow', 'cdx', 'ceiling', 'chr', 'chrsaw', 'chrtran', 'chrtranc', 'cmonth', 'cntbar', 'cntpad', 'col', 'comarray', 'comclassinfo', 'compobj', 'comreturnerror', 'count', 'cos', 'cpconvert', 'cpcurrent', 'cpdbf', 'createbinary', 'createobject', 'createobjectex', 'createoffline', 'ctobin', 'ctod', 'ctot', 'curdir', 'cursorgetprop', 'cursorsetprop', 'curval', 'date', 'datetime', 'day', 'dbc', 'dbf', 'dbgetprop', 'dbsetprop', 'dbused', 'ddeaborttrans', 'ddeadvise', 'ddeenabled', 'ddeexecute', 'ddeinitiate', 'ddelasterror', 'ddepoke', 'dderequest', 'ddesetoption', 'ddesetservice', 'ddesettopic', 'ddeterminate', 'defaulttext', 'deleted', 'descending', 'difference', 'directory', 'diskspace', 'dmy', 'dodefault', 'dow', 'drivetype', 'dropoffline', 'dtoc', 'dtor', 'dtos', 'dtot', 'empty', 'eof', 'error', 'evaluate', 'exp', 'fchsize', 'fclose', 'fcount', 'fcreate', 'fdate', 'feof', 'ferror', 'fflush', 'fgets', 'field', 'file', 'filetostr', 'filter', 'fklabel', 'fkmax', 'fldlist', 'flock', 'floor', 'fontmetric', 'fopen', 'for', 'forceext', 'forcepath', 'found', 'fputs', 'fread', 'fseek', 'fsize', 'ftime', 'fullpath', 'fv', 'fwrite', 'getbar', 'getcolor', 'getcp', 'getdir', 'getenv', 'getfile', 'getfldstate', 'getfont', 'gethost', 'getnextmodified', 'getobject', 'getpad', 'getpem', 'getpict', 'getprinter', 'gomonth', 'header', 'home', 'hour', 'idxcollate', 'iif', 'imestatus', 'indbc', 'indexseek', 'inkey', 'inlist', 'insmode', 'int', 'isalpha', 'isblank', 'iscolor', 'isdigit', 'isexclusive', 'isflocked', 'ishosted', 'isleadbyte', 'islower', 'ismouse', 'isnull', 'isreadonly', 'isrlocked', 'isupper', 'justdrive', 'justext', 'justfname', 'justpath', 'juststem', 'key', 'keymatch', 'lastkey', 'left', 'leftc', 'len', 'lenc', 'like', 'likec', 'lineno', 'loadpicture', 'locfile', 'lock', 'log', 'log10', 'lookup', 'lower', 'ltrim', 'lupdate', 'max', 'mcol', 'mdown', 'mdx', 'mdy', 'memlines', 'memory', 'menu', 'message', 'messagebox', 'min', 'minute', 'mline', 'mod', 'month', 'mrkbar', 'mrkpad', 'mrow', 'mton', 'mwindow', 'ndx', 'newobject', 'normalize', 'ntom', 'numlock', 'nvl', 'objnum', 'objtoclient', 'objvar', 'occurs', 'oemtoansi', 'oldval', 'on', 'order', 'os', 'pad', 'padc', 'padl', 'padr', 'parameters', 'payment', 'pcol', 'pcount', 'pemstatus', 'pi', 'popup', 'primary', 'printstatus', 'prmbar', 'prmpad', 'program', 'prompt', 'proper', 'prow', 'prtinfo', 'putfile', 'pv', 'rand', 'rat', 'ratc', 'ratline', 'rdlevel', 'readkey', 'reccount', 'recno', 'recsize', 'refresh', 'relation', 'replicate', 'requery', 'rgb', 'rgbscheme', 'right', 'rightc', 'rlock', 'round', 'row', 'rtod', 'rtrim', 'savepicture', 'scheme', 'scols', 'sec', 'seconds', 'seek', 'select', 'set', 'setfldstate', 'sign', 'sin', 'skpbar', 'skppad', 'soundex', 'space', 'sqlcancel', 'sqlcolumns', 'sqlcommit', 'sqlconnect', 'sqldisconnect', 'sqlexec', 'sqlgetprop', 'sqlmoreresults', 'sqlrollback', 'sqlsetprop', 'sqlstringconnect', 'sqltables', 'sqrt', 'srows', 'str', 'strconv', 'strtofile', 'strtran', 'stuff', 'stuffc', 'substr', 'substrc', 'sum', 'sys', 'sysmetric', 'tablerevert', 'tableupdate', 'tag', 'tagcount', 'tagno', 'tan', 'target', 'time', 'transform', 'trim', 'ttoc', 'ttod', 'txnlevel', 'txtwidth', 'type', 'unique', 'updated', 'upper', 'used', 'val', 'varread', 'vartype', 'version', 'wborder', 'wchild', 'wcols', 'week', 'wexist', 'wfont', 'wlast', 'wlcol', 'wlrow', 'wmaximum', 'wminimum', 'wontop', 'woutput', 'wparent', 'wread', 'wrows', 'wtitle', 'wvisible', 'year',}-- Define VFP9 System Variables (unchanged)local sysvars = { '_alignment', '_asciicols', '_asciirows', '_assist', '_beautify', '_box', '_browser', '_builder', '_calcmem', '_calcvalue', '_cliptext', '_converter', '_coverage', '_curobj', '_datetimeformat', '_dblclick', '_diarydate', '_dos', '_fontclass', '_foxbaseclass', '_foxdoc', '_foxdragdrop', '_foxdroptarget', '_foxgraph', '_gallery', '_gengraph', '_genhtml', '_genmenu', '_genpd', '_genscrn', '_genxtab', '_getexpr', '_helpwebdevonly', '_helpwebdirectory', '_helpwebfiller1', '_helpwebfiller2', '_helpwebmsdnonline', '_helpwebmsfthomepage', '_helpwebsearch', '_helpwebtutorial', '_helpwebvfpfaq', '_helpwebvfpfreestuff', '_helpwebvfphomepage', '_helpwebvfponlinesupport', '_helpwebvfpsendfeedback', '_helpwebvsprodnews', '_include', '_indent', '_lmargin', '_mac', '_mbr_appnd', '_mbr_cpart', '_mbr_delet', '_mbr_font', '_mbr_goto', '_mbr_grid', '_mbr_link', '_mbr_mode', '_mbr_mvfld', '_mbr_mvprt', '_mbr_seek', '_mbr_sp100', '_mbr_sp200', '_mbr_szfld', '_mbrowse', '_mda_appnd', '_mda_avg', '_mda_brow', '_mda_calc', '_mda_copy', '_mda_count', '_mda_label', '_mda_pack', '_mda_reprt', '_mda_rindx', '_mda_setup', '_mda_sort', '_mda_sp100', '_mda_sp200', '_mda_sp300', '_mda_sum', '_mda_total', '_mdata', '_mdiary', '_med_beaut', '_med_bldex', '_med_clear', '_med_copy', '_med_cut', '_med_cvtst', '_med_exblk', '_med_find', '_med_finda', '_med_goto', '_med_insob', '_med_link', '_med_obj', '_med_paste', '_med_pref', '_med_pstlk', '_med_redo', '_med_repl', '_med_repla', '_med_slcta', '_med_sp100', '_med_sp200', '_med_sp300', '_med_sp400', '_med_sp500', '_med_sp600', '_med_undo', '_medit', '_mfi_clall', '_mfi_close', '_mfi_export', '_mfi_import', '_mfi_new', '_mfi_open', '_mfi_pgset', '_mfi_prevu', '_mfi_print', '_mfi_printonecopy', '_mfi_quit', '_mfi_revrt', '_mfi_savas', '_mfi_save', '_mfi_saveashtml', '_mfi_send', '_mfi_setup', '_mfi_sp100', '_mfi_sp200', '_mfi_sp300', '_mfi_sp400', '_mfi_sysprint', '_mfile', '_mfiler', '_mfirst', '_mlabel', '_mlast', '_mline', '_mmacro', '_mmb_delet', '_mmb_gener', '_mmb_gopts', '_mmb_insbr', '_mmb_insrt', '_mmb_mopts', '_mmb_prevu', '_mmb_quick', '_mmb_sp100', '_mmb_sp200', '_mmb_sp300', '_mmbldr', '_mouseevents', '_mouseeventsnodbl', '_mpr_beaut', '_mpr_cancl', '_mpr_compl', '_mpr_do', '_mpr_docum', '_mpr_formwz', '_mpr_gener', '_mpr_graph', '_mpr_resum', '_mpr_sp100', '_mpr_sp200', '_mpr_sp300', '_mpr_suspend', '_mprog', '_mproj', '_mrc_appnd', '_mrc_chnge', '_mrc_cont', '_mrc_delet', '_mrc_goto', '_mrc_locat', '_mrc_recal', '_mrc_repl', '_mrc_seek', '_mrc_sp100', '_mrc_sp200', '_mrecord', '_mreport', '_mrqbe', '_mscreen', '_msm_data', '_msm_edit', '_msm_file', '_msm_format', '_msm_prog', '_msm_recrd', '_msm_systm', '_msm_text', '_msm_tools', '_msm_view', '_msm_windo', '_mst_about', '_mst_ascii', '_mst_calcu', '_mst_captr', '_mst_dbase', '_mst_diary', '_mst_docum', '_mst_filer', '_mst_help', '_mst_hphow', '_mst_hpsch', '_mst_macro', '_mst_msdnc', '_mst_msdni', '_mst_msdns', '_mst_office', '_mst_puzzl', '_mst_samp', '_mst_sp100', '_mst_sp200', '_mst_sp300', '_mst_specl', '_mst_techs', '_msysmenu', '_msystem', '_mtable', '_mtb_appnd', '_mtb_cpart', '_mtb_delet', '_mtb_delrc', '_mtb_goto', '_mtb_link', '_mtb_mvfld', '_mtb_mvprt', '_mtb_props', '_mtb_recal', '_mtb_sp100', '_mtb_sp200', '_mtb_sp300', '_mtb_sp400', '_mtb_szfld', '_mti_callstack', '_mti_dbgout', '_mti_locals', '_mti_runactivedoc', '_mti_trace', '_mti_watch', '_mtl_browser', '_mtl_coverage', '_mtl_debugger', '_mtl_gallery', '_mtl_macro', '_mtl_optns', '_mtl_sp100', '_mtl_sp200', '_mtl_sp300', '_mtl_sp400', '_mtl_spell', '_mtl_wzrds', '_mtools', '_mvi_toolb', '_mview', '_mwi_arran', '_mwi_clear', '_mwi_cmd', '_mwi_color', '_mwi_debug', '_mwi_hide', '_mwi_hidea', '_mwi_min', '_mwi_move', '_mwi_rotat', '_mwi_showa', '_mwi_size', '_mwi_sp100', '_mwi_sp200', '_mwi_toolb', '_mwi_trace', '_mwi_view', '_mwi_zoom', '_mwindow', '_mwizards', '_mwz_all', '_mwz_applic', '_mwz_application', '_mwz_database', '_mwz_form', '_mwz_foxdoc', '_mwz_import', '_mwz_label', '_mwz_mail', '_mwz_pivot', '_mwz_query', '_mwz_reprt', '_mwz_setup', '_mwz_table', '_mwz_upsizing', '_mwz_webpublishing', '_netware', '_olebasecontrol', '_oledragdrop', '_oracle', '_padvance', '_pageno', '_pbpage', '_pcolno', '_pcopies', '_pdparms', '_pdriver', '_pdsetup', '_pecode', '_peject', '_pepage', '_pform', '_plength', '_plineno', '_ploffset', '_ppitch', '_pquality', '_pretext', '_pscode', '_pspacing', '_pwait', '_rectclass', '_rmargin', '_runactivedoc', '_samples', '_scctext', '_screen', '_shell', '_spellchk', '_sqlserver', '_startup', '_tabs', '_tally', '_text', '_throttle', '_transport', '_triggerlevel', '_unix', '_vfp', '_viewport', '_webdevonly', '_webmenu', '_webmsfthomepage', '_webvfphomepage', '_webvfponlinesupport', '_windows', '_wizard', '_wrap',}-- Define Highlight Groupslocal function set_highlights() api.nvim_set_hl( 0, 'vfpSpecial', { link = 'Special' } ) api.nvim_set_hl( 0, 'vfpPreProc', { link = 'PreProc' } ) api.nvim_set_hl( 0, 'vfpCmd', { link = 'Statement' } ) api.nvim_set_hl( 0, 'vfpFunc', { link = 'Identifier' } ) api.nvim_set_hl( 0, 'vfpSysVar', { link = 'String' } ) api.nvim_set_hl( 0, 'vfpString', { link = 'String' } ) api.nvim_set_hl( 0, 'vfpConst', { link = 'Constant' } ) api.nvim_set_hl( 0, 'vfpNumber', { link = 'Number' } ) api.nvim_set_hl( 0, 'vfpFloat', { link = 'Float' } ) api.nvim_set_hl( 0, 'vfpOperator', { link = 'Operator' } ) api.nvim_set_hl( 0, 'vfpComment', { link = 'Comment' } ) api.nvim_set_hl( 0, 'vfpError', { link = 'Error' } ) api.nvim_set_hl( 0, 'vfpXmlFunc', { link = 'Function' } ) api.nvim_set_hl( 0, 'vfpOop', { link = 'Type' } )endset_highlights()-- Define Syntax Patterns with proper matchaddlocal function define_syntax() local buf = api.nvim_get_current_buf() local priority = 10 -- Standard priority for syntax matches local id_base = 1000 -- Unique ID base to avoid collisions -- Helper to apply matchadd with consistent args local function add_match( group, pattern, pri, id ) fn.matchadd( group, pattern ) end -- Special Characters local specials = { [[^\s*!]], '&', [[;\s*$]], [[^\s*=]], [[^\s*\\]], [[^\s*\\\\]], [[^\s*?]], [[^\s*??]], [[^\s*???]], [[\<m\>\.]], [[\<this\>\.]], [[\<thisform\>\.]], [[\<thisformset\>\.]], } for i, pat in ipairs( specials ) do add_match( 'vfpSpecial', pat, priority, id_base + i ) end -- Preprocessor Directives local preprocs = { [[^\s*#\s*\(if\|elif\|else\|endif\)]], [[^\s*#\s*\(ifdef\|ifndef\|endif\)]], [[^\s*#\s*\(define\|undef\)]], [[^\s*#\s*\<region\>]], [[^\s*#\s*\<include\>]], [[^\s*#\s*\<itsexpression\>]], [[^\s*#\s*\<readclauses\>]], [[^\s*#\s*\<section\>]], [[^\s*#\s*\<wname\>]], } for i, pat in ipairs( preprocs ) do add_match( 'vfpPreProc', pat, priority, id_base + 100 + i ) end -- Commands local cmd_pattern = [[\<]] .. table.concat( commands, [[\>\|\<]] ) .. [[\>]] add_match( 'vfpCmd', cmd_pattern, priority, id_base + 200 ) -- Functions (with paren) local func_pattern = [[\<]] .. table.concat( functions, [[\>\|\<]] ) .. [[\>\s*(]] add_match( 'vfpFunc', func_pattern, priority, id_base + 300 ) -- System Variables local sysvar_pattern = [[\<]] .. table.concat( sysvars, [[\>\|\<]] ) .. [[\>]] add_match( 'vfpSysVar', sysvar_pattern, priority, id_base + 400 ) -- Strings -- Strings section from define_syntax() add_match( 'vfpString', [["[^"]*"]], priority, id_base + 500 ) -- Double-quoted add_match( 'vfpString', [['[^']*']], priority, id_base + 501 ) -- Single-quoted add_match( 'vfpString', '\\[[^\\]]*\\]', priority, id_base + 502 ) -- Bracketed -- Constants add_match( 'vfpConst', [[\.\(t\|f\|y\|n\|null\)\.]], priority, id_base + 600 ) add_match( 'vfpConst', [[\<null\>]], priority, id_base + 601 ) -- Numbers and Floats add_match( 'vfpNumber', [[\<[0-9]\+\>]], priority, id_base + 700 ) add_match( 'vfpFloat', [[\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\>]], priority, id_base + 701 ) add_match( 'vfpFloat', [[\.[0-9]\+\(e[-+]\=[0-9]\+\)\=\>]], priority, id_base + 702 ) add_match( 'vfpFloat', [[\<[0-9]\+e[-+]\=[0-9]\+\>]], priority, id_base + 703 ) -- Operators local operators = { [[\$]], [[%]], [[&]], [[+]], [[-]], [[->]], [[!]], [[\.\(and\|not\|or\)\.]], [[\<and\>]], [[\<or\>]], [[\<not\>]], [[<]], [[<=]], [[<>]], [[!=]], [[#]], [[=]], [[==]], [[>]], [[>=]], [[@]], [[\*]], [[\<like\>]], } for i, op in ipairs( operators ) do add_match( 'vfpOperator', op, priority, id_base + 800 + i ) end -- Comments add_match( 'vfpComment', [[^\s*\*.*]], priority, id_base + 900 ) add_match( 'vfpComment', [[&&.*]], priority, id_base + 901 ) add_match( 'vfpComment', [[\<note\>.*]], priority, id_base + 902 ) -- VFP9-Specific: XML Functions local xml_functions = { 'xmltocursor', 'cursortoxml', 'xmlupdategram' } local xml_pattern = [[\<]] .. table.concat( xml_functions, [[\>\|\<]] ) .. [[\>\s*(]] add_match( 'vfpXmlFunc', xml_pattern, priority, id_base + 1000 ) -- VFP9-Specific: OOP Properties add_match( 'vfpOop', [[\<thisform\>\.]], priority, id_base + 1100 ) -- Syntax Syncing vim.cmd 'syntax sync minlines=1 maxlines=3'end-- Apply itdefine_syntax()-- Mark as loadedvim.b.current_syntax = 'vfp'+3 / −3 text lines
+19 / −17 text lines
spell_check = true, spelled_numbers = true, an_a = true, sentence_capitalization = false, unclosed_quotes = true, wrong_quotes = true, long_sentences = true, repeated_words = true, spaces = false, matcher = true, correct_number_suffix = true, number_suffix_capitalization = true, multiple_sequential_pronouns = true, linking_verbs = true, avoid_curses = true, terminating_conjunctions = true,+1 / −0 text lines
+1 / −0 text lines
new file mode 100644+4 / −0 text lines
new file mode 100644Binary size (old → new): 0 → 254 bytes.
+733 / −279 text lines
--color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj color" # When to colorize output --summary(-s) # Do not print every abandoned commit on a separate line --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj abandon color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj absorb color" # When to colorize output # Apply the reverse of a revision on top of another revision --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj backout color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark create color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark delete color" # When to colorize output # Forget everything about a bookmark, including its local and remote targets --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark forget color" # When to colorize output def "nu-complete jj bookmark list sort" [] { [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ] } def "nu-complete jj bookmark list color" [] { [ "always" "never" "debug" "auto" ] } --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --sort: string@"nu-complete jj bookmark list sort" # Sort bookmarks based on the given key (or multiple keys) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark move color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark rename color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark set color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark track color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj bookmark untrack color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch create color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch delete color" # When to colorize output # Forget everything about a bookmark, including its local and remote targets --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch forget color" # When to colorize output def "nu-complete jj branch list sort" [] { [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ] } def "nu-complete jj branch list color" [] { [ "always" "never" "debug" "auto" ] } --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks --sort: string@"nu-complete jj branch list sort" # Sort bookmarks based on the given key (or multiple keys) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch move color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch rename color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch set color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch track color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj branch untrack color" # When to colorize output # Print contents of files in a revision export extern "jj cat" [ --revision(-r): string # The revision to get the file contents from ...paths: path # Paths to print --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (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: path # Paths to change the executable bit for --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj commit color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config edit color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config get color" # When to colorize output # List variables set in config file, along with their values --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config list color" # When to colorize output # Print the path to the config file --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config path color" # When to colorize output # Update config file to set the given option to a given value --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config set color" # When to colorize output # Update config file to unset the given option --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj config unset color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug color" # When to colorize output # Rebuild commit index revision?: string # Show changes in this revision, compared to its parent(s) revision?: string # Show file copies detected in changed files in this revision, compared to its parent(s) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug copy-detection color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug fileset color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug index color" # When to colorize output def "nu-complete jj debug init-simple color" [] { [ "always" "never" "debug" "auto" ] } # Create a new repo in the given directory using the proof-of-concept simple backend export extern "jj debug init-simple" [ destination?: path # The destination directory --repository(-R): path # 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@"nu-complete jj debug init-simple color" # When to colorize output --quiet # Silence non-primary command output --no-pager # Disable the pager --config: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj debug local-working-copy color" [] { [ "always" "never" "debug" "auto" ] } --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug local-working-copy color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug operation color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug reindex color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug revset color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug snapshot color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug template color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug tree color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug watchman color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug watchman status color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug watchman query-clock color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug watchman query-changed-files color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug watchman reset-clock color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj debug working-copy color" # When to colorize output --edit # Open an editor --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj describe color" # When to colorize output --revision(-r): string # Show changes in this revision, compared to its parent(s) --revisions(-r): string # Show changes in these revisions --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj diff color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj diffedit color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj duplicate color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj edit color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj evolog color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file color" # When to colorize output --template(-T): string # Render each line using the given template --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file annotate color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file chmod color" # When to colorize output --template(-T): string # Render each file entry using the given template --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file show color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file track color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj file untrack color" # When to colorize output # List files in a revision (DEPRECATED use `jj file list`) export extern "jj files" [ --revision(-r): string # The revision to list files in ...paths: path # Only list files matching these prefixes (instead of all files) --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj fix color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git color" # When to colorize output source: path # URL or path of the Git repo to clone source: string # URL or path of the Git repo to clone destination?: path # 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 --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git clone color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git export color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git fetch color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git import color" # When to colorize output destination?: path # 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 --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git init color" # When to colorize output --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated) --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated) --named: string # Specify a new bookmark name and a revision to push under that name, e.g. '--named myfeature=@' --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git push color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote add color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote remove color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote rename color" # When to colorize output url: string # The desired url for `remote` url: string # The desired URL or path for `remote` --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git remote set-url color" # When to colorize output # FOR INTERNAL USE ONLY Interact with git submodules export extern "jj git submodule" [ --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj git root color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj help color" # When to colorize output # Create a new repo in the given directory export extern "jj init" [ destination?: path # The destination directory --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo --git-repo: path # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj interdiff color" # When to colorize output --reversed # Show revisions in the opposite order (older revisions first) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj log color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj new color" # When to colorize output offset?: string # How many revisions to move forward. Advances to the next child by default --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj next color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation abandon color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation diff color" # When to colorize output --op-diff # Show changes to the repository at each operation --op-diff(-d) # Show changes to the repository at each operation --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation log color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation restore color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation show color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj operation undo color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj parallelize color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj prev color" # When to colorize output --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj rebase color" # When to colorize output # Resolve a conflicted file with an external merge tool --list(-l) # Instead of resolving one conflict, list all the conflicts --list(-l) # Instead of resolving conflicts, list all the conflicts ...paths: path # 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 ...paths: path # Only resolve conflicts in these paths. You can use the `--list` argument to find paths to use here --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj resolve color" # When to colorize output --to(-t): string # Revision to restore into (destination) --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj restore color" # When to colorize output # A dummy command that accepts any arguments ..._args: string --revisions(-r): string # The revision(s) to apply the reverse of --destination(-d): string # The revision(s) to apply the reverse changes on top of --insert-after(-A): string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit) --after: string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit) --insert-before(-B): string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit) --before: string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj revert color" # When to colorize output # Show the current workspace root directory --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj root color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj run color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj show color" # When to colorize output def "nu-complete jj sign color" [] { [ "always" "never" "debug" "auto" ] } # Cryptographically sign a revision export extern "jj sign" [ --revisions(-r): string # What revision(s) to sign --key: string # The key used for signing --repository(-R): path # 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@"nu-complete jj sign color" # When to colorize output --quiet # Silence non-primary command output --no-pager # Disable the pager --config: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] def "nu-complete jj simplify-parents color" [] { [ "always" "never" "debug" "auto" ] } --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated) --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj simplify-parents color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj sparse color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj sparse edit color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj sparse list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj sparse reset color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj sparse set color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj split color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj squash color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj status color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj tag color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj tag list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util completion color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util config-schema color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util exec color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util gc color" # When to colorize output def "nu-complete jj util install-man-pages color" [] { [ "always" "never" "debug" "auto" ] } # Install Jujutsu's manpages to the provided path export extern "jj util install-man-pages" [ path: path # The path where manpages will installed. An example path might be `/usr/share/man`. The provided path will be appended with `man1`, etc., as appropriate --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util install-man-pages color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj util markdown-help color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj undo color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj unsign color" # When to colorize output # Stop tracking specified paths in the working copy export extern "jj untrack" [ ...paths: path # Paths to untrack. They must already be ignored --repository(-R): path # 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: string # Additional configuration options (can be repeated) --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED) --config-file: path # Additional configuration files (can be repeated) --help(-h) # Print help (see more with '--help') ] --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj version color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace add color" # When to colorize output ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace forget color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace list color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace rename color" # When to colorize output --color: string # When to colorize output (always, never, debug, auto) --color: string@"nu-complete jj workspace root color" # When to colorize output+1 / −1 text lines
+0 / −3 text lines
+9 / −0 text lines