diff --git a/git/.config/git/config b/git/.config/git/config index f6c7d9e..0561d80 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -6,16 +6,18 @@ sshCommand = ssh -F ~/.config/ssh/config -o UserKnownHostsFile='/home/moo/.config/ssh/known_hosts' quotePath = false commitGraph = true + autocrlf = input [user] - email = the7772howaboutyou@protonmail.com + email = alister@kamikishi.net name = riomoo - signingkey = /home/moo/.config/ssh/gpg/the7772/id_ed25519.pub - #signingkey = FEC86E49B4437D4D + signingkey = /home/moo/.config/ssh/gpg/alisteratkamikishi/id_ed25519.pub + #signingkey = 554AF2CEAE26AC80 + #email = the7772howaboutyou@protonmail.com [alias] resign = "!re() { git rebase --exec 'git commit --amend --no-edit -n -S' -i $1; }; re" gwtm = worktree add master - gwtd = worktree add -b dev dev master + gwtd = worktree add -b dev dev master gwtf = worktree add -b feat feat dev gwtrf = worktree remove feat gbrf = branch -D feat @@ -30,6 +32,7 @@ lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' lg4-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' + ll = log --graph --format=\"%C(yellow)%h%C(red)%d%C(reset) - %C(bold green)(%ar)%C(reset) %s %C(blue)<%an>%C(reset)\" [push] @@ -61,5 +64,3 @@ allowedSignersFile = /home/moo/.config/ssh/allowed_signers [commit] gpgsign = true -[init] - defaultBranch = main diff --git a/ssh/.config/ssh/known_hosts b/ssh/.config/ssh/known_hosts new file mode 100644 index 0000000..3f19782 --- /dev/null +++ b/ssh/.config/ssh/known_hosts @@ -0,0 +1 @@ +192.168.0.100 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNFyL6rb/ksObeVeDkUeh2e+g9eAYfD6SRT5hHMjNa8 diff --git a/vim/.config/vim/autoload/plug.vim b/vim/.config/vim/autoload/plug.vim index 6c0fd20..589e4f3 100644 --- a/vim/.config/vim/autoload/plug.vim +++ b/vim/.config/vim/autoload/plug.vim @@ -1,67 +1,36 @@ " vim-plug: Vim plugin manager " ============================ " -" Download plug.vim and put it in ~/.vim/autoload +" 1. Download plug.vim and put it in 'autoload' directory " +" # Vim " curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ " https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim " -" Edit your .vimrc +" # Neovim +" sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ +" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' " -" call plug#begin('~/.vim/plugged') +" 2. Add a vim-plug section to your ~/.vimrc (or ~/.config/nvim/init.vim for Neovim) " -" " Make sure you use single quotes +" call plug#begin() " -" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align -" Plug 'junegunn/vim-easy-align' +" " List your plugins here +" Plug 'tpope/vim-sensible' " -" " Any valid git URL is allowed -" Plug 'https://github.com/junegunn/vim-github-dashboard.git' -" -" " Multiple Plug commands can be written in a single line using | separators -" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' -" -" " On-demand loading -" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } -" Plug 'tpope/vim-fireplace', { 'for': 'clojure' } -" -" " Using a non-default branch -" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } -" -" " Using a tagged release; wildcard allowed (requires git 1.9.2 or above) -" Plug 'fatih/vim-go', { 'tag': '*' } -" -" " Plugin options -" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } -" -" " Plugin outside ~/.vim/plugged with post-update hook -" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } -" -" " Unmanaged plugin (manually installed and updated) -" Plug '~/my-prototype-plugin' -" -" " Initialize plugin system " call plug#end() " -" Then reload .vimrc and :PlugInstall to install plugins. +" 3. Reload the file or restart Vim, then you can, " -" Plug options: +" :PlugInstall to install plugins +" :PlugUpdate to update plugins +" :PlugDiff to review the changes from the last update +" :PlugClean to remove plugins no longer in the list " -"| Option | Description | -"| ----------------------- | ------------------------------------------------ | -"| `branch`/`tag`/`commit` | Branch/tag/commit of the repository to use | -"| `rtp` | Subdirectory that contains Vim plugin | -"| `dir` | Custom directory for the plugin | -"| `as` | Use different name for the plugin | -"| `do` | Post-update hook (string or funcref) | -"| `on` | On-demand loading: Commands or ``-mappings | -"| `for` | On-demand loading: File types | -"| `frozen` | Do not update unless explicitly specified | -" -" More information: https://github.com/junegunn/vim-plug +" For more information, see https://github.com/junegunn/vim-plug " " -" Copyright (c) 2017 Junegunn Choi +" Copyright (c) 2024 Junegunn Choi " " MIT License " @@ -238,10 +207,11 @@ endfunction function! plug#begin(...) if a:0 > 0 - let s:plug_home_org = a:1 let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p')) elseif exists('g:plug_home') let home = s:path(g:plug_home) + elseif has('nvim') + let home = stdpath('data') . '/plugged' elseif !empty(&rtp) let home = s:path(split(&rtp, ',')[0]) . '/plugged' else @@ -350,7 +320,7 @@ function! plug#end() endif let lod = { 'ft': {}, 'map': {}, 'cmd': {} } - if exists('g:did_load_filetypes') + if get(g:, 'did_load_filetypes', 0) filetype off endif for name in g:plugs_order @@ -389,6 +359,9 @@ function! plug#end() if !empty(types) augroup filetypedetect call s:source(s:rtp(plug), 'ftdetect/**/*.vim', 'after/ftdetect/**/*.vim') + if has('nvim-0.5.0') + call s:source(s:rtp(plug), 'ftdetect/**/*.lua', 'after/ftdetect/**/*.lua') + endif augroup END endif for type in types @@ -399,13 +372,15 @@ function! plug#end() for [cmd, names] in items(lod.cmd) execute printf( - \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "", , , , %s)', - \ cmd, string(cmd), string(names)) + \ has('patch-7.4.1898') + \ ? 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "", , , , ,%s)' + \ : 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "", , , , %s)' + \ , cmd, string(cmd), string(names)) endfor for [map, names] in items(lod.map) for [mode, map_prefix, key_prefix] in - \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] + \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] execute printf( \ '%snoremap %s %s:call lod_map(%s, %s, %s, "%s")', \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) @@ -436,6 +411,9 @@ endfunction function! s:load_plugin(spec) call s:source(s:rtp(a:spec), 'plugin/**/*.vim', 'after/plugin/**/*.vim') + if has('nvim-0.5.0') + call s:source(s:rtp(a:spec), 'plugin/**/*.lua', 'after/plugin/**/*.lua') + endif endfunction function! s:reload_plugins() @@ -653,6 +631,9 @@ function! s:lod(names, types, ...) let rtp = s:rtp(g:plugs[name]) for dir in a:types call s:source(rtp, dir.'/**/*.vim') + if has('nvim-0.5.0') " see neovim#14686 + call s:source(rtp, dir.'/**/*.lua') + endif endfor if a:0 if !s:source(rtp, a:1) && !empty(s:glob(rtp, a:2)) @@ -672,11 +653,19 @@ function! s:lod_ft(pat, names) call s:doautocmd('filetypeindent', 'FileType') endfunction -function! s:lod_cmd(cmd, bang, l1, l2, args, names) - call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) - call s:dobufread(a:names) - execute printf('%s%s%s %s', (a:l1 == a:l2 ? '' : (a:l1.','.a:l2)), a:cmd, a:bang, a:args) -endfunction +if has('patch-7.4.1898') + function! s:lod_cmd(cmd, bang, l1, l2, args, mods, names) + call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) + call s:dobufread(a:names) + execute printf('%s %s%s%s %s', a:mods, (a:l1 == a:l2 ? '' : (a:l1.','.a:l2)), a:cmd, a:bang, a:args) + endfunction +else + function! s:lod_cmd(cmd, bang, l1, l2, args, names) + call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) + call s:dobufread(a:names) + execute printf('%s%s%s %s', (a:l1 == a:l2 ? '' : (a:l1.','.a:l2)), a:cmd, a:bang, a:args) + endfunction +endif function! s:lod_map(map, names, with_prefix, prefix) call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) @@ -804,10 +793,11 @@ endfunction function! s:syntax() syntax clear syntax region plug1 start=/\%1l/ end=/\%2l/ contains=plugNumber - syntax region plug2 start=/\%2l/ end=/\%3l/ contains=plugBracket,plugX + syntax region plug2 start=/\%2l/ end=/\%3l/ contains=plugBracket,plugX,plugAbort syn match plugNumber /[0-9]\+[0-9.]*/ contained syn match plugBracket /[[\]]/ contained syn match plugX /x/ contained + syn match plugAbort /\~/ contained syn match plugDash /^-\{1}\ / syn match plugPlus /^+/ syn match plugStar /^*/ @@ -832,6 +822,7 @@ function! s:syntax() hi def link plug2 Repeat hi def link plugH2 Type hi def link plugX Exception + hi def link plugAbort Ignore hi def link plugBracket Structure hi def link plugNumber Number @@ -867,7 +858,7 @@ function! s:lastline(msg) endfunction function! s:new_window() - execute get(g:, 'plug_window', 'vertical topleft new') + execute get(g:, 'plug_window', '-tabnew') endfunction function! s:plug_window_exists() @@ -929,7 +920,7 @@ function! s:prepare(...) endif endfor - call s:job_abort() + call s:job_abort(0) if s:switch_in() if b:plug_preview == 1 pc @@ -965,6 +956,8 @@ function! s:close_pane() if b:plug_preview == 1 pc let b:plug_preview = -1 + elseif exists('s:jobs') && !empty(s:jobs) + call s:job_abort(1) else bd endif @@ -1029,6 +1022,11 @@ function! s:is_updated(dir) endfunction function! s:do(pull, force, todo) + if has('nvim') + " Reset &rtp to invalidate Neovim cache of loaded Lua modules + " See https://github.com/junegunn/vim-plug/pull/1157#issuecomment-1809226110 + let &rtp = &rtp + endif for [name, spec] in items(a:todo) if !isdirectory(spec.dir) continue @@ -1087,15 +1085,21 @@ function! s:hash_match(a, b) return stridx(a:a, a:b) == 0 || stridx(a:b, a:a) == 0 endfunction +function! s:disable_credential_helper() + return s:git_version_requirement(2) && get(g:, 'plug_disable_credential_helper', 1) +endfunction + function! s:checkout(spec) let sha = a:spec.commit let output = s:git_revision(a:spec.dir) + let error = 0 if !empty(output) && !s:hash_match(sha, s:lines(output)[0]) - let credential_helper = s:git_version_requirement(2) ? '-c credential.helper= ' : '' + let credential_helper = s:disable_credential_helper() ? '-c credential.helper= ' : '' let output = s:system( \ 'git '.credential_helper.'fetch --depth 999999 && git checkout '.plug#shellescape(sha).' --', a:spec.dir) + let error = v:shell_error endif - return output + return [output, error] endfunction function! s:finish(pull) @@ -1156,7 +1160,7 @@ function! s:update_impl(pull, force, args) abort let threads = (len(args) > 0 && args[-1] =~ '^[1-9][0-9]*$') ? \ remove(args, -1) : get(g:, 'plug_threads', 16) - let managed = filter(copy(g:plugs), 's:is_managed(v:key)') + let managed = filter(deepcopy(g:plugs), 's:is_managed(v:key)') let todo = empty(args) ? filter(managed, '!v:val.frozen || !isdirectory(v:val.dir)') : \ filter(managed, 'index(args, v:key) >= 0') @@ -1290,9 +1294,11 @@ function! s:update_finish() if !pos continue endif + let out = '' + let error = 0 if has_key(spec, 'commit') call s:log4(name, 'Checking out '.spec.commit) - let out = s:checkout(spec) + let [out, error] = s:checkout(spec) elseif has_key(spec, 'tag') let tag = spec.tag if tag =~ '\*' @@ -1305,19 +1311,16 @@ function! s:update_finish() endif call s:log4(name, 'Checking out '.tag) let out = s:system('git checkout -q '.plug#shellescape(tag).' -- 2>&1', spec.dir) - else - let branch = s:git_origin_branch(spec) - call s:log4(name, 'Merging origin/'.s:esc(branch)) - let out = s:system('git checkout -q '.plug#shellescape(branch).' -- 2>&1' - \. (has_key(s:update.new, name) ? '' : ('&& git merge --ff-only '.plug#shellescape('origin/'.branch).' 2>&1')), spec.dir) + let error = v:shell_error endif - if !v:shell_error && filereadable(spec.dir.'/.gitmodules') && + if !error && filereadable(spec.dir.'/.gitmodules') && \ (s:update.force || has_key(s:update.new, name) || s:is_updated(spec.dir)) call s:log4(name, 'Updating submodules. This may take a while.') let out .= s:bang('git submodule update --init --recursive'.s:submodule_opt.' 2>&1', spec.dir) + let error = v:shell_error endif let msg = s:format_message(v:shell_error ? 'x': '-', name, out) - if v:shell_error + if error call add(s:update.errors, name) call s:regress_bar() silent execute pos 'd _' @@ -1341,7 +1344,12 @@ function! s:update_finish() endif endfunction -function! s:job_abort() +function! s:mark_aborted(name, message) + let attrs = { 'running': 0, 'error': 1, 'abort': 1, 'lines': [a:message] } + let s:jobs[a:name] = extend(get(s:jobs, a:name, {}), attrs) +endfunction + +function! s:job_abort(cancel) if (!s:nvim && !s:vim8) || !exists('s:jobs') return endif @@ -1355,8 +1363,18 @@ function! s:job_abort() if j.new call s:rm_rf(g:plugs[name].dir) endif + if a:cancel + call s:mark_aborted(name, 'Aborted') + endif endfor - let s:jobs = {} + + if a:cancel + for todo in values(s:update.todo) + let todo.abort = 1 + endfor + else + let s:jobs = {} + endif endfunction function! s:last_non_empty_line(lines) @@ -1370,6 +1388,16 @@ function! s:last_non_empty_line(lines) return '' endfunction +function! s:bullet_for(job, ...) + if a:job.running + return a:job.new ? '+' : '*' + endif + if get(a:job, 'abort', 0) + return '~' + endif + return a:job.error ? 'x' : get(a:000, 0, '-') +endfunction + function! s:job_out_cb(self, data) abort let self = a:self let data = remove(self.lines, -1) . a:data @@ -1378,9 +1406,10 @@ function! s:job_out_cb(self, data) abort " To reduce the number of buffer updates let self.tick = get(self, 'tick', -1) + 1 if !self.running || self.tick % len(s:jobs) == 0 - let bullet = self.running ? (self.new ? '+' : '*') : (self.error ? 'x' : '-') let result = self.error ? join(self.lines, "\n") : s:last_non_empty_line(self.lines) - call s:log(bullet, self.name, result) + if len(result) + call s:log(s:bullet_for(self), self.name, result) + endif endif endfunction @@ -1393,7 +1422,7 @@ endfunction function! s:job_cb(fn, job, ch, data) if !s:plug_window_exists() " plug window closed - return s:job_abort() + return s:job_abort(0) endif call call(a:fn, [a:job, a:data]) endfunction @@ -1404,16 +1433,17 @@ function! s:nvim_cb(job_id, data, event) dict abort \ s:job_cb('s:job_exit_cb', self, 0, a:data) endfunction -function! s:spawn(name, cmd, opts) - let job = { 'name': a:name, 'running': 1, 'error': 0, 'lines': [''], - \ 'new': get(a:opts, 'new', 0) } +function! s:spawn(name, spec, queue, opts) + let job = { 'name': a:name, 'spec': a:spec, 'running': 1, 'error': 0, 'lines': [''], + \ 'new': get(a:opts, 'new', 0), 'queue': copy(a:queue) } + let Item = remove(job.queue, 0) + let argv = type(Item) == s:TYPE.funcref ? call(Item, [a:spec]) : Item let s:jobs[a:name] = job if s:nvim if has_key(a:opts, 'dir') let job.cwd = a:opts.dir endif - let argv = a:cmd call extend(job, { \ 'on_stdout': function('s:nvim_cb'), \ 'on_stderr': function('s:nvim_cb'), @@ -1429,7 +1459,7 @@ function! s:spawn(name, cmd, opts) \ 'Invalid arguments (or job table is full)'] endif elseif s:vim8 - let cmd = join(map(copy(a:cmd), 'plug#shellescape(v:val, {"script": 0})')) + let cmd = join(map(copy(argv), 'plug#shellescape(v:val, {"script": 0})')) if has_key(a:opts, 'dir') let cmd = s:with_cd(cmd, a:opts.dir, 0) endif @@ -1449,27 +1479,33 @@ function! s:spawn(name, cmd, opts) let job.lines = ['Failed to start job'] endif else - let job.lines = s:lines(call('s:system', has_key(a:opts, 'dir') ? [a:cmd, a:opts.dir] : [a:cmd])) + let job.lines = s:lines(call('s:system', has_key(a:opts, 'dir') ? [argv, a:opts.dir] : [argv])) let job.error = v:shell_error != 0 let job.running = 0 endif endfunction function! s:reap(name) - let job = s:jobs[a:name] + let job = remove(s:jobs, a:name) if job.error call add(s:update.errors, a:name) elseif get(job, 'new', 0) let s:update.new[a:name] = 1 endif - let s:update.bar .= job.error ? 'x' : '=' - let bullet = job.error ? 'x' : '-' + let more = len(get(job, 'queue', [])) let result = job.error ? join(job.lines, "\n") : s:last_non_empty_line(job.lines) - call s:log(bullet, a:name, empty(result) ? 'OK' : result) - call s:bar() + if len(result) + call s:log(s:bullet_for(job), a:name, result) + endif - call remove(s:jobs, a:name) + if !job.error && more + let job.spec.queue = job.queue + let s:update.todo[a:name] = job.spec + else + let s:update.bar .= s:bullet_for(job, '=') + call s:bar() + endif endfunction function! s:bar() @@ -1522,6 +1558,16 @@ function! s:update_vim() call s:tick() endfunction +function! s:checkout_command(spec) + let a:spec.branch = s:git_origin_branch(a:spec) + return ['git', 'checkout', '-q', a:spec.branch, '--'] +endfunction + +function! s:merge_command(spec) + let a:spec.branch = s:git_origin_branch(a:spec) + return ['git', 'merge', '--ff-only', 'origin/'.a:spec.branch] +endfunction + function! s:tick() let pull = s:update.pull let prog = s:progress_opt(s:nvim || s:vim8) @@ -1536,24 +1582,39 @@ while 1 " Without TCO, Vim stack is bound to explode let name = keys(s:update.todo)[0] let spec = remove(s:update.todo, name) - let new = empty(globpath(spec.dir, '.git', 1)) + if get(spec, 'abort', 0) + call s:mark_aborted(name, 'Skipped') + call s:reap(name) + continue + endif - call s:log(new ? '+' : '*', name, pull ? 'Updating ...' : 'Installing ...') - redraw + let queue = get(spec, 'queue', []) + let new = empty(globpath(spec.dir, '.git', 1)) + + if empty(queue) + call s:log(new ? '+' : '*', name, pull ? 'Updating ...' : 'Installing ...') + redraw + endif let has_tag = has_key(spec, 'tag') - if !new + if len(queue) + call s:spawn(name, spec, queue, { 'dir': spec.dir }) + elseif !new let [error, _] = s:git_validate(spec, 0) if empty(error) if pull - let cmd = s:git_version_requirement(2) ? ['git', '-c', 'credential.helper=', 'fetch'] : ['git', 'fetch'] + let cmd = s:disable_credential_helper() ? ['git', '-c', 'credential.helper=', 'fetch'] : ['git', 'fetch'] if has_tag && !empty(globpath(spec.dir, '.git/shallow')) call extend(cmd, ['--depth', '99999999']) endif if !empty(prog) call add(cmd, prog) endif - call s:spawn(name, cmd, { 'dir': spec.dir }) + let queue = [cmd, split('git remote set-head origin -a')] + if !has_tag && !has_key(spec, 'commit') + call extend(queue, [function('s:checkout_command'), function('s:merge_command')]) + endif + call s:spawn(name, spec, queue, { 'dir': spec.dir }) else let s:jobs[name] = { 'running': 0, 'lines': ['Already installed'], 'error': 0 } endif @@ -1568,7 +1629,7 @@ while 1 " Without TCO, Vim stack is bound to explode if !empty(prog) call add(cmd, prog) endif - call s:spawn(name, extend(cmd, [spec.uri, s:trim(spec.dir)]), { 'new': 1 }) + call s:spawn(name, spec, [extend(cmd, [spec.uri, s:trim(spec.dir)]), function('s:checkout_command'), function('s:merge_command')], { 'new': 1 }) endif if !s:jobs[name].running @@ -2267,7 +2328,10 @@ endfunction function! s:with_cd(cmd, dir, ...) let script = a:0 > 0 ? a:1 : 1 - return printf('cd%s %s && %s', s:is_win ? ' /d' : '', plug#shellescape(a:dir, {'script': script}), a:cmd) + let pwsh = s:is_powershell(&shell) + let cd = s:is_win && !pwsh ? 'cd /d' : 'cd' + let sep = pwsh ? ';' : '&&' + return printf('%s %s %s %s', cd, plug#shellescape(a:dir, {'script': script, 'shell': &shell}), sep, a:cmd) endfunction function! s:system(cmd, ...) @@ -2344,18 +2408,21 @@ function! s:git_validate(spec, check_branch) \ current_branch, origin_branch) endif if empty(err) - let [ahead, behind] = split(s:lastline(s:system([ - \ 'git', 'rev-list', '--count', '--left-right', - \ printf('HEAD...origin/%s', origin_branch) - \ ], a:spec.dir)), '\t') - if !v:shell_error && ahead - if behind + let ahead_behind = split(s:lastline(s:system([ + \ 'git', 'rev-list', '--count', '--left-right', + \ printf('HEAD...origin/%s', origin_branch) + \ ], a:spec.dir)), '\t') + if v:shell_error || len(ahead_behind) != 2 + let err = "Failed to compare with the origin. The default branch might have changed.\nPlugClean required." + else + let [ahead, behind] = ahead_behind + if ahead && behind " Only mention PlugClean if diverged, otherwise it's likely to be " pushable (and probably not that messed up). let err = printf( \ "Diverged from origin/%s (%d commit(s) ahead and %d commit(s) behind!\n" \ .'Backup local changes and run PlugClean and PlugUpdate to reinstall it.', origin_branch, ahead, behind) - else + elseif ahead let err = printf("Ahead of origin/%s by %d commit(s).\n" \ .'Cannot update until local changes are pushed.', \ origin_branch, ahead) @@ -2387,7 +2454,7 @@ function! s:clean(force) let errs = {} let [cnt, total] = [0, len(g:plugs)] for [name, spec] in items(g:plugs) - if !s:is_managed(name) + if !s:is_managed(name) || get(spec, 'frozen', 0) call add(dirs, spec.dir) else let [err, clean] = s:git_validate(spec, 1) @@ -2619,26 +2686,34 @@ function! s:preview_commit() let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7,9}') if empty(sha) - return + let name = matchstr(getline('.'), '^- \zs[^:]*\ze:$') + if empty(name) + return + endif + let title = 'HEAD@{1}..' + let command = 'git diff --no-color HEAD@{1}' + else + let title = sha + let command = 'git show --no-color --pretty=medium '.sha + let name = s:find_name(line('.')) endif - let name = s:find_name(line('.')) if empty(name) || !has_key(g:plugs, name) || !isdirectory(g:plugs[name].dir) return endif - if exists('g:plug_pwindow') && !s:is_preview_window_open() - execute g:plug_pwindow - execute 'e' sha + if !s:is_preview_window_open() + execute get(g:, 'plug_pwindow', 'vertical rightbelow new') + execute 'e' title else - execute 'pedit' sha + execute 'pedit' title wincmd P endif - setlocal previewwindow filetype=git buftype=nofile nobuflisted modifiable + setlocal previewwindow filetype=git buftype=nofile bufhidden=wipe nobuflisted modifiable let batchfile = '' try let [sh, shellcmdflag, shrd] = s:chsh(1) - let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && git show --no-color --pretty=medium '.sha + let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && '.command if s:is_win let [batchfile, cmd] = s:batchfile(cmd) endif @@ -2764,9 +2839,9 @@ function! s:snapshot(force, ...) abort 1 let anchor = line('$') - 3 let names = sort(keys(filter(copy(g:plugs), - \'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)'))) + \'has_key(v:val, "uri") && isdirectory(v:val.dir)'))) for name in reverse(names) - let sha = s:git_revision(g:plugs[name].dir) + let sha = has_key(g:plugs[name], 'commit') ? g:plugs[name].commit : s:git_revision(g:plugs[name].dir) if !empty(sha) call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha)) redraw diff --git a/vim/.config/vim/autoload/plug.vim.old b/vim/.config/vim/autoload/plug.vim.old new file mode 100644 index 0000000..6c0fd20 --- /dev/null +++ b/vim/.config/vim/autoload/plug.vim.old @@ -0,0 +1,2802 @@ +" vim-plug: Vim plugin manager +" ============================ +" +" Download plug.vim and put it in ~/.vim/autoload +" +" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ +" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +" +" Edit your .vimrc +" +" call plug#begin('~/.vim/plugged') +" +" " Make sure you use single quotes +" +" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align +" Plug 'junegunn/vim-easy-align' +" +" " Any valid git URL is allowed +" Plug 'https://github.com/junegunn/vim-github-dashboard.git' +" +" " Multiple Plug commands can be written in a single line using | separators +" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' +" +" " On-demand loading +" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } +" Plug 'tpope/vim-fireplace', { 'for': 'clojure' } +" +" " Using a non-default branch +" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } +" +" " Using a tagged release; wildcard allowed (requires git 1.9.2 or above) +" Plug 'fatih/vim-go', { 'tag': '*' } +" +" " Plugin options +" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } +" +" " Plugin outside ~/.vim/plugged with post-update hook +" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } +" +" " Unmanaged plugin (manually installed and updated) +" Plug '~/my-prototype-plugin' +" +" " Initialize plugin system +" call plug#end() +" +" Then reload .vimrc and :PlugInstall to install plugins. +" +" Plug options: +" +"| Option | Description | +"| ----------------------- | ------------------------------------------------ | +"| `branch`/`tag`/`commit` | Branch/tag/commit of the repository to use | +"| `rtp` | Subdirectory that contains Vim plugin | +"| `dir` | Custom directory for the plugin | +"| `as` | Use different name for the plugin | +"| `do` | Post-update hook (string or funcref) | +"| `on` | On-demand loading: Commands or ``-mappings | +"| `for` | On-demand loading: File types | +"| `frozen` | Do not update unless explicitly specified | +" +" More information: https://github.com/junegunn/vim-plug +" +" +" Copyright (c) 2017 Junegunn Choi +" +" MIT License +" +" Permission is hereby granted, free of charge, to any person obtaining +" a copy of this software and associated documentation files (the +" "Software"), to deal in the Software without restriction, including +" without limitation the rights to use, copy, modify, merge, publish, +" distribute, sublicense, and/or sell copies of the Software, and to +" permit persons to whom the Software is furnished to do so, subject to +" the following conditions: +" +" The above copyright notice and this permission notice shall be +" included in all copies or substantial portions of the Software. +" +" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +if exists('g:loaded_plug') + finish +endif +let g:loaded_plug = 1 + +let s:cpo_save = &cpo +set cpo&vim + +let s:plug_src = 'https://github.com/junegunn/vim-plug.git' +let s:plug_tab = get(s:, 'plug_tab', -1) +let s:plug_buf = get(s:, 'plug_buf', -1) +let s:mac_gui = has('gui_macvim') && has('gui_running') +let s:is_win = has('win32') +let s:nvim = has('nvim-0.2') || (has('nvim') && exists('*jobwait') && !s:is_win) +let s:vim8 = has('patch-8.0.0039') && exists('*job_start') +if s:is_win && &shellslash + set noshellslash + let s:me = resolve(expand(':p')) + set shellslash +else + let s:me = resolve(expand(':p')) +endif +let s:base_spec = { 'branch': '', 'frozen': 0 } +let s:TYPE = { +\ 'string': type(''), +\ 'list': type([]), +\ 'dict': type({}), +\ 'funcref': type(function('call')) +\ } +let s:loaded = get(s:, 'loaded', {}) +let s:triggers = get(s:, 'triggers', {}) + +function! s:is_powershell(shell) + return a:shell =~# 'powershell\(\.exe\)\?$' || a:shell =~# 'pwsh\(\.exe\)\?$' +endfunction + +function! s:isabsolute(dir) abort + return a:dir =~# '^/' || (has('win32') && a:dir =~? '^\%(\\\|[A-Z]:\)') +endfunction + +function! s:git_dir(dir) abort + let gitdir = s:trim(a:dir) . '/.git' + if isdirectory(gitdir) + return gitdir + endif + if !filereadable(gitdir) + return '' + endif + let gitdir = matchstr(get(readfile(gitdir), 0, ''), '^gitdir: \zs.*') + if len(gitdir) && !s:isabsolute(gitdir) + let gitdir = a:dir . '/' . gitdir + endif + return isdirectory(gitdir) ? gitdir : '' +endfunction + +function! s:git_origin_url(dir) abort + let gitdir = s:git_dir(a:dir) + let config = gitdir . '/config' + if empty(gitdir) || !filereadable(config) + return '' + endif + return matchstr(join(readfile(config)), '\[remote "origin"\].\{-}url\s*=\s*\zs\S*\ze') +endfunction + +function! s:git_revision(dir) abort + let gitdir = s:git_dir(a:dir) + let head = gitdir . '/HEAD' + if empty(gitdir) || !filereadable(head) + return '' + endif + + let line = get(readfile(head), 0, '') + let ref = matchstr(line, '^ref: \zs.*') + if empty(ref) + return line + endif + + if filereadable(gitdir . '/' . ref) + return get(readfile(gitdir . '/' . ref), 0, '') + endif + + if filereadable(gitdir . '/packed-refs') + for line in readfile(gitdir . '/packed-refs') + if line =~# ' ' . ref + return matchstr(line, '^[0-9a-f]*') + endif + endfor + endif + + return '' +endfunction + +function! s:git_local_branch(dir) abort + let gitdir = s:git_dir(a:dir) + let head = gitdir . '/HEAD' + if empty(gitdir) || !filereadable(head) + return '' + endif + let branch = matchstr(get(readfile(head), 0, ''), '^ref: refs/heads/\zs.*') + return len(branch) ? branch : 'HEAD' +endfunction + +function! s:git_origin_branch(spec) + if len(a:spec.branch) + return a:spec.branch + endif + + " The file may not be present if this is a local repository + let gitdir = s:git_dir(a:spec.dir) + let origin_head = gitdir.'/refs/remotes/origin/HEAD' + if len(gitdir) && filereadable(origin_head) + return matchstr(get(readfile(origin_head), 0, ''), + \ '^ref: refs/remotes/origin/\zs.*') + endif + + " The command may not return the name of a branch in detached HEAD state + let result = s:lines(s:system('git symbolic-ref --short HEAD', a:spec.dir)) + return v:shell_error ? '' : result[-1] +endfunction + +if s:is_win + function! s:plug_call(fn, ...) + let shellslash = &shellslash + try + set noshellslash + return call(a:fn, a:000) + finally + let &shellslash = shellslash + endtry + endfunction +else + function! s:plug_call(fn, ...) + return call(a:fn, a:000) + endfunction +endif + +function! s:plug_getcwd() + return s:plug_call('getcwd') +endfunction + +function! s:plug_fnamemodify(fname, mods) + return s:plug_call('fnamemodify', a:fname, a:mods) +endfunction + +function! s:plug_expand(fmt) + return s:plug_call('expand', a:fmt, 1) +endfunction + +function! s:plug_tempname() + return s:plug_call('tempname') +endfunction + +function! plug#begin(...) + if a:0 > 0 + let s:plug_home_org = a:1 + let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p')) + elseif exists('g:plug_home') + let home = s:path(g:plug_home) + elseif !empty(&rtp) + let home = s:path(split(&rtp, ',')[0]) . '/plugged' + else + return s:err('Unable to determine plug home. Try calling plug#begin() with a path argument.') + endif + if s:plug_fnamemodify(home, ':t') ==# 'plugin' && s:plug_fnamemodify(home, ':h') ==# s:first_rtp + return s:err('Invalid plug home. '.home.' is a standard Vim runtime path and is not allowed.') + endif + + let g:plug_home = home + let g:plugs = {} + let g:plugs_order = [] + let s:triggers = {} + + call s:define_commands() + return 1 +endfunction + +function! s:define_commands() + command! -nargs=+ -bar Plug call plug#() + if !executable('git') + return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.') + endif + if has('win32') + \ && &shellslash + \ && (&shell =~# 'cmd\(\.exe\)\?$' || s:is_powershell(&shell)) + return s:err('vim-plug does not support shell, ' . &shell . ', when shellslash is set.') + endif + if !has('nvim') + \ && (has('win32') || has('win32unix')) + \ && !has('multi_byte') + return s:err('Vim needs +multi_byte feature on Windows to run shell commands. Enable +iconv for best results.') + endif + command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install(0, []) + command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate call s:update(0, []) + command! -nargs=0 -bar -bang PlugClean call s:clean(0) + command! -nargs=0 -bar PlugUpgrade if s:upgrade() | execute 'source' s:esc(s:me) | endif + command! -nargs=0 -bar PlugStatus call s:status() + command! -nargs=0 -bar PlugDiff call s:diff() + command! -nargs=? -bar -bang -complete=file PlugSnapshot call s:snapshot(0, ) +endfunction + +function! s:to_a(v) + return type(a:v) == s:TYPE.list ? a:v : [a:v] +endfunction + +function! s:to_s(v) + return type(a:v) == s:TYPE.string ? a:v : join(a:v, "\n") . "\n" +endfunction + +function! s:glob(from, pattern) + return s:lines(globpath(a:from, a:pattern)) +endfunction + +function! s:source(from, ...) + let found = 0 + for pattern in a:000 + for vim in s:glob(a:from, pattern) + execute 'source' s:esc(vim) + let found = 1 + endfor + endfor + return found +endfunction + +function! s:assoc(dict, key, val) + let a:dict[a:key] = add(get(a:dict, a:key, []), a:val) +endfunction + +function! s:ask(message, ...) + call inputsave() + echohl WarningMsg + let answer = input(a:message.(a:0 ? ' (y/N/a) ' : ' (y/N) ')) + echohl None + call inputrestore() + echo "\r" + return (a:0 && answer =~? '^a') ? 2 : (answer =~? '^y') ? 1 : 0 +endfunction + +function! s:ask_no_interrupt(...) + try + return call('s:ask', a:000) + catch + return 0 + endtry +endfunction + +function! s:lazy(plug, opt) + return has_key(a:plug, a:opt) && + \ (empty(s:to_a(a:plug[a:opt])) || + \ !isdirectory(a:plug.dir) || + \ len(s:glob(s:rtp(a:plug), 'plugin')) || + \ len(s:glob(s:rtp(a:plug), 'after/plugin'))) +endfunction + +function! plug#end() + if !exists('g:plugs') + return s:err('plug#end() called without calling plug#begin() first') + endif + + if exists('#PlugLOD') + augroup PlugLOD + autocmd! + augroup END + augroup! PlugLOD + endif + let lod = { 'ft': {}, 'map': {}, 'cmd': {} } + + if exists('g:did_load_filetypes') + filetype off + endif + for name in g:plugs_order + if !has_key(g:plugs, name) + continue + endif + let plug = g:plugs[name] + if get(s:loaded, name, 0) || !s:lazy(plug, 'on') && !s:lazy(plug, 'for') + let s:loaded[name] = 1 + continue + endif + + if has_key(plug, 'on') + let s:triggers[name] = { 'map': [], 'cmd': [] } + for cmd in s:to_a(plug.on) + if cmd =~? '^.\+' + if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i')) + call s:assoc(lod.map, cmd, name) + endif + call add(s:triggers[name].map, cmd) + elseif cmd =~# '^[A-Z]' + let cmd = substitute(cmd, '!*$', '', '') + if exists(':'.cmd) != 2 + call s:assoc(lod.cmd, cmd, name) + endif + call add(s:triggers[name].cmd, cmd) + else + call s:err('Invalid `on` option: '.cmd. + \ '. Should start with an uppercase letter or ``.') + endif + endfor + endif + + if has_key(plug, 'for') + let types = s:to_a(plug.for) + if !empty(types) + augroup filetypedetect + call s:source(s:rtp(plug), 'ftdetect/**/*.vim', 'after/ftdetect/**/*.vim') + augroup END + endif + for type in types + call s:assoc(lod.ft, type, name) + endfor + endif + endfor + + for [cmd, names] in items(lod.cmd) + execute printf( + \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "", , , , %s)', + \ cmd, string(cmd), string(names)) + endfor + + for [map, names] in items(lod.map) + for [mode, map_prefix, key_prefix] in + \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] + execute printf( + \ '%snoremap %s %s:call lod_map(%s, %s, %s, "%s")', + \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) + endfor + endfor + + for [ft, names] in items(lod.ft) + augroup PlugLOD + execute printf('autocmd FileType %s call lod_ft(%s, %s)', + \ ft, string(ft), string(names)) + augroup END + endfor + + call s:reorg_rtp() + filetype plugin indent on + if has('vim_starting') + if has('syntax') && !exists('g:syntax_on') + syntax enable + end + else + call s:reload_plugins() + endif +endfunction + +function! s:loaded_names() + return filter(copy(g:plugs_order), 'get(s:loaded, v:val, 0)') +endfunction + +function! s:load_plugin(spec) + call s:source(s:rtp(a:spec), 'plugin/**/*.vim', 'after/plugin/**/*.vim') +endfunction + +function! s:reload_plugins() + for name in s:loaded_names() + call s:load_plugin(g:plugs[name]) + endfor +endfunction + +function! s:trim(str) + return substitute(a:str, '[\/]\+$', '', '') +endfunction + +function! s:version_requirement(val, min) + for idx in range(0, len(a:min) - 1) + let v = get(a:val, idx, 0) + if v < a:min[idx] | return 0 + elseif v > a:min[idx] | return 1 + endif + endfor + return 1 +endfunction + +function! s:git_version_requirement(...) + if !exists('s:git_version') + let s:git_version = map(split(split(s:system(['git', '--version']))[2], '\.'), 'str2nr(v:val)') + endif + return s:version_requirement(s:git_version, a:000) +endfunction + +function! s:progress_opt(base) + return a:base && !s:is_win && + \ s:git_version_requirement(1, 7, 1) ? '--progress' : '' +endfunction + +function! s:rtp(spec) + return s:path(a:spec.dir . get(a:spec, 'rtp', '')) +endfunction + +if s:is_win + function! s:path(path) + return s:trim(substitute(a:path, '/', '\', 'g')) + endfunction + + function! s:dirpath(path) + return s:path(a:path) . '\' + endfunction + + function! s:is_local_plug(repo) + return a:repo =~? '^[a-z]:\|^[%~]' + endfunction + + " Copied from fzf + function! s:wrap_cmds(cmds) + let cmds = [ + \ '@echo off', + \ 'setlocal enabledelayedexpansion'] + \ + (type(a:cmds) == type([]) ? a:cmds : [a:cmds]) + \ + ['endlocal'] + if has('iconv') + if !exists('s:codepage') + let s:codepage = libcallnr('kernel32.dll', 'GetACP', 0) + endif + return map(cmds, printf('iconv(v:val."\r", "%s", "cp%d")', &encoding, s:codepage)) + endif + return map(cmds, 'v:val."\r"') + endfunction + + function! s:batchfile(cmd) + let batchfile = s:plug_tempname().'.bat' + call writefile(s:wrap_cmds(a:cmd), batchfile) + let cmd = plug#shellescape(batchfile, {'shell': &shell, 'script': 0}) + if s:is_powershell(&shell) + let cmd = '& ' . cmd + endif + return [batchfile, cmd] + endfunction +else + function! s:path(path) + return s:trim(a:path) + endfunction + + function! s:dirpath(path) + return substitute(a:path, '[/\\]*$', '/', '') + endfunction + + function! s:is_local_plug(repo) + return a:repo[0] =~ '[/$~]' + endfunction +endif + +function! s:err(msg) + echohl ErrorMsg + echom '[vim-plug] '.a:msg + echohl None +endfunction + +function! s:warn(cmd, msg) + echohl WarningMsg + execute a:cmd 'a:msg' + echohl None +endfunction + +function! s:esc(path) + return escape(a:path, ' ') +endfunction + +function! s:escrtp(path) + return escape(a:path, ' ,') +endfunction + +function! s:remove_rtp() + for name in s:loaded_names() + let rtp = s:rtp(g:plugs[name]) + execute 'set rtp-='.s:escrtp(rtp) + let after = globpath(rtp, 'after') + if isdirectory(after) + execute 'set rtp-='.s:escrtp(after) + endif + endfor +endfunction + +function! s:reorg_rtp() + if !empty(s:first_rtp) + execute 'set rtp-='.s:first_rtp + execute 'set rtp-='.s:last_rtp + endif + + " &rtp is modified from outside + if exists('s:prtp') && s:prtp !=# &rtp + call s:remove_rtp() + unlet! s:middle + endif + + let s:middle = get(s:, 'middle', &rtp) + let rtps = map(s:loaded_names(), 's:rtp(g:plugs[v:val])') + let afters = filter(map(copy(rtps), 'globpath(v:val, "after")'), '!empty(v:val)') + let rtp = join(map(rtps, 'escape(v:val, ",")'), ',') + \ . ','.s:middle.',' + \ . join(map(afters, 'escape(v:val, ",")'), ',') + let &rtp = substitute(substitute(rtp, ',,*', ',', 'g'), '^,\|,$', '', 'g') + let s:prtp = &rtp + + if !empty(s:first_rtp) + execute 'set rtp^='.s:first_rtp + execute 'set rtp+='.s:last_rtp + endif +endfunction + +function! s:doautocmd(...) + if exists('#'.join(a:000, '#')) + execute 'doautocmd' ((v:version > 703 || has('patch442')) ? '' : '') join(a:000) + endif +endfunction + +function! s:dobufread(names) + for name in a:names + let path = s:rtp(g:plugs[name]) + for dir in ['ftdetect', 'ftplugin', 'after/ftdetect', 'after/ftplugin'] + if len(finddir(dir, path)) + if exists('#BufRead') + doautocmd BufRead + endif + return + endif + endfor + endfor +endfunction + +function! plug#load(...) + if a:0 == 0 + return s:err('Argument missing: plugin name(s) required') + endif + if !exists('g:plugs') + return s:err('plug#begin was not called') + endif + let names = a:0 == 1 && type(a:1) == s:TYPE.list ? a:1 : a:000 + let unknowns = filter(copy(names), '!has_key(g:plugs, v:val)') + if !empty(unknowns) + let s = len(unknowns) > 1 ? 's' : '' + return s:err(printf('Unknown plugin%s: %s', s, join(unknowns, ', '))) + end + let unloaded = filter(copy(names), '!get(s:loaded, v:val, 0)') + if !empty(unloaded) + for name in unloaded + call s:lod([name], ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) + endfor + call s:dobufread(unloaded) + return 1 + end + return 0 +endfunction + +function! s:remove_triggers(name) + if !has_key(s:triggers, a:name) + return + endif + for cmd in s:triggers[a:name].cmd + execute 'silent! delc' cmd + endfor + for map in s:triggers[a:name].map + execute 'silent! unmap' map + execute 'silent! iunmap' map + endfor + call remove(s:triggers, a:name) +endfunction + +function! s:lod(names, types, ...) + for name in a:names + call s:remove_triggers(name) + let s:loaded[name] = 1 + endfor + call s:reorg_rtp() + + for name in a:names + let rtp = s:rtp(g:plugs[name]) + for dir in a:types + call s:source(rtp, dir.'/**/*.vim') + endfor + if a:0 + if !s:source(rtp, a:1) && !empty(s:glob(rtp, a:2)) + execute 'runtime' a:1 + endif + call s:source(rtp, a:2) + endif + call s:doautocmd('User', name) + endfor +endfunction + +function! s:lod_ft(pat, names) + let syn = 'syntax/'.a:pat.'.vim' + call s:lod(a:names, ['plugin', 'after/plugin'], syn, 'after/'.syn) + execute 'autocmd! PlugLOD FileType' a:pat + call s:doautocmd('filetypeplugin', 'FileType') + call s:doautocmd('filetypeindent', 'FileType') +endfunction + +function! s:lod_cmd(cmd, bang, l1, l2, args, names) + call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) + call s:dobufread(a:names) + execute printf('%s%s%s %s', (a:l1 == a:l2 ? '' : (a:l1.','.a:l2)), a:cmd, a:bang, a:args) +endfunction + +function! s:lod_map(map, names, with_prefix, prefix) + call s:lod(a:names, ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) + call s:dobufread(a:names) + let extra = '' + while 1 + let c = getchar(0) + if c == 0 + break + endif + let extra .= nr2char(c) + endwhile + + if a:with_prefix + let prefix = v:count ? v:count : '' + let prefix .= '"'.v:register.a:prefix + if mode(1) == 'no' + if v:operator == 'c' + let prefix = "\" . prefix + endif + let prefix .= v:operator + endif + call feedkeys(prefix, 'n') + endif + call feedkeys(substitute(a:map, '^', "\", '') . extra) +endfunction + +function! plug#(repo, ...) + if a:0 > 1 + return s:err('Invalid number of arguments (1..2)') + endif + + try + let repo = s:trim(a:repo) + let opts = a:0 == 1 ? s:parse_options(a:1) : s:base_spec + let name = get(opts, 'as', s:plug_fnamemodify(repo, ':t:s?\.git$??')) + let spec = extend(s:infer_properties(name, repo), opts) + if !has_key(g:plugs, name) + call add(g:plugs_order, name) + endif + let g:plugs[name] = spec + let s:loaded[name] = get(s:loaded, name, 0) + catch + return s:err(repo . ' ' . v:exception) + endtry +endfunction + +function! s:parse_options(arg) + let opts = copy(s:base_spec) + let type = type(a:arg) + let opt_errfmt = 'Invalid argument for "%s" option of :Plug (expected: %s)' + if type == s:TYPE.string + if empty(a:arg) + throw printf(opt_errfmt, 'tag', 'string') + endif + let opts.tag = a:arg + elseif type == s:TYPE.dict + for opt in ['branch', 'tag', 'commit', 'rtp', 'dir', 'as'] + if has_key(a:arg, opt) + \ && (type(a:arg[opt]) != s:TYPE.string || empty(a:arg[opt])) + throw printf(opt_errfmt, opt, 'string') + endif + endfor + for opt in ['on', 'for'] + if has_key(a:arg, opt) + \ && type(a:arg[opt]) != s:TYPE.list + \ && (type(a:arg[opt]) != s:TYPE.string || empty(a:arg[opt])) + throw printf(opt_errfmt, opt, 'string or list') + endif + endfor + if has_key(a:arg, 'do') + \ && type(a:arg.do) != s:TYPE.funcref + \ && (type(a:arg.do) != s:TYPE.string || empty(a:arg.do)) + throw printf(opt_errfmt, 'do', 'string or funcref') + endif + call extend(opts, a:arg) + if has_key(opts, 'dir') + let opts.dir = s:dirpath(s:plug_expand(opts.dir)) + endif + else + throw 'Invalid argument type (expected: string or dictionary)' + endif + return opts +endfunction + +function! s:infer_properties(name, repo) + let repo = a:repo + if s:is_local_plug(repo) + return { 'dir': s:dirpath(s:plug_expand(repo)) } + else + if repo =~ ':' + let uri = repo + else + if repo !~ '/' + throw printf('Invalid argument: %s (implicit `vim-scripts'' expansion is deprecated)', repo) + endif + let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git') + let uri = printf(fmt, repo) + endif + return { 'dir': s:dirpath(g:plug_home.'/'.a:name), 'uri': uri } + endif +endfunction + +function! s:install(force, names) + call s:update_impl(0, a:force, a:names) +endfunction + +function! s:update(force, names) + call s:update_impl(1, a:force, a:names) +endfunction + +function! plug#helptags() + if !exists('g:plugs') + return s:err('plug#begin was not called') + endif + for spec in values(g:plugs) + let docd = join([s:rtp(spec), 'doc'], '/') + if isdirectory(docd) + silent! execute 'helptags' s:esc(docd) + endif + endfor + return 1 +endfunction + +function! s:syntax() + syntax clear + syntax region plug1 start=/\%1l/ end=/\%2l/ contains=plugNumber + syntax region plug2 start=/\%2l/ end=/\%3l/ contains=plugBracket,plugX + syn match plugNumber /[0-9]\+[0-9.]*/ contained + syn match plugBracket /[[\]]/ contained + syn match plugX /x/ contained + syn match plugDash /^-\{1}\ / + syn match plugPlus /^+/ + syn match plugStar /^*/ + syn match plugMessage /\(^- \)\@<=.*/ + syn match plugName /\(^- \)\@<=[^ ]*:/ + syn match plugSha /\%(: \)\@<=[0-9a-f]\{4,}$/ + syn match plugTag /(tag: [^)]\+)/ + syn match plugInstall /\(^+ \)\@<=[^:]*/ + syn match plugUpdate /\(^* \)\@<=[^:]*/ + syn match plugCommit /^ \X*[0-9a-f]\{7,9} .*/ contains=plugRelDate,plugEdge,plugTag + syn match plugEdge /^ \X\+$/ + syn match plugEdge /^ \X*/ contained nextgroup=plugSha + syn match plugSha /[0-9a-f]\{7,9}/ contained + syn match plugRelDate /([^)]*)$/ contained + syn match plugNotLoaded /(not loaded)$/ + syn match plugError /^x.*/ + syn region plugDeleted start=/^\~ .*/ end=/^\ze\S/ + syn match plugH2 /^.*:\n-\+$/ + syn match plugH2 /^-\{2,}/ + syn keyword Function PlugInstall PlugStatus PlugUpdate PlugClean + hi def link plug1 Title + hi def link plug2 Repeat + hi def link plugH2 Type + hi def link plugX Exception + hi def link plugBracket Structure + hi def link plugNumber Number + + hi def link plugDash Special + hi def link plugPlus Constant + hi def link plugStar Boolean + + hi def link plugMessage Function + hi def link plugName Label + hi def link plugInstall Function + hi def link plugUpdate Type + + hi def link plugError Error + hi def link plugDeleted Ignore + hi def link plugRelDate Comment + hi def link plugEdge PreProc + hi def link plugSha Identifier + hi def link plugTag Constant + + hi def link plugNotLoaded Comment +endfunction + +function! s:lpad(str, len) + return a:str . repeat(' ', a:len - len(a:str)) +endfunction + +function! s:lines(msg) + return split(a:msg, "[\r\n]") +endfunction + +function! s:lastline(msg) + return get(s:lines(a:msg), -1, '') +endfunction + +function! s:new_window() + execute get(g:, 'plug_window', 'vertical topleft new') +endfunction + +function! s:plug_window_exists() + let buflist = tabpagebuflist(s:plug_tab) + return !empty(buflist) && index(buflist, s:plug_buf) >= 0 +endfunction + +function! s:switch_in() + if !s:plug_window_exists() + return 0 + endif + + if winbufnr(0) != s:plug_buf + let s:pos = [tabpagenr(), winnr(), winsaveview()] + execute 'normal!' s:plug_tab.'gt' + let winnr = bufwinnr(s:plug_buf) + execute winnr.'wincmd w' + call add(s:pos, winsaveview()) + else + let s:pos = [winsaveview()] + endif + + setlocal modifiable + return 1 +endfunction + +function! s:switch_out(...) + call winrestview(s:pos[-1]) + setlocal nomodifiable + if a:0 > 0 + execute a:1 + endif + + if len(s:pos) > 1 + execute 'normal!' s:pos[0].'gt' + execute s:pos[1] 'wincmd w' + call winrestview(s:pos[2]) + endif +endfunction + +function! s:finish_bindings() + nnoremap R :call retry() + nnoremap D :PlugDiff + nnoremap S :PlugStatus + nnoremap U :call status_update() + xnoremap U :call status_update() + nnoremap ]] :silent! call section('') + nnoremap [[ :silent! call section('b') +endfunction + +function! s:prepare(...) + if empty(s:plug_getcwd()) + throw 'Invalid current working directory. Cannot proceed.' + endif + + for evar in ['$GIT_DIR', '$GIT_WORK_TREE'] + if exists(evar) + throw evar.' detected. Cannot proceed.' + endif + endfor + + call s:job_abort() + if s:switch_in() + if b:plug_preview == 1 + pc + endif + enew + else + call s:new_window() + endif + + nnoremap q :call close_pane() + if a:0 == 0 + call s:finish_bindings() + endif + let b:plug_preview = -1 + let s:plug_tab = tabpagenr() + let s:plug_buf = winbufnr(0) + call s:assign_name() + + for k in ['', 'L', 'o', 'X', 'd', 'dd'] + execute 'silent! unmap ' k + endfor + setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline modifiable nospell + if exists('+colorcolumn') + setlocal colorcolumn= + endif + setf vim-plug + if exists('g:syntax_on') + call s:syntax() + endif +endfunction + +function! s:close_pane() + if b:plug_preview == 1 + pc + let b:plug_preview = -1 + else + bd + endif +endfunction + +function! s:assign_name() + " Assign buffer name + let prefix = '[Plugins]' + let name = prefix + let idx = 2 + while bufexists(name) + let name = printf('%s (%s)', prefix, idx) + let idx = idx + 1 + endwhile + silent! execute 'f' fnameescape(name) +endfunction + +function! s:chsh(swap) + let prev = [&shell, &shellcmdflag, &shellredir] + if !s:is_win + set shell=sh + endif + if a:swap + if s:is_powershell(&shell) + let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s' + elseif &shell =~# 'sh' || &shell =~# 'cmd\(\.exe\)\?$' + set shellredir=>%s\ 2>&1 + endif + endif + return prev +endfunction + +function! s:bang(cmd, ...) + let batchfile = '' + try + let [sh, shellcmdflag, shrd] = s:chsh(a:0) + " FIXME: Escaping is incomplete. We could use shellescape with eval, + " but it won't work on Windows. + let cmd = a:0 ? s:with_cd(a:cmd, a:1) : a:cmd + if s:is_win + let [batchfile, cmd] = s:batchfile(cmd) + endif + let g:_plug_bang = (s:is_win && has('gui_running') ? 'silent ' : '').'!'.escape(cmd, '#!%') + execute "normal! :execute g:_plug_bang\\" + finally + unlet g:_plug_bang + let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd] + if s:is_win && filereadable(batchfile) + call delete(batchfile) + endif + endtry + return v:shell_error ? 'Exit status: ' . v:shell_error : '' +endfunction + +function! s:regress_bar() + let bar = substitute(getline(2)[1:-2], '.*\zs=', 'x', '') + call s:progress_bar(2, bar, len(bar)) +endfunction + +function! s:is_updated(dir) + return !empty(s:system_chomp(['git', 'log', '--pretty=format:%h', 'HEAD...HEAD@{1}'], a:dir)) +endfunction + +function! s:do(pull, force, todo) + for [name, spec] in items(a:todo) + if !isdirectory(spec.dir) + continue + endif + let installed = has_key(s:update.new, name) + let updated = installed ? 0 : + \ (a:pull && index(s:update.errors, name) < 0 && s:is_updated(spec.dir)) + if a:force || installed || updated + execute 'cd' s:esc(spec.dir) + call append(3, '- Post-update hook for '. name .' ... ') + let error = '' + let type = type(spec.do) + if type == s:TYPE.string + if spec.do[0] == ':' + if !get(s:loaded, name, 0) + let s:loaded[name] = 1 + call s:reorg_rtp() + endif + call s:load_plugin(spec) + try + execute spec.do[1:] + catch + let error = v:exception + endtry + if !s:plug_window_exists() + cd - + throw 'Warning: vim-plug was terminated by the post-update hook of '.name + endif + else + let error = s:bang(spec.do) + endif + elseif type == s:TYPE.funcref + try + call s:load_plugin(spec) + let status = installed ? 'installed' : (updated ? 'updated' : 'unchanged') + call spec.do({ 'name': name, 'status': status, 'force': a:force }) + catch + let error = v:exception + endtry + else + let error = 'Invalid hook type' + endif + call s:switch_in() + call setline(4, empty(error) ? (getline(4) . 'OK') + \ : ('x' . getline(4)[1:] . error)) + if !empty(error) + call add(s:update.errors, name) + call s:regress_bar() + endif + cd - + endif + endfor +endfunction + +function! s:hash_match(a, b) + return stridx(a:a, a:b) == 0 || stridx(a:b, a:a) == 0 +endfunction + +function! s:checkout(spec) + let sha = a:spec.commit + let output = s:git_revision(a:spec.dir) + if !empty(output) && !s:hash_match(sha, s:lines(output)[0]) + let credential_helper = s:git_version_requirement(2) ? '-c credential.helper= ' : '' + let output = s:system( + \ 'git '.credential_helper.'fetch --depth 999999 && git checkout '.plug#shellescape(sha).' --', a:spec.dir) + endif + return output +endfunction + +function! s:finish(pull) + let new_frozen = len(filter(keys(s:update.new), 'g:plugs[v:val].frozen')) + if new_frozen + let s = new_frozen > 1 ? 's' : '' + call append(3, printf('- Installed %d frozen plugin%s', new_frozen, s)) + endif + call append(3, '- Finishing ... ') | 4 + redraw + call plug#helptags() + call plug#end() + call setline(4, getline(4) . 'Done!') + redraw + let msgs = [] + if !empty(s:update.errors) + call add(msgs, "Press 'R' to retry.") + endif + if a:pull && len(s:update.new) < len(filter(getline(5, '$'), + \ "v:val =~ '^- ' && v:val !~# 'Already up.to.date'")) + call add(msgs, "Press 'D' to see the updated changes.") + endif + echo join(msgs, ' ') + call s:finish_bindings() +endfunction + +function! s:retry() + if empty(s:update.errors) + return + endif + echo + call s:update_impl(s:update.pull, s:update.force, + \ extend(copy(s:update.errors), [s:update.threads])) +endfunction + +function! s:is_managed(name) + return has_key(g:plugs[a:name], 'uri') +endfunction + +function! s:names(...) + return sort(filter(keys(g:plugs), 'stridx(v:val, a:1) == 0 && s:is_managed(v:val)')) +endfunction + +function! s:check_ruby() + silent! ruby require 'thread'; VIM::command("let g:plug_ruby = '#{RUBY_VERSION}'") + if !exists('g:plug_ruby') + redraw! + return s:warn('echom', 'Warning: Ruby interface is broken') + endif + let ruby_version = split(g:plug_ruby, '\.') + unlet g:plug_ruby + return s:version_requirement(ruby_version, [1, 8, 7]) +endfunction + +function! s:update_impl(pull, force, args) abort + let sync = index(a:args, '--sync') >= 0 || has('vim_starting') + let args = filter(copy(a:args), 'v:val != "--sync"') + let threads = (len(args) > 0 && args[-1] =~ '^[1-9][0-9]*$') ? + \ remove(args, -1) : get(g:, 'plug_threads', 16) + + let managed = filter(copy(g:plugs), 's:is_managed(v:key)') + let todo = empty(args) ? filter(managed, '!v:val.frozen || !isdirectory(v:val.dir)') : + \ filter(managed, 'index(args, v:key) >= 0') + + if empty(todo) + return s:warn('echo', 'No plugin to '. (a:pull ? 'update' : 'install')) + endif + + if !s:is_win && s:git_version_requirement(2, 3) + let s:git_terminal_prompt = exists('$GIT_TERMINAL_PROMPT') ? $GIT_TERMINAL_PROMPT : '' + let $GIT_TERMINAL_PROMPT = 0 + for plug in values(todo) + let plug.uri = substitute(plug.uri, + \ '^https://git::@github\.com', 'https://github.com', '') + endfor + endif + + if !isdirectory(g:plug_home) + try + call mkdir(g:plug_home, 'p') + catch + return s:err(printf('Invalid plug directory: %s. '. + \ 'Try to call plug#begin with a valid directory', g:plug_home)) + endtry + endif + + if has('nvim') && !exists('*jobwait') && threads > 1 + call s:warn('echom', '[vim-plug] Update Neovim for parallel installer') + endif + + let use_job = s:nvim || s:vim8 + let python = (has('python') || has('python3')) && !use_job + let ruby = has('ruby') && !use_job && (v:version >= 703 || v:version == 702 && has('patch374')) && !(s:is_win && has('gui_running')) && threads > 1 && s:check_ruby() + + let s:update = { + \ 'start': reltime(), + \ 'all': todo, + \ 'todo': copy(todo), + \ 'errors': [], + \ 'pull': a:pull, + \ 'force': a:force, + \ 'new': {}, + \ 'threads': (python || ruby || use_job) ? min([len(todo), threads]) : 1, + \ 'bar': '', + \ 'fin': 0 + \ } + + call s:prepare(1) + call append(0, ['', '']) + normal! 2G + silent! redraw + + " Set remote name, overriding a possible user git config's clone.defaultRemoteName + let s:clone_opt = ['--origin', 'origin'] + if get(g:, 'plug_shallow', 1) + call extend(s:clone_opt, ['--depth', '1']) + if s:git_version_requirement(1, 7, 10) + call add(s:clone_opt, '--no-single-branch') + endif + endif + + if has('win32unix') || has('wsl') + call extend(s:clone_opt, ['-c', 'core.eol=lf', '-c', 'core.autocrlf=input']) + endif + + let s:submodule_opt = s:git_version_requirement(2, 8) ? ' --jobs='.threads : '' + + " Python version requirement (>= 2.7) + if python && !has('python3') && !ruby && !use_job && s:update.threads > 1 + redir => pyv + silent python import platform; print platform.python_version() + redir END + let python = s:version_requirement( + \ map(split(split(pyv)[0], '\.'), 'str2nr(v:val)'), [2, 6]) + endif + + if (python || ruby) && s:update.threads > 1 + try + let imd = &imd + if s:mac_gui + set noimd + endif + if ruby + call s:update_ruby() + else + call s:update_python() + endif + catch + let lines = getline(4, '$') + let printed = {} + silent! 4,$d _ + for line in lines + let name = s:extract_name(line, '.', '') + if empty(name) || !has_key(printed, name) + call append('$', line) + if !empty(name) + let printed[name] = 1 + if line[0] == 'x' && index(s:update.errors, name) < 0 + call add(s:update.errors, name) + end + endif + endif + endfor + finally + let &imd = imd + call s:update_finish() + endtry + else + call s:update_vim() + while use_job && sync + sleep 100m + if s:update.fin + break + endif + endwhile + endif +endfunction + +function! s:log4(name, msg) + call setline(4, printf('- %s (%s)', a:msg, a:name)) + redraw +endfunction + +function! s:update_finish() + if exists('s:git_terminal_prompt') + let $GIT_TERMINAL_PROMPT = s:git_terminal_prompt + endif + if s:switch_in() + call append(3, '- Updating ...') | 4 + for [name, spec] in items(filter(copy(s:update.all), 'index(s:update.errors, v:key) < 0 && (s:update.force || s:update.pull || has_key(s:update.new, v:key))')) + let [pos, _] = s:logpos(name) + if !pos + continue + endif + if has_key(spec, 'commit') + call s:log4(name, 'Checking out '.spec.commit) + let out = s:checkout(spec) + elseif has_key(spec, 'tag') + let tag = spec.tag + if tag =~ '\*' + let tags = s:lines(s:system('git tag --list '.plug#shellescape(tag).' --sort -version:refname 2>&1', spec.dir)) + if !v:shell_error && !empty(tags) + let tag = tags[0] + call s:log4(name, printf('Latest tag for %s -> %s', spec.tag, tag)) + call append(3, '') + endif + endif + call s:log4(name, 'Checking out '.tag) + let out = s:system('git checkout -q '.plug#shellescape(tag).' -- 2>&1', spec.dir) + else + let branch = s:git_origin_branch(spec) + call s:log4(name, 'Merging origin/'.s:esc(branch)) + let out = s:system('git checkout -q '.plug#shellescape(branch).' -- 2>&1' + \. (has_key(s:update.new, name) ? '' : ('&& git merge --ff-only '.plug#shellescape('origin/'.branch).' 2>&1')), spec.dir) + endif + if !v:shell_error && filereadable(spec.dir.'/.gitmodules') && + \ (s:update.force || has_key(s:update.new, name) || s:is_updated(spec.dir)) + call s:log4(name, 'Updating submodules. This may take a while.') + let out .= s:bang('git submodule update --init --recursive'.s:submodule_opt.' 2>&1', spec.dir) + endif + let msg = s:format_message(v:shell_error ? 'x': '-', name, out) + if v:shell_error + call add(s:update.errors, name) + call s:regress_bar() + silent execute pos 'd _' + call append(4, msg) | 4 + elseif !empty(out) + call setline(pos, msg[0]) + endif + redraw + endfor + silent 4 d _ + try + call s:do(s:update.pull, s:update.force, filter(copy(s:update.all), 'index(s:update.errors, v:key) < 0 && has_key(v:val, "do")')) + catch + call s:warn('echom', v:exception) + call s:warn('echo', '') + return + endtry + call s:finish(s:update.pull) + call setline(1, 'Updated. Elapsed time: ' . split(reltimestr(reltime(s:update.start)))[0] . ' sec.') + call s:switch_out('normal! gg') + endif +endfunction + +function! s:job_abort() + if (!s:nvim && !s:vim8) || !exists('s:jobs') + return + endif + + for [name, j] in items(s:jobs) + if s:nvim + silent! call jobstop(j.jobid) + elseif s:vim8 + silent! call job_stop(j.jobid) + endif + if j.new + call s:rm_rf(g:plugs[name].dir) + endif + endfor + let s:jobs = {} +endfunction + +function! s:last_non_empty_line(lines) + let len = len(a:lines) + for idx in range(len) + let line = a:lines[len-idx-1] + if !empty(line) + return line + endif + endfor + return '' +endfunction + +function! s:job_out_cb(self, data) abort + let self = a:self + let data = remove(self.lines, -1) . a:data + let lines = map(split(data, "\n", 1), 'split(v:val, "\r", 1)[-1]') + call extend(self.lines, lines) + " To reduce the number of buffer updates + let self.tick = get(self, 'tick', -1) + 1 + if !self.running || self.tick % len(s:jobs) == 0 + let bullet = self.running ? (self.new ? '+' : '*') : (self.error ? 'x' : '-') + let result = self.error ? join(self.lines, "\n") : s:last_non_empty_line(self.lines) + call s:log(bullet, self.name, result) + endif +endfunction + +function! s:job_exit_cb(self, data) abort + let a:self.running = 0 + let a:self.error = a:data != 0 + call s:reap(a:self.name) + call s:tick() +endfunction + +function! s:job_cb(fn, job, ch, data) + if !s:plug_window_exists() " plug window closed + return s:job_abort() + endif + call call(a:fn, [a:job, a:data]) +endfunction + +function! s:nvim_cb(job_id, data, event) dict abort + return (a:event == 'stdout' || a:event == 'stderr') ? + \ s:job_cb('s:job_out_cb', self, 0, join(a:data, "\n")) : + \ s:job_cb('s:job_exit_cb', self, 0, a:data) +endfunction + +function! s:spawn(name, cmd, opts) + let job = { 'name': a:name, 'running': 1, 'error': 0, 'lines': [''], + \ 'new': get(a:opts, 'new', 0) } + let s:jobs[a:name] = job + + if s:nvim + if has_key(a:opts, 'dir') + let job.cwd = a:opts.dir + endif + let argv = a:cmd + call extend(job, { + \ 'on_stdout': function('s:nvim_cb'), + \ 'on_stderr': function('s:nvim_cb'), + \ 'on_exit': function('s:nvim_cb'), + \ }) + let jid = s:plug_call('jobstart', argv, job) + if jid > 0 + let job.jobid = jid + else + let job.running = 0 + let job.error = 1 + let job.lines = [jid < 0 ? argv[0].' is not executable' : + \ 'Invalid arguments (or job table is full)'] + endif + elseif s:vim8 + let cmd = join(map(copy(a:cmd), 'plug#shellescape(v:val, {"script": 0})')) + if has_key(a:opts, 'dir') + let cmd = s:with_cd(cmd, a:opts.dir, 0) + endif + let argv = s:is_win ? ['cmd', '/s', '/c', '"'.cmd.'"'] : ['sh', '-c', cmd] + let jid = job_start(s:is_win ? join(argv, ' ') : argv, { + \ 'out_cb': function('s:job_cb', ['s:job_out_cb', job]), + \ 'err_cb': function('s:job_cb', ['s:job_out_cb', job]), + \ 'exit_cb': function('s:job_cb', ['s:job_exit_cb', job]), + \ 'err_mode': 'raw', + \ 'out_mode': 'raw' + \}) + if job_status(jid) == 'run' + let job.jobid = jid + else + let job.running = 0 + let job.error = 1 + let job.lines = ['Failed to start job'] + endif + else + let job.lines = s:lines(call('s:system', has_key(a:opts, 'dir') ? [a:cmd, a:opts.dir] : [a:cmd])) + let job.error = v:shell_error != 0 + let job.running = 0 + endif +endfunction + +function! s:reap(name) + let job = s:jobs[a:name] + if job.error + call add(s:update.errors, a:name) + elseif get(job, 'new', 0) + let s:update.new[a:name] = 1 + endif + let s:update.bar .= job.error ? 'x' : '=' + + let bullet = job.error ? 'x' : '-' + let result = job.error ? join(job.lines, "\n") : s:last_non_empty_line(job.lines) + call s:log(bullet, a:name, empty(result) ? 'OK' : result) + call s:bar() + + call remove(s:jobs, a:name) +endfunction + +function! s:bar() + if s:switch_in() + let total = len(s:update.all) + call setline(1, (s:update.pull ? 'Updating' : 'Installing'). + \ ' plugins ('.len(s:update.bar).'/'.total.')') + call s:progress_bar(2, s:update.bar, total) + call s:switch_out() + endif +endfunction + +function! s:logpos(name) + let max = line('$') + for i in range(4, max > 4 ? max : 4) + if getline(i) =~# '^[-+x*] '.a:name.':' + for j in range(i + 1, max > 5 ? max : 5) + if getline(j) !~ '^ ' + return [i, j - 1] + endif + endfor + return [i, i] + endif + endfor + return [0, 0] +endfunction + +function! s:log(bullet, name, lines) + if s:switch_in() + let [b, e] = s:logpos(a:name) + if b > 0 + silent execute printf('%d,%d d _', b, e) + if b > winheight('.') + let b = 4 + endif + else + let b = 4 + endif + " FIXME For some reason, nomodifiable is set after :d in vim8 + setlocal modifiable + call append(b - 1, s:format_message(a:bullet, a:name, a:lines)) + call s:switch_out() + endif +endfunction + +function! s:update_vim() + let s:jobs = {} + + call s:bar() + call s:tick() +endfunction + +function! s:tick() + let pull = s:update.pull + let prog = s:progress_opt(s:nvim || s:vim8) +while 1 " Without TCO, Vim stack is bound to explode + if empty(s:update.todo) + if empty(s:jobs) && !s:update.fin + call s:update_finish() + let s:update.fin = 1 + endif + return + endif + + let name = keys(s:update.todo)[0] + let spec = remove(s:update.todo, name) + let new = empty(globpath(spec.dir, '.git', 1)) + + call s:log(new ? '+' : '*', name, pull ? 'Updating ...' : 'Installing ...') + redraw + + let has_tag = has_key(spec, 'tag') + if !new + let [error, _] = s:git_validate(spec, 0) + if empty(error) + if pull + let cmd = s:git_version_requirement(2) ? ['git', '-c', 'credential.helper=', 'fetch'] : ['git', 'fetch'] + if has_tag && !empty(globpath(spec.dir, '.git/shallow')) + call extend(cmd, ['--depth', '99999999']) + endif + if !empty(prog) + call add(cmd, prog) + endif + call s:spawn(name, cmd, { 'dir': spec.dir }) + else + let s:jobs[name] = { 'running': 0, 'lines': ['Already installed'], 'error': 0 } + endif + else + let s:jobs[name] = { 'running': 0, 'lines': s:lines(error), 'error': 1 } + endif + else + let cmd = ['git', 'clone'] + if !has_tag + call extend(cmd, s:clone_opt) + endif + if !empty(prog) + call add(cmd, prog) + endif + call s:spawn(name, extend(cmd, [spec.uri, s:trim(spec.dir)]), { 'new': 1 }) + endif + + if !s:jobs[name].running + call s:reap(name) + endif + if len(s:jobs) >= s:update.threads + break + endif +endwhile +endfunction + +function! s:update_python() +let py_exe = has('python') ? 'python' : 'python3' +execute py_exe "<< EOF" +import datetime +import functools +import os +try: + import queue +except ImportError: + import Queue as queue +import random +import re +import shutil +import signal +import subprocess +import tempfile +import threading as thr +import time +import traceback +import vim + +G_NVIM = vim.eval("has('nvim')") == '1' +G_PULL = vim.eval('s:update.pull') == '1' +G_RETRIES = int(vim.eval('get(g:, "plug_retries", 2)')) + 1 +G_TIMEOUT = int(vim.eval('get(g:, "plug_timeout", 60)')) +G_CLONE_OPT = ' '.join(vim.eval('s:clone_opt')) +G_PROGRESS = vim.eval('s:progress_opt(1)') +G_LOG_PROB = 1.0 / int(vim.eval('s:update.threads')) +G_STOP = thr.Event() +G_IS_WIN = vim.eval('s:is_win') == '1' + +class PlugError(Exception): + def __init__(self, msg): + self.msg = msg +class CmdTimedOut(PlugError): + pass +class CmdFailed(PlugError): + pass +class InvalidURI(PlugError): + pass +class Action(object): + INSTALL, UPDATE, ERROR, DONE = ['+', '*', 'x', '-'] + +class Buffer(object): + def __init__(self, lock, num_plugs, is_pull): + self.bar = '' + self.event = 'Updating' if is_pull else 'Installing' + self.lock = lock + self.maxy = int(vim.eval('winheight(".")')) + self.num_plugs = num_plugs + + def __where(self, name): + """ Find first line with name in current buffer. Return line num. """ + found, lnum = False, 0 + matcher = re.compile('^[-+x*] {0}:'.format(name)) + for line in vim.current.buffer: + if matcher.search(line) is not None: + found = True + break + lnum += 1 + + if not found: + lnum = -1 + return lnum + + def header(self): + curbuf = vim.current.buffer + curbuf[0] = self.event + ' plugins ({0}/{1})'.format(len(self.bar), self.num_plugs) + + num_spaces = self.num_plugs - len(self.bar) + curbuf[1] = '[{0}{1}]'.format(self.bar, num_spaces * ' ') + + with self.lock: + vim.command('normal! 2G') + vim.command('redraw') + + def write(self, action, name, lines): + first, rest = lines[0], lines[1:] + msg = ['{0} {1}{2}{3}'.format(action, name, ': ' if first else '', first)] + msg.extend([' ' + line for line in rest]) + + try: + if action == Action.ERROR: + self.bar += 'x' + vim.command("call add(s:update.errors, '{0}')".format(name)) + elif action == Action.DONE: + self.bar += '=' + + curbuf = vim.current.buffer + lnum = self.__where(name) + if lnum != -1: # Found matching line num + del curbuf[lnum] + if lnum > self.maxy and action in set([Action.INSTALL, Action.UPDATE]): + lnum = 3 + else: + lnum = 3 + curbuf.append(msg, lnum) + + self.header() + except vim.error: + pass + +class Command(object): + CD = 'cd /d' if G_IS_WIN else 'cd' + + def __init__(self, cmd, cmd_dir=None, timeout=60, cb=None, clean=None): + self.cmd = cmd + if cmd_dir: + self.cmd = '{0} {1} && {2}'.format(Command.CD, cmd_dir, self.cmd) + self.timeout = timeout + self.callback = cb if cb else (lambda msg: None) + self.clean = clean if clean else (lambda: None) + self.proc = None + + @property + def alive(self): + """ Returns true only if command still running. """ + return self.proc and self.proc.poll() is None + + def execute(self, ntries=3): + """ Execute the command with ntries if CmdTimedOut. + Returns the output of the command if no Exception. + """ + attempt, finished, limit = 0, False, self.timeout + + while not finished: + try: + attempt += 1 + result = self.try_command() + finished = True + return result + except CmdTimedOut: + if attempt != ntries: + self.notify_retry() + self.timeout += limit + else: + raise + + def notify_retry(self): + """ Retry required for command, notify user. """ + for count in range(3, 0, -1): + if G_STOP.is_set(): + raise KeyboardInterrupt + msg = 'Timeout. Will retry in {0} second{1} ...'.format( + count, 's' if count != 1 else '') + self.callback([msg]) + time.sleep(1) + self.callback(['Retrying ...']) + + def try_command(self): + """ Execute a cmd & poll for callback. Returns list of output. + Raises CmdFailed -> return code for Popen isn't 0 + Raises CmdTimedOut -> command exceeded timeout without new output + """ + first_line = True + + try: + tfile = tempfile.NamedTemporaryFile(mode='w+b') + preexec_fn = not G_IS_WIN and os.setsid or None + self.proc = subprocess.Popen(self.cmd, stdout=tfile, + stderr=subprocess.STDOUT, + stdin=subprocess.PIPE, shell=True, + preexec_fn=preexec_fn) + thrd = thr.Thread(target=(lambda proc: proc.wait()), args=(self.proc,)) + thrd.start() + + thread_not_started = True + while thread_not_started: + try: + thrd.join(0.1) + thread_not_started = False + except RuntimeError: + pass + + while self.alive: + if G_STOP.is_set(): + raise KeyboardInterrupt + + if first_line or random.random() < G_LOG_PROB: + first_line = False + line = '' if G_IS_WIN else nonblock_read(tfile.name) + if line: + self.callback([line]) + + time_diff = time.time() - os.path.getmtime(tfile.name) + if time_diff > self.timeout: + raise CmdTimedOut(['Timeout!']) + + thrd.join(0.5) + + tfile.seek(0) + result = [line.decode('utf-8', 'replace').rstrip() for line in tfile] + + if self.proc.returncode != 0: + raise CmdFailed([''] + result) + + return result + except: + self.terminate() + raise + + def terminate(self): + """ Terminate process and cleanup. """ + if self.alive: + if G_IS_WIN: + os.kill(self.proc.pid, signal.SIGINT) + else: + os.killpg(self.proc.pid, signal.SIGTERM) + self.clean() + +class Plugin(object): + def __init__(self, name, args, buf_q, lock): + self.name = name + self.args = args + self.buf_q = buf_q + self.lock = lock + self.tag = args.get('tag', 0) + + def manage(self): + try: + if os.path.exists(self.args['dir']): + self.update() + else: + self.install() + with self.lock: + thread_vim_command("let s:update.new['{0}'] = 1".format(self.name)) + except PlugError as exc: + self.write(Action.ERROR, self.name, exc.msg) + except KeyboardInterrupt: + G_STOP.set() + self.write(Action.ERROR, self.name, ['Interrupted!']) + except: + # Any exception except those above print stack trace + msg = 'Trace:\n{0}'.format(traceback.format_exc().rstrip()) + self.write(Action.ERROR, self.name, msg.split('\n')) + raise + + def install(self): + target = self.args['dir'] + if target[-1] == '\\': + target = target[0:-1] + + def clean(target): + def _clean(): + try: + shutil.rmtree(target) + except OSError: + pass + return _clean + + self.write(Action.INSTALL, self.name, ['Installing ...']) + callback = functools.partial(self.write, Action.INSTALL, self.name) + cmd = 'git clone {0} {1} {2} {3} 2>&1'.format( + '' if self.tag else G_CLONE_OPT, G_PROGRESS, self.args['uri'], + esc(target)) + com = Command(cmd, None, G_TIMEOUT, callback, clean(target)) + result = com.execute(G_RETRIES) + self.write(Action.DONE, self.name, result[-1:]) + + def repo_uri(self): + cmd = 'git rev-parse --abbrev-ref HEAD 2>&1 && git config -f .git/config remote.origin.url' + command = Command(cmd, self.args['dir'], G_TIMEOUT,) + result = command.execute(G_RETRIES) + return result[-1] + + def update(self): + actual_uri = self.repo_uri() + expect_uri = self.args['uri'] + regex = re.compile(r'^(?:\w+://)?(?:[^@/]*@)?([^:/]*(?::[0-9]*)?)[:/](.*?)(?:\.git)?/?$') + ma = regex.match(actual_uri) + mb = regex.match(expect_uri) + if ma is None or mb is None or ma.groups() != mb.groups(): + msg = ['', + 'Invalid URI: {0}'.format(actual_uri), + 'Expected {0}'.format(expect_uri), + 'PlugClean required.'] + raise InvalidURI(msg) + + if G_PULL: + self.write(Action.UPDATE, self.name, ['Updating ...']) + callback = functools.partial(self.write, Action.UPDATE, self.name) + fetch_opt = '--depth 99999999' if self.tag and os.path.isfile(os.path.join(self.args['dir'], '.git/shallow')) else '' + cmd = 'git fetch {0} {1} 2>&1'.format(fetch_opt, G_PROGRESS) + com = Command(cmd, self.args['dir'], G_TIMEOUT, callback) + result = com.execute(G_RETRIES) + self.write(Action.DONE, self.name, result[-1:]) + else: + self.write(Action.DONE, self.name, ['Already installed']) + + def write(self, action, name, msg): + self.buf_q.put((action, name, msg)) + +class PlugThread(thr.Thread): + def __init__(self, tname, args): + super(PlugThread, self).__init__() + self.tname = tname + self.args = args + + def run(self): + thr.current_thread().name = self.tname + buf_q, work_q, lock = self.args + + try: + while not G_STOP.is_set(): + name, args = work_q.get_nowait() + plug = Plugin(name, args, buf_q, lock) + plug.manage() + work_q.task_done() + except queue.Empty: + pass + +class RefreshThread(thr.Thread): + def __init__(self, lock): + super(RefreshThread, self).__init__() + self.lock = lock + self.running = True + + def run(self): + while self.running: + with self.lock: + thread_vim_command('noautocmd normal! a') + time.sleep(0.33) + + def stop(self): + self.running = False + +if G_NVIM: + def thread_vim_command(cmd): + vim.session.threadsafe_call(lambda: vim.command(cmd)) +else: + def thread_vim_command(cmd): + vim.command(cmd) + +def esc(name): + return '"' + name.replace('"', '\"') + '"' + +def nonblock_read(fname): + """ Read a file with nonblock flag. Return the last line. """ + fread = os.open(fname, os.O_RDONLY | os.O_NONBLOCK) + buf = os.read(fread, 100000).decode('utf-8', 'replace') + os.close(fread) + + line = buf.rstrip('\r\n') + left = max(line.rfind('\r'), line.rfind('\n')) + if left != -1: + left += 1 + line = line[left:] + + return line + +def main(): + thr.current_thread().name = 'main' + nthreads = int(vim.eval('s:update.threads')) + plugs = vim.eval('s:update.todo') + mac_gui = vim.eval('s:mac_gui') == '1' + + lock = thr.Lock() + buf = Buffer(lock, len(plugs), G_PULL) + buf_q, work_q = queue.Queue(), queue.Queue() + for work in plugs.items(): + work_q.put(work) + + start_cnt = thr.active_count() + for num in range(nthreads): + tname = 'PlugT-{0:02}'.format(num) + thread = PlugThread(tname, (buf_q, work_q, lock)) + thread.start() + if mac_gui: + rthread = RefreshThread(lock) + rthread.start() + + while not buf_q.empty() or thr.active_count() != start_cnt: + try: + action, name, msg = buf_q.get(True, 0.25) + buf.write(action, name, ['OK'] if not msg else msg) + buf_q.task_done() + except queue.Empty: + pass + except KeyboardInterrupt: + G_STOP.set() + + if mac_gui: + rthread.stop() + rthread.join() + +main() +EOF +endfunction + +function! s:update_ruby() + ruby << EOF + module PlugStream + SEP = ["\r", "\n", nil] + def get_line + buffer = '' + loop do + char = readchar rescue return + if SEP.include? char.chr + buffer << $/ + break + else + buffer << char + end + end + buffer + end + end unless defined?(PlugStream) + + def esc arg + %["#{arg.gsub('"', '\"')}"] + end + + def killall pid + pids = [pid] + if /mswin|mingw|bccwin/ =~ RUBY_PLATFORM + pids.each { |pid| Process.kill 'INT', pid.to_i rescue nil } + else + unless `which pgrep 2> /dev/null`.empty? + children = pids + until children.empty? + children = children.map { |pid| + `pgrep -P #{pid}`.lines.map { |l| l.chomp } + }.flatten + pids += children + end + end + pids.each { |pid| Process.kill 'TERM', pid.to_i rescue nil } + end + end + + def compare_git_uri a, b + regex = %r{^(?:\w+://)?(?:[^@/]*@)?([^:/]*(?::[0-9]*)?)[:/](.*?)(?:\.git)?/?$} + regex.match(a).to_a.drop(1) == regex.match(b).to_a.drop(1) + end + + require 'thread' + require 'fileutils' + require 'timeout' + running = true + iswin = VIM::evaluate('s:is_win').to_i == 1 + pull = VIM::evaluate('s:update.pull').to_i == 1 + base = VIM::evaluate('g:plug_home') + all = VIM::evaluate('s:update.todo') + limit = VIM::evaluate('get(g:, "plug_timeout", 60)') + tries = VIM::evaluate('get(g:, "plug_retries", 2)') + 1 + nthr = VIM::evaluate('s:update.threads').to_i + maxy = VIM::evaluate('winheight(".")').to_i + vim7 = VIM::evaluate('v:version').to_i <= 703 && RUBY_PLATFORM =~ /darwin/ + cd = iswin ? 'cd /d' : 'cd' + tot = VIM::evaluate('len(s:update.todo)') || 0 + bar = '' + skip = 'Already installed' + mtx = Mutex.new + take1 = proc { mtx.synchronize { running && all.shift } } + logh = proc { + cnt = bar.length + $curbuf[1] = "#{pull ? 'Updating' : 'Installing'} plugins (#{cnt}/#{tot})" + $curbuf[2] = '[' + bar.ljust(tot) + ']' + VIM::command('normal! 2G') + VIM::command('redraw') + } + where = proc { |name| (1..($curbuf.length)).find { |l| $curbuf[l] =~ /^[-+x*] #{name}:/ } } + log = proc { |name, result, type| + mtx.synchronize do + ing = ![true, false].include?(type) + bar += type ? '=' : 'x' unless ing + b = case type + when :install then '+' when :update then '*' + when true, nil then '-' else + VIM::command("call add(s:update.errors, '#{name}')") + 'x' + end + result = + if type || type.nil? + ["#{b} #{name}: #{result.lines.to_a.last || 'OK'}"] + elsif result =~ /^Interrupted|^Timeout/ + ["#{b} #{name}: #{result}"] + else + ["#{b} #{name}"] + result.lines.map { |l| " " << l } + end + if lnum = where.call(name) + $curbuf.delete lnum + lnum = 4 if ing && lnum > maxy + end + result.each_with_index do |line, offset| + $curbuf.append((lnum || 4) - 1 + offset, line.gsub(/\e\[./, '').chomp) + end + logh.call + end + } + bt = proc { |cmd, name, type, cleanup| + tried = timeout = 0 + begin + tried += 1 + timeout += limit + fd = nil + data = '' + if iswin + Timeout::timeout(timeout) do + tmp = VIM::evaluate('tempname()') + system("(#{cmd}) > #{tmp}") + data = File.read(tmp).chomp + File.unlink tmp rescue nil + end + else + fd = IO.popen(cmd).extend(PlugStream) + first_line = true + log_prob = 1.0 / nthr + while line = Timeout::timeout(timeout) { fd.get_line } + data << line + log.call name, line.chomp, type if name && (first_line || rand < log_prob) + first_line = false + end + fd.close + end + [$? == 0, data.chomp] + rescue Timeout::Error, Interrupt => e + if fd && !fd.closed? + killall fd.pid + fd.close + end + cleanup.call if cleanup + if e.is_a?(Timeout::Error) && tried < tries + 3.downto(1) do |countdown| + s = countdown > 1 ? 's' : '' + log.call name, "Timeout. Will retry in #{countdown} second#{s} ...", type + sleep 1 + end + log.call name, 'Retrying ...', type + retry + end + [false, e.is_a?(Interrupt) ? "Interrupted!" : "Timeout!"] + end + } + main = Thread.current + threads = [] + watcher = Thread.new { + if vim7 + while VIM::evaluate('getchar(1)') + sleep 0.1 + end + else + require 'io/console' # >= Ruby 1.9 + nil until IO.console.getch == 3.chr + end + mtx.synchronize do + running = false + threads.each { |t| t.raise Interrupt } unless vim7 + end + threads.each { |t| t.join rescue nil } + main.kill + } + refresh = Thread.new { + while true + mtx.synchronize do + break unless running + VIM::command('noautocmd normal! a') + end + sleep 0.2 + end + } if VIM::evaluate('s:mac_gui') == 1 + + clone_opt = VIM::evaluate('s:clone_opt').join(' ') + progress = VIM::evaluate('s:progress_opt(1)') + nthr.times do + mtx.synchronize do + threads << Thread.new { + while pair = take1.call + name = pair.first + dir, uri, tag = pair.last.values_at *%w[dir uri tag] + exists = File.directory? dir + ok, result = + if exists + chdir = "#{cd} #{iswin ? dir : esc(dir)}" + ret, data = bt.call "#{chdir} && git rev-parse --abbrev-ref HEAD 2>&1 && git config -f .git/config remote.origin.url", nil, nil, nil + current_uri = data.lines.to_a.last + if !ret + if data =~ /^Interrupted|^Timeout/ + [false, data] + else + [false, [data.chomp, "PlugClean required."].join($/)] + end + elsif !compare_git_uri(current_uri, uri) + [false, ["Invalid URI: #{current_uri}", + "Expected: #{uri}", + "PlugClean required."].join($/)] + else + if pull + log.call name, 'Updating ...', :update + fetch_opt = (tag && File.exist?(File.join(dir, '.git/shallow'))) ? '--depth 99999999' : '' + bt.call "#{chdir} && git fetch #{fetch_opt} #{progress} 2>&1", name, :update, nil + else + [true, skip] + end + end + else + d = esc dir.sub(%r{[\\/]+$}, '') + log.call name, 'Installing ...', :install + bt.call "git clone #{clone_opt unless tag} #{progress} #{uri} #{d} 2>&1", name, :install, proc { + FileUtils.rm_rf dir + } + end + mtx.synchronize { VIM::command("let s:update.new['#{name}'] = 1") } if !exists && ok + log.call name, result, ok + end + } if running + end + end + threads.each { |t| t.join rescue nil } + logh.call + refresh.kill if refresh + watcher.kill +EOF +endfunction + +function! s:shellesc_cmd(arg, script) + let escaped = substitute('"'.a:arg.'"', '[&|<>()@^!"]', '^&', 'g') + return substitute(escaped, '%', (a:script ? '%' : '^') . '&', 'g') +endfunction + +function! s:shellesc_ps1(arg) + return "'".substitute(escape(a:arg, '\"'), "'", "''", 'g')."'" +endfunction + +function! s:shellesc_sh(arg) + return "'".substitute(a:arg, "'", "'\\\\''", 'g')."'" +endfunction + +" Escape the shell argument based on the shell. +" Vim and Neovim's shellescape() are insufficient. +" 1. shellslash determines whether to use single/double quotes. +" Double-quote escaping is fragile for cmd.exe. +" 2. It does not work for powershell. +" 3. It does not work for *sh shells if the command is executed +" via cmd.exe (ie. cmd.exe /c sh -c command command_args) +" 4. It does not support batchfile syntax. +" +" Accepts an optional dictionary with the following keys: +" - shell: same as Vim/Neovim 'shell' option. +" If unset, fallback to 'cmd.exe' on Windows or 'sh'. +" - script: If truthy and shell is cmd.exe, escape for batchfile syntax. +function! plug#shellescape(arg, ...) + if a:arg =~# '^[A-Za-z0-9_/:.-]\+$' + return a:arg + endif + let opts = a:0 > 0 && type(a:1) == s:TYPE.dict ? a:1 : {} + let shell = get(opts, 'shell', s:is_win ? 'cmd.exe' : 'sh') + let script = get(opts, 'script', 1) + if shell =~# 'cmd\(\.exe\)\?$' + return s:shellesc_cmd(a:arg, script) + elseif s:is_powershell(shell) + return s:shellesc_ps1(a:arg) + endif + return s:shellesc_sh(a:arg) +endfunction + +function! s:glob_dir(path) + return map(filter(s:glob(a:path, '**'), 'isdirectory(v:val)'), 's:dirpath(v:val)') +endfunction + +function! s:progress_bar(line, bar, total) + call setline(a:line, '[' . s:lpad(a:bar, a:total) . ']') +endfunction + +function! s:compare_git_uri(a, b) + " See `git help clone' + " https:// [user@] github.com[:port] / junegunn/vim-plug [.git] + " [git@] github.com[:port] : junegunn/vim-plug [.git] + " file:// / junegunn/vim-plug [/] + " / junegunn/vim-plug [/] + let pat = '^\%(\w\+://\)\='.'\%([^@/]*@\)\='.'\([^:/]*\%(:[0-9]*\)\=\)'.'[:/]'.'\(.\{-}\)'.'\%(\.git\)\=/\?$' + let ma = matchlist(a:a, pat) + let mb = matchlist(a:b, pat) + return ma[1:2] ==# mb[1:2] +endfunction + +function! s:format_message(bullet, name, message) + if a:bullet != 'x' + return [printf('%s %s: %s', a:bullet, a:name, s:lastline(a:message))] + else + let lines = map(s:lines(a:message), '" ".v:val') + return extend([printf('x %s:', a:name)], lines) + endif +endfunction + +function! s:with_cd(cmd, dir, ...) + let script = a:0 > 0 ? a:1 : 1 + return printf('cd%s %s && %s', s:is_win ? ' /d' : '', plug#shellescape(a:dir, {'script': script}), a:cmd) +endfunction + +function! s:system(cmd, ...) + let batchfile = '' + try + let [sh, shellcmdflag, shrd] = s:chsh(1) + if type(a:cmd) == s:TYPE.list + " Neovim's system() supports list argument to bypass the shell + " but it cannot set the working directory for the command. + " Assume that the command does not rely on the shell. + if has('nvim') && a:0 == 0 + return system(a:cmd) + endif + let cmd = join(map(copy(a:cmd), 'plug#shellescape(v:val, {"shell": &shell, "script": 0})')) + if s:is_powershell(&shell) + let cmd = '& ' . cmd + endif + else + let cmd = a:cmd + endif + if a:0 > 0 + let cmd = s:with_cd(cmd, a:1, type(a:cmd) != s:TYPE.list) + endif + if s:is_win && type(a:cmd) != s:TYPE.list + let [batchfile, cmd] = s:batchfile(cmd) + endif + return system(cmd) + finally + let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd] + if s:is_win && filereadable(batchfile) + call delete(batchfile) + endif + endtry +endfunction + +function! s:system_chomp(...) + let ret = call('s:system', a:000) + return v:shell_error ? '' : substitute(ret, '\n$', '', '') +endfunction + +function! s:git_validate(spec, check_branch) + let err = '' + if isdirectory(a:spec.dir) + let result = [s:git_local_branch(a:spec.dir), s:git_origin_url(a:spec.dir)] + let remote = result[-1] + if empty(remote) + let err = join([remote, 'PlugClean required.'], "\n") + elseif !s:compare_git_uri(remote, a:spec.uri) + let err = join(['Invalid URI: '.remote, + \ 'Expected: '.a:spec.uri, + \ 'PlugClean required.'], "\n") + elseif a:check_branch && has_key(a:spec, 'commit') + let sha = s:git_revision(a:spec.dir) + if empty(sha) + let err = join(add(result, 'PlugClean required.'), "\n") + elseif !s:hash_match(sha, a:spec.commit) + let err = join([printf('Invalid HEAD (expected: %s, actual: %s)', + \ a:spec.commit[:6], sha[:6]), + \ 'PlugUpdate required.'], "\n") + endif + elseif a:check_branch + let current_branch = result[0] + " Check tag + let origin_branch = s:git_origin_branch(a:spec) + if has_key(a:spec, 'tag') + let tag = s:system_chomp('git describe --exact-match --tags HEAD 2>&1', a:spec.dir) + if a:spec.tag !=# tag && a:spec.tag !~ '\*' + let err = printf('Invalid tag: %s (expected: %s). Try PlugUpdate.', + \ (empty(tag) ? 'N/A' : tag), a:spec.tag) + endif + " Check branch + elseif origin_branch !=# current_branch + let err = printf('Invalid branch: %s (expected: %s). Try PlugUpdate.', + \ current_branch, origin_branch) + endif + if empty(err) + let [ahead, behind] = split(s:lastline(s:system([ + \ 'git', 'rev-list', '--count', '--left-right', + \ printf('HEAD...origin/%s', origin_branch) + \ ], a:spec.dir)), '\t') + if !v:shell_error && ahead + if behind + " Only mention PlugClean if diverged, otherwise it's likely to be + " pushable (and probably not that messed up). + let err = printf( + \ "Diverged from origin/%s (%d commit(s) ahead and %d commit(s) behind!\n" + \ .'Backup local changes and run PlugClean and PlugUpdate to reinstall it.', origin_branch, ahead, behind) + else + let err = printf("Ahead of origin/%s by %d commit(s).\n" + \ .'Cannot update until local changes are pushed.', + \ origin_branch, ahead) + endif + endif + endif + endif + else + let err = 'Not found' + endif + return [err, err =~# 'PlugClean'] +endfunction + +function! s:rm_rf(dir) + if isdirectory(a:dir) + return s:system(s:is_win + \ ? 'rmdir /S /Q '.plug#shellescape(a:dir) + \ : ['rm', '-rf', a:dir]) + endif +endfunction + +function! s:clean(force) + call s:prepare() + call append(0, 'Searching for invalid plugins in '.g:plug_home) + call append(1, '') + + " List of valid directories + let dirs = [] + let errs = {} + let [cnt, total] = [0, len(g:plugs)] + for [name, spec] in items(g:plugs) + if !s:is_managed(name) + call add(dirs, spec.dir) + else + let [err, clean] = s:git_validate(spec, 1) + if clean + let errs[spec.dir] = s:lines(err)[0] + else + call add(dirs, spec.dir) + endif + endif + let cnt += 1 + call s:progress_bar(2, repeat('=', cnt), total) + normal! 2G + redraw + endfor + + let allowed = {} + for dir in dirs + let allowed[s:dirpath(s:plug_fnamemodify(dir, ':h:h'))] = 1 + let allowed[dir] = 1 + for child in s:glob_dir(dir) + let allowed[child] = 1 + endfor + endfor + + let todo = [] + let found = sort(s:glob_dir(g:plug_home)) + while !empty(found) + let f = remove(found, 0) + if !has_key(allowed, f) && isdirectory(f) + call add(todo, f) + call append(line('$'), '- ' . f) + if has_key(errs, f) + call append(line('$'), ' ' . errs[f]) + endif + let found = filter(found, 'stridx(v:val, f) != 0') + end + endwhile + + 4 + redraw + if empty(todo) + call append(line('$'), 'Already clean.') + else + let s:clean_count = 0 + call append(3, ['Directories to delete:', '']) + redraw! + if a:force || s:ask_no_interrupt('Delete all directories?') + call s:delete([6, line('$')], 1) + else + call setline(4, 'Cancelled.') + nnoremap d :set opfunc=delete_opg@ + nmap dd d_ + xnoremap d :call delete_op(visualmode(), 1) + echo 'Delete the lines (d{motion}) to delete the corresponding directories' + endif + endif + 4 + setlocal nomodifiable +endfunction + +function! s:delete_op(type, ...) + call s:delete(a:0 ? [line("'<"), line("'>")] : [line("'["), line("']")], 0) +endfunction + +function! s:delete(range, force) + let [l1, l2] = a:range + let force = a:force + let err_count = 0 + while l1 <= l2 + let line = getline(l1) + if line =~ '^- ' && isdirectory(line[2:]) + execute l1 + redraw! + let answer = force ? 1 : s:ask('Delete '.line[2:].'?', 1) + let force = force || answer > 1 + if answer + let err = s:rm_rf(line[2:]) + setlocal modifiable + if empty(err) + call setline(l1, '~'.line[1:]) + let s:clean_count += 1 + else + delete _ + call append(l1 - 1, s:format_message('x', line[1:], err)) + let l2 += len(s:lines(err)) + let err_count += 1 + endif + let msg = printf('Removed %d directories.', s:clean_count) + if err_count > 0 + let msg .= printf(' Failed to remove %d directories.', err_count) + endif + call setline(4, msg) + setlocal nomodifiable + endif + endif + let l1 += 1 + endwhile +endfunction + +function! s:upgrade() + echo 'Downloading the latest version of vim-plug' + redraw + let tmp = s:plug_tempname() + let new = tmp . '/plug.vim' + + try + let out = s:system(['git', 'clone', '--depth', '1', s:plug_src, tmp]) + if v:shell_error + return s:err('Error upgrading vim-plug: '. out) + endif + + if readfile(s:me) ==# readfile(new) + echo 'vim-plug is already up-to-date' + return 0 + else + call rename(s:me, s:me . '.old') + call rename(new, s:me) + unlet g:loaded_plug + echo 'vim-plug has been upgraded' + return 1 + endif + finally + silent! call s:rm_rf(tmp) + endtry +endfunction + +function! s:upgrade_specs() + for spec in values(g:plugs) + let spec.frozen = get(spec, 'frozen', 0) + endfor +endfunction + +function! s:status() + call s:prepare() + call append(0, 'Checking plugins') + call append(1, '') + + let ecnt = 0 + let unloaded = 0 + let [cnt, total] = [0, len(g:plugs)] + for [name, spec] in items(g:plugs) + let is_dir = isdirectory(spec.dir) + if has_key(spec, 'uri') + if is_dir + let [err, _] = s:git_validate(spec, 1) + let [valid, msg] = [empty(err), empty(err) ? 'OK' : err] + else + let [valid, msg] = [0, 'Not found. Try PlugInstall.'] + endif + else + if is_dir + let [valid, msg] = [1, 'OK'] + else + let [valid, msg] = [0, 'Not found.'] + endif + endif + let cnt += 1 + let ecnt += !valid + " `s:loaded` entry can be missing if PlugUpgraded + if is_dir && get(s:loaded, name, -1) == 0 + let unloaded = 1 + let msg .= ' (not loaded)' + endif + call s:progress_bar(2, repeat('=', cnt), total) + call append(3, s:format_message(valid ? '-' : 'x', name, msg)) + normal! 2G + redraw + endfor + call setline(1, 'Finished. '.ecnt.' error(s).') + normal! gg + setlocal nomodifiable + if unloaded + echo "Press 'L' on each line to load plugin, or 'U' to update" + nnoremap L :call status_load(line('.')) + xnoremap L :call status_load(line('.')) + end +endfunction + +function! s:extract_name(str, prefix, suffix) + return matchstr(a:str, '^'.a:prefix.' \zs[^:]\+\ze:.*'.a:suffix.'$') +endfunction + +function! s:status_load(lnum) + let line = getline(a:lnum) + let name = s:extract_name(line, '-', '(not loaded)') + if !empty(name) + call plug#load(name) + setlocal modifiable + call setline(a:lnum, substitute(line, ' (not loaded)$', '', '')) + setlocal nomodifiable + endif +endfunction + +function! s:status_update() range + let lines = getline(a:firstline, a:lastline) + let names = filter(map(lines, 's:extract_name(v:val, "[x-]", "")'), '!empty(v:val)') + if !empty(names) + echo + execute 'PlugUpdate' join(names) + endif +endfunction + +function! s:is_preview_window_open() + silent! wincmd P + if &previewwindow + wincmd p + return 1 + endif +endfunction + +function! s:find_name(lnum) + for lnum in reverse(range(1, a:lnum)) + let line = getline(lnum) + if empty(line) + return '' + endif + let name = s:extract_name(line, '-', '') + if !empty(name) + return name + endif + endfor + return '' +endfunction + +function! s:preview_commit() + if b:plug_preview < 0 + let b:plug_preview = !s:is_preview_window_open() + endif + + let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7,9}') + if empty(sha) + return + endif + + let name = s:find_name(line('.')) + if empty(name) || !has_key(g:plugs, name) || !isdirectory(g:plugs[name].dir) + return + endif + + if exists('g:plug_pwindow') && !s:is_preview_window_open() + execute g:plug_pwindow + execute 'e' sha + else + execute 'pedit' sha + wincmd P + endif + setlocal previewwindow filetype=git buftype=nofile nobuflisted modifiable + let batchfile = '' + try + let [sh, shellcmdflag, shrd] = s:chsh(1) + let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && git show --no-color --pretty=medium '.sha + if s:is_win + let [batchfile, cmd] = s:batchfile(cmd) + endif + execute 'silent %!' cmd + finally + let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd] + if s:is_win && filereadable(batchfile) + call delete(batchfile) + endif + endtry + setlocal nomodifiable + nnoremap q :q + wincmd p +endfunction + +function! s:section(flags) + call search('\(^[x-] \)\@<=[^:]\+:', a:flags) +endfunction + +function! s:format_git_log(line) + let indent = ' ' + let tokens = split(a:line, nr2char(1)) + if len(tokens) != 5 + return indent.substitute(a:line, '\s*$', '', '') + endif + let [graph, sha, refs, subject, date] = tokens + let tag = matchstr(refs, 'tag: [^,)]\+') + let tag = empty(tag) ? ' ' : ' ('.tag.') ' + return printf('%s%s%s%s%s (%s)', indent, graph, sha, tag, subject, date) +endfunction + +function! s:append_ul(lnum, text) + call append(a:lnum, ['', a:text, repeat('-', len(a:text))]) +endfunction + +function! s:diff() + call s:prepare() + call append(0, ['Collecting changes ...', '']) + let cnts = [0, 0] + let bar = '' + let total = filter(copy(g:plugs), 's:is_managed(v:key) && isdirectory(v:val.dir)') + call s:progress_bar(2, bar, len(total)) + for origin in [1, 0] + let plugs = reverse(sort(items(filter(copy(total), (origin ? '' : '!').'(has_key(v:val, "commit") || has_key(v:val, "tag"))')))) + if empty(plugs) + continue + endif + call s:append_ul(2, origin ? 'Pending updates:' : 'Last update:') + for [k, v] in plugs + let branch = s:git_origin_branch(v) + if len(branch) + let range = origin ? '..origin/'.branch : 'HEAD@{1}..' + let cmd = ['git', 'log', '--graph', '--color=never'] + if s:git_version_requirement(2, 10, 0) + call add(cmd, '--no-show-signature') + endif + call extend(cmd, ['--pretty=format:%x01%h%x01%d%x01%s%x01%cr', range]) + if has_key(v, 'rtp') + call extend(cmd, ['--', v.rtp]) + endif + let diff = s:system_chomp(cmd, v.dir) + if !empty(diff) + let ref = has_key(v, 'tag') ? (' (tag: '.v.tag.')') : has_key(v, 'commit') ? (' '.v.commit) : '' + call append(5, extend(['', '- '.k.':'.ref], map(s:lines(diff), 's:format_git_log(v:val)'))) + let cnts[origin] += 1 + endif + endif + let bar .= '=' + call s:progress_bar(2, bar, len(total)) + normal! 2G + redraw + endfor + if !cnts[origin] + call append(5, ['', 'N/A']) + endif + endfor + call setline(1, printf('%d plugin(s) updated.', cnts[0]) + \ . (cnts[1] ? printf(' %d plugin(s) have pending updates.', cnts[1]) : '')) + + if cnts[0] || cnts[1] + nnoremap (plug-preview) :silent! call preview_commit() + if empty(maparg("\", 'n')) + nmap (plug-preview) + endif + if empty(maparg('o', 'n')) + nmap o (plug-preview) + endif + endif + if cnts[0] + nnoremap X :call revert() + echo "Press 'X' on each block to revert the update" + endif + normal! gg + setlocal nomodifiable +endfunction + +function! s:revert() + if search('^Pending updates', 'bnW') + return + endif + + let name = s:find_name(line('.')) + if empty(name) || !has_key(g:plugs, name) || + \ input(printf('Revert the update of %s? (y/N) ', name)) !~? '^y' + return + endif + + call s:system('git reset --hard HEAD@{1} && git checkout '.plug#shellescape(g:plugs[name].branch).' --', g:plugs[name].dir) + setlocal modifiable + normal! "_dap + setlocal nomodifiable + echo 'Reverted' +endfunction + +function! s:snapshot(force, ...) abort + call s:prepare() + setf vim + call append(0, ['" Generated by vim-plug', + \ '" '.strftime("%c"), + \ '" :source this file in vim to restore the snapshot', + \ '" or execute: vim -S snapshot.vim', + \ '', '', 'PlugUpdate!']) + 1 + let anchor = line('$') - 3 + let names = sort(keys(filter(copy(g:plugs), + \'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)'))) + for name in reverse(names) + let sha = s:git_revision(g:plugs[name].dir) + if !empty(sha) + call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha)) + redraw + endif + endfor + + if a:0 > 0 + let fn = s:plug_expand(a:1) + if filereadable(fn) && !(a:force || s:ask(a:1.' already exists. Overwrite?')) + return + endif + call writefile(getline(1, '$'), fn) + echo 'Saved as '.a:1 + silent execute 'e' s:esc(fn) + setf vim + endif +endfunction + +function! s:split_rtp() + return split(&rtp, '\\\@ - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - {one line to give the program's name and a brief idea of what it does.} - Copyright (C) {year} {name of author} - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - {project} Copyright (C) {year} {fullname} - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. - diff --git a/vim/.config/vim/plugged/YCM-Generator/README.md b/vim/.config/vim/plugged/YCM-Generator/README.md deleted file mode 100644 index df93026..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# YCM-Generator -This is a script which generates a list of compiler flags from a project with an arbitrary build system. It can be used to: - -* generate a ```.ycm_extra_conf.py``` file for use with [YouCompleteMe](https://github.com/Valloric/YouCompleteMe) -* generate a ```.color_coded``` file for use with [color_coded](https://github.com/jeaye/color_coded) - -It works by building the project with a fake toolchain, which simply and filters compiler flags to be stored in the resulting file. - -It is reasonably fast, taking ~10 seconds to generate a configuration file for the Linux kernel. - -## Status -This plugin is in maintenance mode. I am happy to merge PRs and triage bug reports, but am not actively working on it. - -## Installation -Add ```NeoBundle 'rdnetto/YCM-Generator'``` to your vimrc (or the equivalent for your plugin manager). - -For [vim-plug](https://github.com/junegunn/vim-plug) users, add ```Plug 'rdnetto/YCM-Generator', { 'branch': 'stable'}``` to your vimrc. - -Alternatively, Arch Linux users can install YCM-Generator using the (unofficial) [AUR package](https://aur4.archlinux.org/packages/ycm-generator-git/). - -## Usage -Run ```./config_gen.py PROJECT_DIRECTORY```, where ```PROJECT_DIRECTORY``` is the root directory of your project's build system (i.e. the one containing the root Makefile, etc.) - -You can also invoke it from within Vim using the ```:YcmGenerateConfig``` or ```:CCGenerateConfig``` commands to generate a config file for the current directory. These commands accept the same arguments as ```./config_gen.py```, but do not require the project directory to be specified (it defaults to the current working directory). - -## Requirements and Limitations -* Requirements: - + Python 2 - + Clang - -* Supported build systems: - + make - + cmake - + qmake - + autotools - -Your build system should support specifying the compiler through the ```CC```/```CXX``` environment variables, or not use an absolute path to the compiler. - -Some flags present in the resulting configuration file may be mutually exclusive with each other - reading the generated file prior to use is recommended. - -The script assumes that executables with the names `clang` and `clang++` exist in your `PATH`. This has been known to cause issues under Ubuntu, where the C++ compiler may be called `clang++-3.6` (see #50). - -## Documentation & Support -* run ```./config_gen.py --help``` to see the complete list of supported options. -* if you receive the error message ```ERROR: No commands were logged to the build logs```, try using the ```--verbose``` flag to see any error messages - + some build systems require certain environment variables to be set. Note that these will *not* be used by YCM-Generator by default, unless `--preserve-environment` is used - + if you open an issue regarding this error message, please include the output when running with ```--verbose``` and a link to the project repo (if possible) - -## Development -Patches are welcome. Please submit pull requests against the ```develop``` branch. - -### Windows support -The script is currently supported under Unices (Linux, NixOS[1], BSD, OS X) only. -Implementing Windows support consists of porting the contents of ```fake-toolchain/Unix```. -If you are interested in implementing/testing this, please open a pull request. - -[1] May require `--preserve-environment` - see [#19](https://github.com/rdnetto/YCM-Generator/issues/19) - -### Test Cases -The following projects are used for testing: - -| Project | Build system | Notes | -| ------------------------------------------------------------------------- | ----------------- | ------ | -| [Linux kernel](https://git.kernel.org) | Kbuild (Make) | | -| [Vim-qt](https://bitbucket.org/equalsraf/vim-qt.git) | Autotools | | -| [Clementine](https://github.com/clementine-player/Clementine.git) | Cmake | | -| [ExtPlane](https://github.com/vranki/ExtPlane.git) | Qmake | Should be tested with both versions of Qt. | -| [OpenFOAM](https://github.com/OpenFOAM/OpenFOAM-3.0.x.git) | wmake | | - -## License -YCM-Generator is published under the GNU GPLv3. - diff --git a/vim/.config/vim/plugged/YCM-Generator/config_gen.py b/vim/.config/vim/plugged/YCM-Generator/config_gen.py deleted file mode 100755 index 6a4a108..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/config_gen.py +++ /dev/null @@ -1,502 +0,0 @@ -#!/usr/bin/env python2 - -import sys -import os -import os.path -import re -import argparse -import datetime -import multiprocessing -import shlex -import shutil -import tempfile -import time -import subprocess -import glob - - -# Default flags for make -default_make_flags = ["-i", "-j" + str(multiprocessing.cpu_count())] - -# Set YCM-Generator directory -# Always obtain the real path to the directory where 'config_gen.py' lives as, -# in some cases, it will be a symlink placed in '/usr/bin' (as is the case -# with the Arch Linux AUR package) and it won't -# be able to find the plugin directory. -ycm_generator_dir = os.path.dirname(os.path.realpath(__file__)) - - -def main(): - # parse command-line args - parser = argparse.ArgumentParser(description="Automatically generates config files for YouCompleteMe") - parser.add_argument("-v", "--verbose", action="store_true", help="Show output from build process") - parser.add_argument("-f", "--force", action="store_true", help="Overwrite the file if it exists.") - parser.add_argument("-m", "--make", default="make", help="Use the specified executable for make.") - parser.add_argument("-b", "--build-system", choices=["cmake", "autotools", "qmake", "make"], help="Force use of the specified build system rather than trying to autodetect.") - parser.add_argument("-c", "--compiler", help="Use the specified executable for clang. It should be the same version as the libclang used by YCM. The executable for clang++ will be inferred from this.") - parser.add_argument("-C", "--configure_opts", default="", help="Additional flags to pass to configure/cmake/etc. e.g. --configure_opts=\"--enable-FEATURE\"") - parser.add_argument("-F", "--format", choices=["ycm", "cc"], default="ycm", help="Format of output file (YouCompleteMe or color_coded). Default: ycm") - parser.add_argument("-M", "--make-flags", help="Flags to pass to make when fake-building. Default: -M=\"{}\"".format(" ".join(default_make_flags))) - parser.add_argument("-o", "--output", help="Save the config file as OUTPUT. Default: .ycm_extra_conf.py, or .color_coded if --format=cc.") - parser.add_argument("-x", "--language", choices=["c", "c++"], help="Only output flags for the given language. This defaults to whichever language has its compiler invoked the most.") - parser.add_argument("--out-of-tree", action="store_true", help="Build autotools projects out-of-tree. This is a no-op for other project types.") - parser.add_argument("--qt-version", choices=["4", "5"], default="5", help="Use the given Qt version for qmake. (Default: 5)") - parser.add_argument("-e", "--preserve-environment", action="store_true", help="Pass environment variables to build processes.") - parser.add_argument("PROJECT_DIR", help="The root directory of the project.") - args = vars(parser.parse_args()) - project_dir = os.path.abspath(args["PROJECT_DIR"]) - - # verify that project_dir exists - if(not os.path.exists(project_dir)): - print("ERROR: '{}' does not exist".format(project_dir)) - return 1 - - # verify the clang is installed, and infer the correct name for both the C and C++ compilers - try: - cc = args["compiler"] or "clang" - args["cc"] = subprocess.check_output(["which", cc]).strip() - except subprocess.CalledProcessError: - print("ERROR: Could not find clang at '{}'. Please make sure it is installed and is either in your path, or specified with --compiler.".format(cc)) - return 1 - - try: - h, t = os.path.split(args["compiler"] or "clang") - cxx = os.path.join(h, t.replace("clang", "clang++")) - args["cxx"] = subprocess.check_output(["which", cxx]).strip() - except subprocess.CalledProcessError: - print("ERROR: Could not find clang++ at '{}'. Please make sure it is installed and specified appropriately.".format(cxx)) - return 1 - - # sanity check - remove this after we add Windows support - if(sys.platform.startswith("win32")): - print("ERROR: Windows is not supported") - - # prompt user to overwrite existing file (if necessary) - config_file = { - None: args["output"], - "cc": os.path.join(project_dir, ".color_coded"), - "ycm": os.path.join(project_dir, ".ycm_extra_conf.py"), - }[args["format"] if args["output"] is None else None] - - if(os.path.exists(config_file) and not args["force"]): - print("'{}' already exists. Overwrite? [y/N] ".format(config_file)), - response = sys.stdin.readline().strip().lower() - - if(response != "y" and response != "yes"): - return 1 - - # command-line args to pass to fake_build() using kwargs - args["make_cmd"] = args.pop("make") - args["configure_opts"] = shlex.split(args["configure_opts"]) - args["make_flags"] = default_make_flags if args["make_flags"] is None else shlex.split(args["make_flags"]) - force_lang = args.pop("language") - output_format = args.pop("format") - del args["compiler"] - del args["force"] - del args["output"] - del args["PROJECT_DIR"] - - generate_conf = { - "ycm": generate_ycm_conf, - "cc": generate_cc_conf, - }[output_format] - - # temporary files to hold build logs - with tempfile.NamedTemporaryFile(mode="rw") as c_build_log: - with tempfile.NamedTemporaryFile(mode="rw") as cxx_build_log: - # perform the actual compilation of flags - fake_build(project_dir, c_build_log.name, cxx_build_log.name, **args) - (c_count, c_skip, c_flags) = parse_flags(c_build_log) - (cxx_count, cxx_skip, cxx_flags) = parse_flags(cxx_build_log) - - print("Collected {} relevant entries for C compilation ({} discarded).".format(c_count, c_skip)) - print("Collected {} relevant entries for C++ compilation ({} discarded).".format(cxx_count, cxx_skip)) - - # select the language to compile for. If -x was used, zero all other options (so we don't need to repeat the error code) - if(force_lang == "c"): - cxx_count = 0 - elif(force_lang == "c++"): - c_count = 0 - - if(c_count == 0 and cxx_count == 0): - print("") - print("ERROR: No commands were logged to the build logs (C: {}, C++: {}).".format(c_build_log.name, cxx_build_log.name)) - print("Your build system may not be compatible.") - - if(not args["verbose"]): - print("") - print("Try running with the --verbose flag to see build system output - the most common cause of this is a hardcoded compiler path.") - - c_build_log.delete = False - cxx_build_log.delete = False - return 3 - - elif(c_count > cxx_count): - lang, flags = ("c", c_flags) - else: - lang, flags = ("c++", cxx_flags) - - generate_conf(["-x", lang] + flags, config_file) - print("Created {} config file with {} {} flags".format(output_format.upper(), len(flags), lang.upper())) - - -def fake_build(project_dir, c_build_log_path, cxx_build_log_path, verbose, make_cmd, build_system, cc, cxx, out_of_tree, configure_opts, make_flags, preserve_environment, qt_version): - '''Builds the project using the fake toolchain, to collect the compiler flags. - - project_dir: the directory containing the source files - build_log_path: the file to log commands to - verbose: show the build process output - make_cmd: the path of the make executable - cc: the path of the clang executable - cxx: the path of the clang++ executable - out_of_tree: perform an out-of-tree build (autotools only) - configure_opts: additional flags for configure stage - make_flags: additional flags for make - preserve_environment: pass environment variables to build processes - qt_version: The Qt version to use when building with qmake. - ''' - - # TODO: add Windows support - assert(not sys.platform.startswith("win32")) - fake_path = os.path.join(ycm_generator_dir, "fake-toolchain", "Unix") - - # environment variables and arguments for build process - started = time.time() - FNULL = open(os.devnull, "w") - proc_opts = {} if verbose else { - "stdin": FNULL, - "stdout": FNULL, - "stderr": FNULL - } - proc_opts["cwd"] = project_dir - - if(preserve_environment): - env = os.environ - else: - # Preserve HOME, since Cmake needs it to find some packages and it's - # normally there anyway. See #26. - env = dict(map(lambda x: (x, os.environ[x]), ["HOME"])) - - env["PATH"] = "{}:{}".format(fake_path, os.environ["PATH"]) - env["CC"] = "clang" - env["CXX"] = "clang++" - env["YCM_CONFIG_GEN_CC_LOG"] = c_build_log_path - env["YCM_CONFIG_GEN_CXX_LOG"] = cxx_build_log_path - - # used during configuration stage, so that cmake, etc. can verify what the compiler supports - env_config = env.copy() - env_config["YCM_CONFIG_GEN_CC_PASSTHROUGH"] = cc - env_config["YCM_CONFIG_GEN_CXX_PASSTHROUGH"] = cxx - - # use -i (ignore errors), since the makefile may include scripts which - # depend upon the existence of various output files - make_args = [make_cmd] + make_flags - - # Used for the qmake build system below - pro_files = glob.glob(os.path.join(project_dir, "*.pro")) - - # sanity check - make sure the toolchain is available - assert os.path.exists(fake_path), "Could not find toolchain at '{}'".format(fake_path) - - # helper function to display exact commands used - def run(cmd, *args, **kwargs): - print("$ " + " ".join(cmd)) - subprocess.call(cmd, *args, **kwargs) - - if build_system is None: - if os.path.exists(os.path.join(project_dir, "CMakeLists.txt")): - build_system = "cmake" - elif os.path.exists(os.path.join(project_dir, "configure")): - build_system = "autotools" - elif pro_files: - build_system = "qmake" - elif any([os.path.exists(os.path.join(project_dir, x)) for x in ["GNUmakefile", "makefile", "Makefile"]]): - build_system = "make" - - # execute the build system - if build_system == "cmake": - # cmake - # run cmake in a temporary directory, then compile the project as usual - build_dir = tempfile.mkdtemp() - proc_opts["cwd"] = build_dir - - # if the project was built in-tree, we need to hide the cache file so that cmake - # populates the build dir instead of just re-generating the existing files - cache_path = os.path.join(project_dir, "CMakeCache.txt") - - if(os.path.exists(cache_path)): - fd, cache_tmp = tempfile.mkstemp() - os.close(fd) - shutil.move(cache_path, cache_tmp) - else: - cache_tmp = None - - print("Running cmake in '{}'...".format(build_dir)) - sys.stdout.flush() - run(["cmake", project_dir] + configure_opts, env=env_config, **proc_opts) - - print("\nRunning make...") - sys.stdout.flush() - run(make_args, env=env, **proc_opts) - - print("\nCleaning up...") - print("") - sys.stdout.flush() - shutil.rmtree(build_dir) - - if(cache_tmp): - shutil.move(cache_tmp, cache_path) - - elif build_system == "autotools": - # autotools - # perform build in-tree, since not all projects handle out-of-tree builds correctly - - if(out_of_tree): - build_dir = tempfile.mkdtemp() - proc_opts["cwd"] = build_dir - print("Configuring autotools in '{}'...".format(build_dir)) - else: - print("Configuring autotools...") - - run([os.path.join(project_dir, "configure")] + configure_opts, env=env_config, **proc_opts) - - print("\nRunning make...") - run(make_args, env=env, **proc_opts) - - print("\nCleaning up...") - - if(out_of_tree): - print("") - shutil.rmtree(build_dir) - else: - run([make_cmd, "maintainer-clean"], env=env, **proc_opts) - - elif build_system == "qmake": - # qmake - # make sure there is only one .pro file - if len(pro_files) != 1: - print("ERROR: Found {} .pro files (expected one): {}.".format( - len(pro_files), ', '.join(pro_files))) - sys.exit(1) - - # run qmake in a temporary directory, then compile the project as usual - build_dir = tempfile.mkdtemp() - proc_opts["cwd"] = build_dir - env_config["QT_SELECT"] = qt_version - - # QMAKESPEC is platform dependent - valid mkspecs are in - # /usr/share/qt4/mkspecs, /usr/lib64/qt5/mkspecs - env_config["QMAKESPEC"] = { - ("Linux", True): "unsupported/linux-clang", - ("Linux", False): "linux-clang", - ("Darwin", True): "unsupported/macx-clang", - ("Darwin", False): "macx-clang", - ("FreeBSD", False): "unsupported/freebsd-clang", - }[(os.uname()[0], qt_version == "4")] - - print("Running qmake in '{}' with Qt {}...".format(build_dir, qt_version)) - run(["qmake"] + configure_opts + [pro_files[0]], env=env_config, - **proc_opts) - - print("\nRunning make...") - run(make_args, env=env, **proc_opts) - - print("\nCleaning up...") - print("") - shutil.rmtree(build_dir) - - elif build_system == "make": - # make - # needs to be handled last, since other build systems can generate Makefiles - print("Preparing build directory...") - run([make_cmd, "clean"], env=env, **proc_opts) - - print("\nRunning make...") - run(make_args, env=env, **proc_opts) - - elif(os.path.exists(os.path.join(project_dir, "Make/options"))): - print("Found OpenFOAM Make/options") - - # OpenFOAM build system - make_args = ["wmake"] - - # Since icpc could not find directory in which g++ resides, - # set environmental variables to gcc to make fake_build operate normally. - - env['WM_COMPILER']='Gcc' - env['WM_CC']='gcc' - env['WM_CXX']='g++' - - print("\nRunning wmake...") - run(make_args, env=env, **proc_opts) - - else: - print("ERROR: Unknown build system") - sys.exit(2) - - print("Build completed in {} sec".format(round(time.time() - started, 2))) - print("") - - -def parse_flags(build_log): - '''Creates a list of compiler flags from the build log. - - build_log: an iterator of lines - Returns: (line_count, skip_count, flags) - flags is a list, and the counts are integers - ''' - - # Used to ignore entries which result in temporary files, or don't fully - # compile the file - temp_output = re.compile("(-x assembler)|(-o ([a-zA-Z0-9._].tmp))|(/dev/null)") - skip_count = 0 - - # Flags we want: - # -includes (-i, -I) - # -defines (-D) - # -warnings (-Werror), but no assembler, etc. flags (-Wa,-option) - # -language (-std=gnu99) and standard library (-nostdlib) - # -word size (-m64) - flags_whitelist = ["-[iIDF].*", "-W[^,]*", "-std=[a-z0-9+]+", "-(no)?std(lib|inc)", "-m[0-9]+"] - flags_whitelist = re.compile("|".join(map("^{}$".format, flags_whitelist))) - flags = set() - line_count = 0 - - # macro definitions should be handled separately, so we can resolve duplicates - define_flags = dict() - define_regex = re.compile("-D([a-zA-Z0-9_]+)=(.*)") - - # Used to only bundle filenames with applicable arguments - filename_flags = ["-o", "-I", "-isystem", "-iquote", "-include", "-imacros", "-isysroot"] - - # Process build log - for line in build_log: - if(temp_output.search(line)): - skip_count += 1 - continue - - line_count += 1 - words = split_flags(line) - - for (i, word) in enumerate(words): - if(word[0] != '-' or not flags_whitelist.match(word)): - continue - - # handle macro definitions - m = define_regex.match(word) - if(m): - if(m.group(1) not in define_flags): - define_flags[m.group(1)] = [m.group(2)] - elif(m.group(2) not in define_flags[m.group(1)]): - define_flags[m.group(1)].append(m.group(2)) - - continue - - # include arguments for this option, if there are any, as a tuple - if(i != len(words) - 1 and word in filename_flags and words[i + 1][0] != '-'): - flags.add((word, words[i + 1])) - else: - flags.add(word) - - # Only specify one word size (the largest) - # (Different sizes are used for different files in the linux kernel.) - mRegex = re.compile("^-m[0-9]+$") - word_flags = list([f for f in flags if isinstance(f, basestring) and mRegex.match(f)]) - - if(len(word_flags) > 1): - for flag in word_flags: - flags.remove(flag) - - flags.add(max(word_flags)) - - # Resolve duplicate macro definitions (always choose the last value for consistency) - for name, values in define_flags.iteritems(): - if(len(values) > 1): - print("WARNING: {} distinct definitions of macro {} found".format(len(values), name)) - values.sort() - - flags.add("-D{}={}".format(name, values[0])) - - return (line_count, skip_count, sorted(flags)) - - -def generate_cc_conf(flags, config_file): - '''Generates the .color_coded file - - flags: the list of flags - config_file: the path to save the configuration file at''' - - with open(config_file, "w") as output: - for flag in flags: - if(isinstance(flag, basestring)): - output.write(flag + "\n") - else: # is tuple - for f in flag: - output.write(f + "\n") - - -def generate_ycm_conf(flags, config_file): - '''Generates the .ycm_extra_conf.py. - - flags: the list of flags - config_file: the path to save the configuration file at''' - - template_file = os.path.join(ycm_generator_dir, "template.py") - - with open(template_file, "r") as template: - with open(config_file, "w") as output: - output.write("# Generated by YCM Generator at {}\n\n".format(str(datetime.datetime.today()))) - - for line in template: - if(line == " # INSERT FLAGS HERE\n"): - # insert generated code - for flag in flags: - if(isinstance(flag, basestring)): - output.write(" '{}',\n".format(flag)) - else: # is tuple - output.write(" '{}', '{}',\n".format(*flag)) - - else: - # copy template - output.write(line) - - -def split_flags(line): - '''Helper method that splits a string into flags. - Flags are space-seperated, except for spaces enclosed in quotes. - Returns a list of flags''' - - # Pass 1: split line using whitespace - words = line.strip().split() - - # Pass 2: merge words so that the no. of quotes is balanced - res = [] - - for w in words: - if(len(res) > 0 and unbalanced_quotes(res[-1])): - res[-1] += " " + w - else: - res.append(w) - - return res - - -def unbalanced_quotes(s): - '''Helper method that returns True if the no. of single or double quotes in s is odd.''' - - single = 0 - double = 0 - - for c in s: - if(c == "'"): - single += 1 - elif(c == '"'): - double += 1 - - return (single % 2 == 1 or double % 2 == 1) - - -if(__name__ == "__main__"): - # Note that sys.exit() lets us use None and 0 interchangably - sys.exit(main()) - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ar b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ar deleted file mode 100755 index 8a395e6..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ar +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# This script is needed because /bin/true does not exist on non-FHS-compliant distros. e.g. NixOS -exit 0 - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/as b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/as deleted file mode 100755 index 8a395e6..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/as +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# This script is needed because /bin/true does not exist on non-FHS-compliant distros. e.g. NixOS -exit 0 - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cc b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cc deleted file mode 100755 index 8ecd890..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cc +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CC_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang deleted file mode 100755 index 8ecd890..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CC_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang++ b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang++ deleted file mode 100755 index 4e3733e..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/clang++ +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CXX_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cxx b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cxx deleted file mode 100755 index 4e3733e..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/cxx +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CXX_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/g++ b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/g++ deleted file mode 100755 index 4e3733e..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/g++ +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CXX_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc deleted file mode 100755 index 8ecd890..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CC_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CC_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc++ b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc++ deleted file mode 100755 index 4e3733e..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/gcc++ +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then - # Cmake determines compiler properties by compiling a test file, so call clang for this case - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then - # Needed to enable clang-specific options for certain build systems (e.g. linux) - $YCM_CONFIG_GEN_CXX_PASSTHROUGH $@ - -else - echo "$@" >> $YCM_CONFIG_GEN_CXX_LOG -fi - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ld b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ld deleted file mode 100755 index 8a395e6..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/ld +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# This script is needed because /bin/true does not exist on non-FHS-compliant distros. e.g. NixOS -exit 0 - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/nm b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/nm deleted file mode 100755 index 8a395e6..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/nm +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# This script is needed because /bin/true does not exist on non-FHS-compliant distros. e.g. NixOS -exit 0 - diff --git a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/true b/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/true deleted file mode 100755 index 8a395e6..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/fake-toolchain/Unix/true +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# This script is needed because /bin/true does not exist on non-FHS-compliant distros. e.g. NixOS -exit 0 - diff --git a/vim/.config/vim/plugged/YCM-Generator/plugin/ycm-generator.vim b/vim/.config/vim/plugged/YCM-Generator/plugin/ycm-generator.vim deleted file mode 100644 index f296774..0000000 --- a/vim/.config/vim/plugged/YCM-Generator/plugin/ycm-generator.vim +++ /dev/null @@ -1,23 +0,0 @@ - -let s:config_gen = expand(":p:h:h") . "/config_gen.py" - -command! -nargs=? -complete=file_in_path -bang CCGenerateConfig call s:GenerateConfig("cc", 0, "") -command! -nargs=? -complete=file_in_path -bang YcmGenerateConfig call s:GenerateConfig("ycm", 0, "") - -function! s:GenerateConfig(fmt, overwrite, flags) - let l:cmd = "! " . s:config_gen . " -F " . a:fmt . " " . a:flags - - if a:overwrite - let l:cmd = l:cmd . " -f" - endif - - " Only append the working directory if the last option is a flag - let l:split_flags = split(a:flags) - if len(l:split_flags) == 0 || l:split_flags[-1] =~ "^-" - let l:cmd = l:cmd . " " . shellescape(getcwd()) - endif - - " Disable interactive prompts for consistency with Neovim - execute l:cmd . " - -import os -import ycm_core - -flags = [ - # INSERT FLAGS HERE -] - - -# Set this to the absolute path to the folder (NOT the file!) containing the -# compile_commands.json file to use that instead of 'flags'. See here for -# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html -# -# You can get CMake to generate this file for you by adding: -# set( CMAKE_EXPORT_COMPILE_COMMANDS 1 ) -# to your CMakeLists.txt file. -# -# Most projects will NOT need to set this to anything; you can just change the -# 'flags' list of compilation flags. Notice that YCM itself uses that approach. -compilation_database_folder = '' - -if os.path.exists( compilation_database_folder ): - database = ycm_core.CompilationDatabase( compilation_database_folder ) -else: - database = None - -SOURCE_EXTENSIONS = [ '.C', '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ] - -def DirectoryOfThisScript(): - return os.path.dirname( os.path.abspath( __file__ ) ) - - -def MakeRelativePathsInFlagsAbsolute( flags, working_directory ): - if not working_directory: - return list( flags ) - new_flags = [] - make_next_absolute = False - path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ] - for flag in flags: - new_flag = flag - - if make_next_absolute: - make_next_absolute = False - if not flag.startswith( '/' ): - new_flag = os.path.join( working_directory, flag ) - - for path_flag in path_flags: - if flag == path_flag: - make_next_absolute = True - break - - if flag.startswith( path_flag ): - path = flag[ len( path_flag ): ] - new_flag = path_flag + os.path.join( working_directory, path ) - break - - if new_flag: - new_flags.append( new_flag ) - return new_flags - - -def IsHeaderFile( filename ): - extension = os.path.splitext( filename )[ 1 ] - return extension in [ '.H', '.h', '.hxx', '.hpp', '.hh' ] - - -def GetCompilationInfoForFile( filename ): - # The compilation_commands.json file generated by CMake does not have entries - # for header files. So we do our best by asking the db for flags for a - # corresponding source file, if any. If one exists, the flags for that file - # should be good enough. - if IsHeaderFile( filename ): - basename = os.path.splitext( filename )[ 0 ] - for extension in SOURCE_EXTENSIONS: - replacement_file = basename + extension - if os.path.exists( replacement_file ): - compilation_info = database.GetCompilationInfoForFile( - replacement_file ) - if compilation_info.compiler_flags_: - return compilation_info - return None - return database.GetCompilationInfoForFile( filename ) - - -def FlagsForFile( filename, **kwargs ): - if database: - # Bear in mind that compilation_info.compiler_flags_ does NOT return a - # python list, but a "list-like" StringVec object - compilation_info = GetCompilationInfoForFile( filename ) - if not compilation_info: - return None - - final_flags = MakeRelativePathsInFlagsAbsolute( - compilation_info.compiler_flags_, - compilation_info.compiler_working_dir_ ) - - else: - relative_to = DirectoryOfThisScript() - final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to ) - - return { - 'flags': final_flags, - 'do_cache': True - } - -def Settings( **kwargs ): - language = kwargs[ 'language' ] - if language == 'cfamily': - return { - 'flags': flags - } - - return {} diff --git a/vim/.config/vim/plugged/nord-vim/.editorconfig b/vim/.config/vim/plugged/nord-vim/.editorconfig deleted file mode 100644 index 885acd4..0000000 --- a/vim/.config/vim/plugged/nord-vim/.editorconfig +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Configurations for EditorConfig. -# See https://editorconfig.org/#file-format-details for more details. - -# +--------------------+ -# + Base Configuration + -# +--------------------+ -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -max_line_length = 160 -trim_trailing_whitespace = true - -# +-----------+ -# + Languages + -# +-----------+ -# +--- Markdown ---+ -[*.{md}] -max_line_length = off -trim_trailing_whitespace = false diff --git a/vim/.config/vim/plugged/nord-vim/.gitattributes b/vim/.config/vim/plugged/nord-vim/.gitattributes deleted file mode 100644 index ad8e9b4..0000000 --- a/vim/.config/vim/plugged/nord-vim/.gitattributes +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Configuration to define attributes per path. -# -# References: -# 1. https://git-scm.com/docs/gitattributes -# 2. https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion - -# Automatically perform line feed (LF) normalization for files detected as text and -# leave all files detected as binary untouched. -* text=auto eol=lf diff --git a/vim/.config/vim/plugged/nord-vim/.github/codeowners b/vim/.config/vim/plugged/nord-vim/.github/codeowners deleted file mode 100644 index 0f7b107..0000000 --- a/vim/.config/vim/plugged/nord-vim/.github/codeowners +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Configuration for the GitHub feature to automatically request reviews from the code owners -# when a pull request changes any owned files. -# -# References: -# 1. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location -# 2. https://github.com/blog/2392-introducing-code-owners - -# +----------------------+ -# + Core Team Code Owner + -# +----------------------+ -* @svengreb diff --git a/vim/.config/vim/plugged/nord-vim/.gitignore b/vim/.config/vim/plugged/nord-vim/.gitignore deleted file mode 100644 index 78562b3..0000000 --- a/vim/.config/vim/plugged/nord-vim/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Path match pattern to intentionally ignore untracked files and directories. -# See https://git-scm.com/docs/gitignore for more details. - -# +---------+ -# + Node.js + -# +---------+ -**/node_modules/ diff --git a/vim/.config/vim/plugged/nord-vim/.mailmap b/vim/.config/vim/plugged/nord-vim/.mailmap deleted file mode 100644 index 0745dec..0000000 --- a/vim/.config/vim/plugged/nord-vim/.mailmap +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Configuration for the Git mail mapping feature to coalesce together commits by the same person in the shortlog, -# where their name and/or email address was spelled differently or has been changed. -# See https://git-scm.com/docs/git-shortlog#_mapping_authors for more details. -Sven Greb -Sven Greb diff --git a/vim/.config/vim/plugged/nord-vim/.npmrc b/vim/.config/vim/plugged/nord-vim/.npmrc deleted file mode 100644 index 2ddf945..0000000 --- a/vim/.config/vim/plugged/nord-vim/.npmrc +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2016-present Sven Greb -# This source code is licensed under the MIT license found in the license file. - -# Configurations for npm. -# See https://docs.npmjs.com/cli/v7/configuring-npm/npmrc for more details. - -# Only use a lockfile for single-consumer projects, like applications, but not for multi-consumer projects like -# libraries. -# It helps to pin dependency versions, improves the security through integrity checksums, prevents possible errors -# caused by updated transitive dependencies and allows to get deterministic build results, but it can hide problems in -# multi-consumer projects when any later versions of a used dependency, or its transitive dependencies, is not -# compatible with the own project anymore. -package-lock=true - -# Do not resolve to the latest minor and patch updates. -# Automatically pin dependencies to exact versions instead of resolving to latest minor and patch updates. -# This prevents possible errors caused by updated transitive dependencies. -save-exact=true diff --git a/vim/.config/vim/plugged/nord-vim/autoload/airline/themes/nord.vim b/vim/.config/vim/plugged/nord-vim/autoload/airline/themes/nord.vim deleted file mode 100755 index ba1a9d9..0000000 --- a/vim/.config/vim/plugged/nord-vim/autoload/airline/themes/nord.vim +++ /dev/null @@ -1,94 +0,0 @@ -" Copyright (c) 2016-present Sven Greb -" This source code is licensed under the MIT license found in the license file. - -let s:nord_vim_version="0.19.0" -let g:airline#themes#nord#palette = {} - -let s:nord0_gui = "#2E3440" -let s:nord1_gui = "#3B4252" -let s:nord2_gui = "#434C5E" -let s:nord3_gui = "#4C566A" -let s:nord4_gui = "#D8DEE9" -let s:nord5_gui = "#E5E9F0" -let s:nord6_gui = "#ECEFF4" -let s:nord7_gui = "#8FBCBB" -let s:nord8_gui = "#88C0D0" -let s:nord9_gui = "#81A1C1" -let s:nord10_gui = "#5E81AC" -let s:nord11_gui = "#BF616A" -let s:nord12_gui = "#D08770" -let s:nord13_gui = "#EBCB8B" -let s:nord14_gui = "#A3BE8C" -let s:nord15_gui = "#B48EAD" - -let s:nord0_term = "NONE" -let s:nord1_term = "0" -let s:nord2_term = "NONE" -let s:nord4_term = "NONE" -let s:nord11_term = "1" -let s:nord14_term = "2" -let s:nord13_term = "3" -let s:nord9_term = "4" -let s:nord15_term = "5" -let s:nord8_term = "6" -let s:nord5_term = "7" -let s:nord3_term = "8" -let s:nord12_term = "11" -let s:nord10_term = "12" -let s:nord7_term = "14" -let s:nord6_term = "15" - -let s:NMain = [s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term] -let s:NRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:NMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:NWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] -let s:NError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] -let g:airline#themes#nord#palette.normal = airline#themes#generate_color_map(s:NMain, s:NRight, s:NMiddle) -let g:airline#themes#nord#palette.normal.airline_warning = s:NWarn -let g:airline#themes#nord#palette.normal.airline_error = s:NError - -let s:IMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord6_term] -let s:IRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:IMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:IWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] -let s:IError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] -let g:airline#themes#nord#palette.insert = airline#themes#generate_color_map(s:IMain, s:IRight, s:IMiddle) -let g:airline#themes#nord#palette.insert.airline_warning = s:IWarn -let g:airline#themes#nord#palette.insert.airline_error = s:IError - -let s:RMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord14_term] -let s:RRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:RMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:RWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] -let s:RError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] -let g:airline#themes#nord#palette.replace = airline#themes#generate_color_map(s:RMain, s:RRight, s:RMiddle) -let g:airline#themes#nord#palette.replace.airline_warning = s:RWarn -let g:airline#themes#nord#palette.replace.airline_error = s:RError - -let s:VMain = [s:nord1_gui, s:nord7_gui, s:nord1_term, s:nord7_term] -let s:VRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:VMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:VWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] -let s:VError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] -let g:airline#themes#nord#palette.visual = airline#themes#generate_color_map(s:VMain, s:VRight, s:VMiddle) -let g:airline#themes#nord#palette.visual.airline_warning = s:VWarn -let g:airline#themes#nord#palette.visual.airline_error = s:VError - -let s:IAMain = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:IARight = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -if g:nord_uniform_status_lines == 0 - let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term] -else - let s:IAMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -endif -let s:IAWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] -let s:IAError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] -let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle) -let g:airline#themes#nord#palette.inactive.airline_warning = s:IAWarn -let g:airline#themes#nord#palette.inactive.airline_error = s:IAError - -let g:airline#themes#nord#palette.normal.airline_term = s:NMiddle -let g:airline#themes#nord#palette.insert.airline_term = s:IMiddle -let g:airline#themes#nord#palette.replace.airline_term = s:RMiddle -let g:airline#themes#nord#palette.visual.airline_term = s:VMiddle -let g:airline#themes#nord#palette.inactive.airline_term = s:IAMiddle diff --git a/vim/.config/vim/plugged/nord-vim/autoload/lightline/colorscheme/nord.vim b/vim/.config/vim/plugged/nord-vim/autoload/lightline/colorscheme/nord.vim deleted file mode 100755 index b51cca6..0000000 --- a/vim/.config/vim/plugged/nord-vim/autoload/lightline/colorscheme/nord.vim +++ /dev/null @@ -1,43 +0,0 @@ -" Copyright (c) 2016-present Sven Greb -" This source code is licensed under the MIT license found in the license file. - -let s:nord_vim_version="0.19.0" -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} - -let s:nord0 = ["#2E3440", "NONE"] -let s:nord1 = ["#3B4252", 0] -let s:nord2 = ["#434C5E", "NONE"] -let s:nord3 = ["#4C566A", 8] -let s:nord4 = ["#D8DEE9", "NONE"] -let s:nord5 = ["#E5E9F0", 7] -let s:nord6 = ["#ECEFF4", 15] -let s:nord7 = ["#8FBCBB", 14] -let s:nord8 = ["#88C0D0", 6] -let s:nord9 = ["#81A1C1", 4] -let s:nord10 = ["#5E81AC", 12] -let s:nord11 = ["#BF616A", 1] -let s:nord12 = ["#D08770", 11] -let s:nord13 = ["#EBCB8B", 3] -let s:nord14 = ["#A3BE8C", 2] -let s:nord15 = ["#B48EAD", 5] - -let s:p.normal.left = [ [ s:nord1, s:nord8 ], [ s:nord5, s:nord1 ] ] -let s:p.normal.middle = [ [ s:nord5, s:nord3 ] ] -let s:p.normal.right = [ [ s:nord5, s:nord1 ], [ s:nord5, s:nord1 ] ] -let s:p.normal.warning = [ [ s:nord1, s:nord13 ] ] -let s:p.normal.error = [ [ s:nord1, s:nord11 ] ] - -let s:p.inactive.left = [ [ s:nord1, s:nord8 ], [ s:nord5, s:nord1 ] ] -let s:p.inactive.middle = g:nord_uniform_status_lines == 0 ? [ [ s:nord5, s:nord1 ] ] : [ [ s:nord5, s:nord3 ] ] -let s:p.inactive.right = [ [ s:nord5, s:nord1 ], [ s:nord5, s:nord1 ] ] - -let s:p.insert.left = [ [ s:nord1, s:nord6 ], [ s:nord5, s:nord1 ] ] -let s:p.replace.left = [ [ s:nord1, s:nord13 ], [ s:nord5, s:nord1 ] ] -let s:p.visual.left = [ [ s:nord1, s:nord7 ], [ s:nord5, s:nord1 ] ] - -let s:p.tabline.left = [ [ s:nord5, s:nord3 ] ] -let s:p.tabline.middle = [ [ s:nord5, s:nord3 ] ] -let s:p.tabline.right = [ [ s:nord5, s:nord3 ] ] -let s:p.tabline.tabsel = [ [ s:nord1, s:nord8 ] ] - -let g:lightline#colorscheme#nord#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/.config/vim/plugged/nord-vim/changelog.md b/vim/.config/vim/plugged/nord-vim/changelog.md deleted file mode 100644 index d9fae38..0000000 --- a/vim/.config/vim/plugged/nord-vim/changelog.md +++ /dev/null @@ -1,1261 +0,0 @@ -

- - - - - - -

- -

- - - - - - -

- -

- Changelog for Nord Vim — An arctic, north-bluish clean and elegant Vim color theme. -

- - - -# 0.19.0 - -![Release Date: 2022-05-14](https://img.shields.io/static/v1.svg?style=flat-square&label=Release%20Date&message=2022-05-14&colorA=4c566a&colorB=88c0d0) [![Project Board](https://img.shields.io/static/v1.svg?style=flat-square&label=Project%20Board&message=0.19.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/orgs/nordtheme/projects/1/views/10) [![Milestone](https://img.shields.io/static/v1.svg?style=flat-square&label=Milestone&message=0.19.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/milestone/21) - -⇅ [Show all commits][111] - -## Features - -### Syntax - -
-Support for LSP textDocument/documentHighlight — #284 (⊶ 3e4e273d) by @cmoscofian - -↠ The [Neovim LSP `textDocument` / `documentHightlight` groups][114] are responsible to highlight tokens in a document that are related to each -other, e.g. declared variables, using the `vim.buf.lsp.document_highlight()` function. -Also see the [LSP specification about "Document Highlights Request"][115] for more details. - -

- -

- -
- -### UI - -
-Support for LSP LSPSignatureActiveParameter — #286 (⊶ a8256787) by @cmoscofian - -↠ The [`vim.lsp.buf.signature_help` function is used to highlight the active parameter in the signature help][117] [1]. Before the active parameter was not styled differently to any other parameter which made it hard to distinguish it. This has been improved by adding support for the `LspSignatureActiveParameter` syntax highlighting group where the active parameter now uses `nord8` are foreground color and additionally a font underline with the same color. - -

Before

-

- -

After

-

- -
- -## Improvements - -
-Refactored theme configuration conditions — #295, #305 (⊶ 291e05d9, e3eb2084) by @jvoisin and @svengreb - -↠ The conditions and default values of the theme configurations were quite verbose so this commit improves them by… - -- …using inline ternary operators instead of if/else blocks to reduce the code overhead and make it way more readable. -- …using [Vim builtin `get` function][118] instead of if/else blocks. -- …inlining the script-scoped `logWarning` function since it was only used once. -- …grouping some blocks where it made sense. - -
- -
-Only call execute function once per syntax group — #303 (⊶ 77fe4b3f) by @jvoisin and @svengreb - -↠ Before the custom `s:hi` function called [Vim's `execute` function][119] for each defined attribute which is quite expensive in terms of performance. To improve this the attributes are now concatenate as string and passed to `exec` at the end of the function instead. - -
- -### Syntax - -
-Readability of C language constants — #283 (⊶ b32592eb) by @jvoisin - -↠ To improve the readability of C language constants, defined by [the `cConstant` syntax highlighting group][116], these are now colored with `nord9` for the foreground to make them stand out. This is important in C, since interesting things are usually happening in their proximity, like checking/returning an error, passing particular values/flags to functions and so on. - -

Before

-

- -

After

-

- -
- -## Tasks - -
-Support for Neovim 0.6.0 diagnostic API highlight groups — #282 (⊶ 8035ba07) by @jan-xyz - -↠ In [Neovim `0.6.0`][112] the [naming scheme for the highlight groups of the diagnostic API changed][113] [2]. The new groups have been added as default while the previous groups are conditionally guarded when using Neovim `0.5.0`. - -
- -# 0.18.0 - -![Release Date: 2021-09-12](https://img.shields.io/static/v1.svg?style=flat-square&label=Release%20Date&message=2021-09-12&colorA=4c566a&colorB=88c0d0) [![Project Board](https://img.shields.io/static/v1.svg?style=flat-square&label=Project%20Board&message=0.18.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/projects/24) [![Milestone](https://img.shields.io/static/v1.svg?style=flat-square&label=Milestone&message=0.18.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/milestone/20) - -⇅ [Show all commits][106] - -## Features - -### Syntax - -
-Support for vim-pandoc/vim-pandoc-syntax — #220 (⊶ 8d8b9bf8) by @tpoisot and @BirgerNi - -↠ To improve syntax highlighting for [Pandoc][9], support for the [vim-pandoc/vim-pandoc-syntax][13] plugin has been implemented. -Most groups are linked to existing Markdown groups to ensure a consistent style across languages and different plugins. - -

- -
- -### UI - -
-Support for LSP code lenses — #266 (⊶ 02ddfadb) by @jan-xyz - -↠ Before [LSP code lenses][107] were highlighted with the default color which has been changed to make it less visually intrusive, like other UI related elements, e.g. messages of linters. - -

Before

-

- -

After

-

- -
- -## Improvements - -### Syntax - -
-Prevent aggressive error highlighting — #269 ⇄ #270 (⊶ e3e8a75c) by @jan-xyz - -↠ The `TSError` group is used to [highlight syntax/parser errors][108] which caused an aggressive styling where the background color of many syntax elements was rendered with `nord11` during typing. This is a known problem and was fixed by many other themes by removing the group again. One of the [core maintainers of `nvim-treesitter` provided a solution by remapping groups][110] and also mentioned that the group is [styled by the `nvim-treesitter` plugin but the active theme][109]. - -Syntax errors can still be highlighted through linters and parsers like [Neovim's LSP][8] can still be used instead to highlight errors with the correct style, e.g. only change the foreground color of a single word. - -

Before

-

- -

After

-

- -
- -# 0.17.0 - -![Release Date: 2021-07-10](https://img.shields.io/static/v1.svg?style=flat-square&label=Release%20Date&message=2021-07-10&colorA=4c566a&colorB=88c0d0) [![Project Board](https://img.shields.io/static/v1.svg?style=flat-square&label=Project%20Board&message=0.17.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/projects/23) [![Milestone](https://img.shields.io/static/v1.svg?style=flat-square&label=Milestone&message=0.17.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/milestone/19) - -⇅ [Show all commits][101] - -## Features - -### Syntax - -
-Support for nvim-treesitter/nvim-treesitter — #235 ⇄ #253 (⊶ b3e712a9) by @s-u-d-o-e-r and @mrswats - -↠ Neovim [version 0.5][102] is a long-time awaited update that introduces features like support for [tree-sitter][105] via [nvim-treesitter][104] and [LSP][7] via [nvim-lspconfig][8]. -Even though Neovim divides more and more from Vim through specific features like first-class Lua support with custom APIs, the highlighting for tree-sitter is achieved through “normal“ syntax highlighting groups. Most of the groups are already [linked by the `nvim-treesitter` plugin by default][103] so only a few groups have been adjusted for now to fit the Nord style. - -⚠️ Note that this is the first iteration and **it is very likely that there will be inconsistencies compared to the current highlighting when using “normal“ Vim plugins per language**. Please **report any problem** you find so that the support for tree-sitter can be improved continuously! - -
- -# 0.16.0 - -![Release Date: 2021-06-09](https://img.shields.io/static/v1.svg?style=flat-square&label=Release%20Date&message=2021-06-09&colorA=4c566a&colorB=88c0d0) [![Project Board](https://img.shields.io/static/v1.svg?style=flat-square&label=Project%20Board&message=0.16.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/projects/22) [![Milestone](https://img.shields.io/static/v1.svg?style=flat-square&label=Milestone&message=0.16.0&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0)](https://github.com/nordtheme/vim/milestone/18) - -⇅ [Show all commits][88] - -## Features - -### API - -
-Public API function NordPalette to get Nord colors — #224 (⊶ 5867535c) by @jandamm - -↠ Implemented a new `NordPalette` pubic API function that returns all [Nord colors][87] as dictionary. This allows to use the colors in other Vim scripts without the need to copy & paste the colors from the documentations or the [Nord Vim theme sources][85]. - -
- -### Syntax - -
-Support for the php.vim plugin — #218, #262 ⇄ #263 (⊶ b3c46c87, 07452c71) by @pirey - -↠ In [nordtheme/vim#218][84] new highlighting groups for the bundled PHP syntax were added to improve the highlighting of classes, function and methods and the overall syntax token detection, but they are actually defined by the [php.vim][98] plugin. Therefore the added highlighting calls have been moved to a plugin section. -Additionally, the `phpClassExtends` and `phpClassImplements` groups have been added to improve the highlighting for classes that implement or extended interfaces/classes. The `phpUseClass` has also been added to improve the highlighting for imports. - -To improve the highlighting with the bundled PHP syntax, the [following options][99] can be set: - -```vim -let php_asp_tags = 1 -let php_baselib = 1 -let php_htmlInStrings = 1 -let php_parent_error_close = 1 -let php_parent_error_open = 1 -``` - -

Before

-

- -

After

-

- -
- -
-Conceal highlighting group support — #149, #207, #211, #256 ⇄ #261 (⊶ f3f28b93) - -↠ The `Conceal` group is was not supported which could resulted in rendering problems for (Unicode) characters that require special encoding like the ones from the [Greek alphabet][100] and [mathematical expressions][97] that are often used in [LaTeX][92] or [Pandoc][9] documents. These characters were highlighted with the default background color which made them kind of unreadable with the theme foreground color. -See `:help conceal` and `:help concealcursor` for more details about concealing in Vim. - -To fix the problem, the `Conceal` group has been added with its background color set to `NONE` for GUI and terminal mode to either use the terminal default background color or let loaded scripts apply custom styles based on the current runtime context. - -The problem has been reported in #149, #207 and #211 with LaTeX and Pandoc being used by the reporters. PR #220 adds support for [vim-pandoc/vim-pandoc-syntax][13] specific highlighting groups and can be merged after adding basic support for `Conceal`. - -To get the correct rendering for such elements the following configurations must be set: - -```vim -let g:pandoc#syntax#conceal#use = 1 -set conceallevel=2 -``` - -

Before

-

- -

After

-

- -
- -
-Updated highlights for Neovim LSP diagnostics — #229, #248 (⊶ a3af928a) by @gbrlsnchs and @thallium - -↠ To ensure compatibility with the latest versions of Neovim LSP the highlighting groups for diagnostics have been adapted to the changes of [neovim/neovim#12655][96]. -See [`:help lsp-highlight-diagnostics`][7] for more details. - -Note that LSP will be available as of [Neovim 0.5][95] which is (at the time of this commit) still in development and only available as nightly build. -Also see great articles from Nord Vim contributors like [“Neovim (0.5) Is Overpowering“][86] for more information about Neovim 0.5 features, including LSP. - -Thanks to [@clason][89], [@crispgm][90] and [@ojroques][91] for the review support! - -
- -### UI - -
-Support for the vim-indent-guides plugin — #186 ⇄ #226 (⊶ ea7ff9c3) by @mitinarseny - -↠ Added support for the [vim-indent-guides][93] plugin. The even and odd highlighting blocks using `nord1` and `nord2` (`nord3`in terminal mode) to provide a subtle and non-disturbing style. -Note that the [custom theme colors][94] are only applied when the `indent_guides_auto_colors` variable has been set to `0`: - -```vim -let g:indent_guides_auto_colors = 0 -``` - -

Before

-

- -

After

-

- -
- -## Improvements - -### UI - -
-coc.vim error and warning highlighting — #213 (⊶ 8a9754ce) by @butterywombat - -↠ Added the [coc.nvim][6] highlighting groups for errors and warnings using their respective foreground colors and the `undercurl` font style. - -
- -## Bug Fixes - -### UI - -
-Typo in group Pmenu group names — #252 (⊶ e5a54c7f) by @kunzaatko - -↠ Fixed two typos in `Pmenu` group names: - -- `PMenuSel` -> `PmenuSel` -- `PMenu` -> `Pmenu` - -This mismatch was never really noticed because most of the time users rely on plugins like [coc.vim][6] or [vim-clap][5] which come with custom highlighting groups and UI libraries. - -
- -# 0.15.0 - -![Release Date: 2020-07-06](https://img.shields.io/badge/Release_Date-2020--07--06-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.15.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/21) [![Milestone](https://img.shields.io/badge/Milestone-0.15.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/17) - -## Features - -### Syntax - -**Extended support for TypeScript and TSX** — #208 (⊶ 1bd44ade) by [@iamdidev][78] -↠ Added extended support for [TypeScript][83] and [TSX][82] through the [yats.vim][80] plugin. -This provides, among many other good changes, better highlighting for syntax elements like [decorators][81], more granular separation of different language elements within a single code line as well as highlighting for… - -

…interfaces with bold font style, typing characters and types.

-

- -

…global methods like setTimeout with italic font style.

-

- -

…regular expressions with nord13 instead of the normal color for quoted strings.

-

- -

…global elements like Error, JSON and console.

-

- -

…brackets of types as structural elements.

-

- -

…TSX/JSX and HTML with a consistent appearance.

-

- -### UI - -**Support for vim-clap** — #178 (⊶ 7a52f66c) by [@meck][44] and [@ikalnytskyi][79] -↠ Added basic support for [vim-clap][5], a modern and performant generic finder and dispatcher for Vim and NeoVim. - -

- -# 0.14.0 - -![Release Date: 2020-06-16](https://img.shields.io/badge/Release_Date-2020--06--16-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.14.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/20) [![Milestone](https://img.shields.io/badge/Milestone-0.14.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/16) - -## Features - -### UI - -**Basic support for nvim-lsp (Language Server Protocol)** — #198 (⊶ 0ccf70b6) by [@alexanderjeurissen][74] -↠ Added basic support for [nvim-lsp][76], a collection of common configurations for the NVim language server protocol client. - -## Improvements - -### UI - -**Consistent error highlighting between GUI and terminal mode** — #202 (⊶ 974a9190) by [@xulongwu4][75] -↠ The highlighting of errors in GUI and _true color_ terminal mode now also uses `nord4` as foreground color of instead of `nord0`. - -

Before

-

-

After

-

- -**Improved highlighting for “More“ separator** — #202 (⊶ 974a9190) by [@xulongwu4][75] -↠ The highlighting of the _More_ separator is now highlighted with the `nord8` accent color. - -

Before

-

-

After

-

- -**Transparent line number and cursor line background by default** — #204 (⊶ 6323f662) by [@xulongwu4][75] -↠ Before the background color of the `LineNr` and `CursorLineNr` highlighting groups were set to `nord0` which was fine in most cases, but conflicted with plugins like [Yggdroot/LeaderF][77] that renders line numbers in a popup windows with a different background color. - -

Before

-

-

After

-

- -# 0.13.0 - -![Release Date: 2019-12-17](https://img.shields.io/badge/Release_Date-2019--12--17-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.13.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/19) [![Milestone](https://img.shields.io/badge/Milestone-0.13.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/15) - -## Features - -### UI - -**Support uniform status line background configuration for _vim-airline_ and _lightline.vim_ themes** — #168 ⇄ #169 (⊶ 73b3d340) by [@jmurinello][66] -↠ Added support for the [uniform status line][73] theme configuration, [introduced in version 0.7.0][63] through [nordtheme/vim#58][62], for the bundled _vim-airline_ and _lightline.vim_ themes. - -

lightline.vim

-

Before

-

-

After

-

- -

vim-airline

-

Before

-

-

After

-

- -**Basic support for coc.vim (Conquer of Completion)** — #164 (⊶ a7797269) by [@hennessey][65] -↠ Added basic support for [coc.nvim][6], a _Intellisense_ engine for Vim 8 & NeoVim with full language server protocol support. - -**Basic support for _vim-startify_** — #159 ⇄ #176 (⊶ 38ab4a9c) -↠ Added basic support for [vim-startify][69] with custom highlight groups. - -

- -## Improvements - -### UI - -**No underlined style for gutter line numbers** — #174 ⇄ #185 (⊶ 0d352c4b) by [@nixtrace][67] and [@alexandremjacques][64] -↠ [Vim version 8.1.2029][71] added the [`underline` attribute for the `CursorLineNr` group to `cterm`][70] based on [vim/vim#4933][72]. -This change resulted in gutter line numbers being underlined which has now been reverted back to Nord's style by explicitly setting the attribute for the group to `NONE`. - -

Before

-

- -

After

-

- -## Bug Fixes - -### Documentation - -**Fix missing whitespace** — #165 (⊶ 81d80e4a) by [@vasilescur][68] -↠ Fixed a missing whitespace in the README project description. - -# 0.12.0 - -![Release Date: 2019-05-25](https://img.shields.io/badge/Release_Date-2019--05--25-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.12.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/18) [![Milestone](https://img.shields.io/badge/Milestone-0.12.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/14) - -## Features - -**Nord Docs Transition** — #158, #144 ⇄ #160 (⊶ 7be26147) -↠ Transferred all documentations, assets and from „Nord Vim“ to [Nord Docs][1] -Please see the [corresponding issue in the Nord Docs repository][60] to get an overview of what has changed for Nord Vim and what has been done to migrate to Nord Docs. - -###### Landing Page - -

Preview: Nord Vim Port Project Landing Page

- -###### Landing Page Docs - -

Preview: Nord Vim Docs Project Landing Page

- -###### Installation & Activation Docs - -

Preview: Nord Vim Docs Installation & Activation Docs Page

- -###### Configuration Docs - -

Preview: Nord Vim Docs Configuration Docs Page

- -###### Customization Docs - -

Preview: Nord Vim Docs Configuration Docs Page

- -**Theme configuration for bold font style rendering** — #143 ⇄ #161 (⊶ 18a4e350) requested by [@tobydeh][59] -↠ Added a new [`nord_bold` theme configuration to allow to explicitly toggle bold font rendering styles][61]. -It is enabled by default when running for both in GUI and terminal mode since most terminals and shells are capable to handle bold fonts. - -

- -## Improvements - -**Active match for increment search** — #139 ⇄ #140 (⊶ de24841a) by [@aborzunov][58] -↠ The currently active match during increment searches (`IncSearch`) is now highlighted differently (`nord10` as background and `nord6` as foreground) than inactive matches for a better visual distinction. - -

- -# 0.11.0 - -![Release Date: 2019-04-18](https://img.shields.io/badge/Release_Date-2019--04--18-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.11.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/16) [![Milestone](https://img.shields.io/badge/Milestone-0.11.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/13) - -## Features - -### Syntax - -**Basic support for Asciidoc syntax highlighting** — #131 ⇄ #152 (⊶ 6e6025b9) by [@tidux][46] -↠ Added basic syntax highlighting support for [Asciidoc][39] that comes bundled with Vim 8. - -

- -**Basic syntax highlighting support for Rust** — #138 ⇄ #154 (⊶ b0ffc6b5) by [@TerminalWitchcraft][45] -↠ Added basic syntax highlighting support for [Rust][55]. - -[Traits][54] and [enums][51] are colorized with `nord7` and with bold font to make them visually stand out more. -Also [attributes][49] and [derives][50] are colored with `nord10`. - -

Before

- -

After

- -[Macros][53] are colorized with `nord8` and bold font to make them visually different from "normal" functions. - -

Before

- -

After

- -[Escape][52] sequences are colored with `nord13`. - -

Before

- -

After

- -Import statements and paths are correctly colored with keyword and type colors. - -

Before

- -

After

- -#### Plugin Support - -**Haskell Syntax Plugin Support** — #104 ⇄ #150 (⊶ b0ffc6b5) by [@vabatta][47] -↠ Added support for Haskell syntax through the [neovimhaskell/haskell-vim][48] plugin. -This includes better coloring for types/classes using `nord7` instead of highlighting them like keywords (`nord9`) and pre-processor and pragma elements are now colorized correctly with `nord10`. - -#### Pragma - -

Before

- -

After

- -#### Pre-Processor - -

Before

- -

After

- -#### Types/Classes - -

Before

- -

After

- -### UI - -**Theme config for bolder vertical split line** — #132 ⇄ #153 (⊶ 9059d7d8) by [@huyvohcmc][42] -↠ Previously the [`VertSplit`][57] (`:help VertSplit`) key used `nord1` as background color by default making the line appear to be very lumpy. This has now been changed to use `nord0` as background instead to visually merge with the background so only the separator characters are a visual indicator for the split line which makes it look more lightweight and declutters the overall appearance. - -

With base editor background (default)

- -

With enabled bold nord1 background

- -To allow user who liked the previous implementation to keep the style a new `nord_bold_vertical_split_line` theme config was also added that can be assigned to `1` to achieve the legacy design. - -```viml -let g:nord_bold_vertical_split_line = 1 -``` - -The README includes information and hints how to change the separator character by customizing Vim's [`fillchars`][56] (`:help fillchars`) variable. - -#### Plugin Support - -**`:terminal` status line in airline** — #134 (⊶ be815f09) by [@meck][44] -↠ Added support for Vim's new `:terminal` mode in [airline][4]. - -

Before: No :terminal support (before)

- -

After: Support for airline's new _term theme keys

- -## Improvements - -### Syntax - -**Better generator expressions in CMake** — #137 ⇄ #151 (⊶ d2774cbb) by [@markand][43] -↠ [CMake generator expressions][40] are now highlighted using `nord10` as foreground instead of `nord13` as background and `nord0` as foreground. - -

Before

- -

After

- -### UI - -#### Plugin Support - -**airline warnings and errors** — #130 (⊶ e85dbe75) by [@axelitus][41] -↠ Added support for error and warning elements of [airline][4]. - -

Before

- -

After

- -**ALE error and warning support** — #135 (⊶ 9d82b7a1) by [@meck][44] -↠ Added support highlighting and underlines for [ALE][10] errors and warnings to also align the style with gutter signs. - -# 0.10.0 - -![Release Date: 2019-03-21](https://img.shields.io/badge/Release_Date-2019--03--21-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.10.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/15) [![Milestone](https://img.shields.io/badge/Milestone-0.10.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/12) - -## Features - -**Vim 8 terminal highlighting** — #125 ⇄ #126 (⊶ 83f8c260) by [@cg433n][38] -↠ Added support for the Vim's built-in terminal (`:terminal`) that comes with version 8.0.0 and higher. - -## Improvements - -**Comment Color Brightness** — #145 ⇄ #146 (⊶ 9e0249ca) -↠ Implemented the increase of the comment color (`nord3`) brightness by 10% from a lightness level of ~35% to ~45%. - -➜ **Please see [nordtheme/nord#94][36] for all details about this design change decision**! - -⚠ **NOTE**: This change also **deprecates the [comment contrast][11] configuration** that will be removed in Nord Vim version 1.0.0! -The default comment color has been adjusted so the configuration is not required anymore for users to increase the brightness on their own. -To notify users about this change a deprecation warning will be shown when the `g:nord_comment_brightness` configuration variable has been set and initialized through the user's configuration. - -**Improved compatibility of airline with tmuxline.vim plugin** — #117 ⇄ #128 (⊶ 3150628f) -↠ The [Nord airline.vim][4] UI plugin theme now includes better support for the [tmuxline.vim][37] plugin. Previously text shown in the main segment of the _tmuxline_, generated via the `:Tmuxline airline` command, caused a `bad colour: NONE` error or has been colorized using `nord0` which resulted in unreadable text due to a `nord3` background. - -This has been fixed by using `nord5` as foreground color. …[#11][34] was used as implementation reference since it fixed the same incompatibility for the [lightline.vim][35] plugin. - -![](https://user-images.githubusercontent.com/7836623/41835439-e3f2388c-7857-11e8-91e0-a0440b7ecf35.png) - -# 0.9.0 - -![Release Date: 2018-06-24](https://img.shields.io/badge/Release_Date-2018--06--24-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.9.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/13) [![Milestone](https://img.shields.io/badge/Milestone-0.9.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/11) - -## Features - -### Syntax - -#### Plugin Support - -❯ Added support for the [YAML][33] plugin [stephpy/vim-yaml][29] which improves the highlighting for keys to match the JSON syntax style. (PR #120, @mdzhang, b1478b07) - -

Before

- -

After

- -❯ Added basic syntax highlighting support for [vimwiki][30]. (PR #98 in PR #114, @smesko85, 9e7addbc) - -

- -### UI - -❯ Added a new [configuration to allow users to enable background for the line number of the current line][31]. It can be enabled by setting the `g:nord_cursor_line_number_background` variable to `1`. (PR #100, @andrepolischuk, 035e36de) - -```vim -let g:nord_cursor_line_number_background = 1 -``` - -

No background (default)

- -

Enabled background

- -❯ Added a new [configuration to allow users to globally toggle underlines][32] for cases where the terminal emulator might not be capable to handle underlines in terminal mode. It can be enabled by setting the `g:nord_underline` variable to `1`. (#106 in PR #127 (supersedes #109), @dylnmc @markand , 01cfd1be) - -

Underlined Text

- -❯ Added support for the status line of the `:terminal` window mode for Vim or Neovim. (PR #108 (supersedes #103), @dylnmc, 922504fb) - -

Before

- -

After

- -#### Plugin Support - -❯ Added highlighting support for the navigation marks in the sign column of the [kshenoy/vim-signature][28] plugin. (PR #122, @kooparse, 1df39453) - -

- -## Improvements - -### Syntax - -❯ Added highlighting for the JavaScript keyword `this`. (PR #119, @kristijanhusak, 4fe2d43e) - -

Before

- -

After

- -### UI - -❯ The cursor is now correctly shown and visible when leaving a terminal window from within Vim or Neovim by adding the `TermCursorNC` group. (PR #101, @meck, 2fac9fa0) - -❯ The „inline marker“ in unified _diffs_ is now colorized differently than the background of the changed line to make the changes better and faster recognizable. This applies for both the [uniform _diff_ background mode][12] and normal _diff_ mode. (PR #121, @ironhouzi, 65c559ee) - -

Before/After comparison of default diff mode


- -

Before/After comparison of uniform diff mode


- -## Bug Fixes - -### UI - -❯ The current line number's color is now highlighted correctly in terminal mode. Previously it was only highlighted when running in GUI mode or when `termguicolors` has been set. (#116 in 50ec737b (PR #100), @huyvohcmc @dylnmc) - -

Before

- -

After

- -# 0.8.0 - -![Release Date: 2018-01-05](https://img.shields.io/badge/Release_Date-2018--01--05-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.8.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/11) [![Milestone](https://img.shields.io/badge/Milestone-0.8.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/10) - -## Features - -### Plugin Support - -#### UI - -❯ Added support for [vim-signify][27]. (PR #81, @dabio, edcdd0e4) - -

- -## Improvements - -### UI - -❯ The color of links in `:help` was the same as normal text making it impossible to to distinguish between both. This has been improved by using `nord8` including the help bars when enabled with `:set conceallevel=2`. (#85 in PR #93, @delphinus, e9974fe6) - -

Before

- -

After

- -### Documentation - -❯ The lightline screenshots in the documentation have been made using the [lightline's advanced configurations][26]. This confused users when the lighline does not equal the one seen on the screenshot due to the default lightline configuration. This has now been clarified including a additional screenshot showing the appearance of the lightline when using the default configuration. (#74 in PR #94, @lokesh-krishna, 3c14c961) - -

- -## Bug Fixes - -❯ The background color for matching parens is now assigned to the right color `nord3` instead of `nord0` in GUI mode. (#95 in PR #96, @dylnmc, 8bc1be01) - -

Before

- -

After

- -# 0.7.0 - -![Release Date: 2017-12-30](https://img.shields.io/badge/Release_Date-2017--12--30-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.7.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/10) [![Milestone](https://img.shields.io/badge/Milestone-0.7.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/9) - -## Features - -❯ Added a new [configuration to allow users to increase the comment brightness][11] by 1 - 20 percent. It can be enabled by setting the `g:nord_comment_brightness variable` to a number between `1` and `20`. (#48 in PR #56, @drzel, e18ab4e8) - -**This option should only be enabled if the terminal supports 24bit true color (16 million colors) and requires the `termguicolors` option to be set is in `~/.vimrc` or via `:set termguicolors`!** - -

Default and 15% increased

- -

Default and 12% increased

- -To adhere to the Nord design guidelines this option uses `nord3` by default. - -This is a reference table if users like to use the same increased contrast values as provided by the [Nord Atom Syntax accessibility custom comment contrast theme setting][19] which are calculated using the LESSCSS [`lighten`][18] function. - -| Increased by | Calculated value | -| ------------ | ---------------- | -| 1% | `#4e586d` | -| 2% | `#505b70` | -| 3% | `#525d73` | -| 4% | `#556076` | -| 5% | `#576279` | -| 6% | `#59647c` | -| 7% | `#5b677f` | -| 8% | `#5d6982` | -| 9% | `#5f6c85` | -| 10% | `#616e88` | -| 11% | `#63718b` | -| 12% | `#66738e` | -| 13% | `#687591` | -| 14% | `#6a7894` | -| 15% | `#6d7a96` | -| 16% | `#6f7d98` | -| 17% | `#72809a` | -| 18% | `#75829c` | -| 19% | `#78859e` | -| 20% | `#7b88a1` | - -More information about true color and the support in various terminals can be found in [this gist][16]. - -❯ Added a new [configuration for a uniform _diff_ background color][12]. (#60 in PR #61 #62 #65, @dylnmc @aidanharris @berkin, 958322d0) - -![](https://user-images.githubusercontent.com/7836623/30969227-0dbcb982-a462-11e7-86a8-a69e91ff7bc0.png) - -Setting `g:nord_uniform_diff_background` to `1` enables the uniform diff background using `nord1`: - -![](https://user-images.githubusercontent.com/7836623/30969233-12a37d64-a462-11e7-8253-3c083eba5174.png) - -❯ Added a new [configuration to use uniform activate- and inactive status line backgrounds][24]. (#37 in PR #58, @dylnmc @DenniJensen, 93056802) - -

Default status lines

- -

Uniform status lines

- -❯ Added a new [configuration to explicitly enable italic text formatting][23]. (#88 in PR #89, @lokesh-krishna @dylnmc, dbfc55ff) - -**Please note that this option should only be enabled if the used terminal supports italics!** - -

With enabled option for italic comments

- -

Markdown syntax styling

- -❯ Added support for NeoVim UI terminal colors. (#63, @meck, af01167b) - -### Plugin Support - -#### Syntax - -❯ Added support for the [plasticboy/vim-markdown][21] syntax plugin to match the style of the built-in markdown syntax styles. (#45 in PR #57, @VVVFO, 09921268) - -![](https://user-images.githubusercontent.com/7836623/30773618-63ffde56-a074-11e7-9452-121283afcb44.png) - -![](https://user-images.githubusercontent.com/7836623/30773619-657ec968-a074-11e7-80ba-c1cf3a3c19b0.png) - -#### UI - -❯ Added support for the `PlugClean` command of the [junegunn/vim-plug][20] plugin which used the `Ignore` group by default for deleted directory listings resulting in unreadable text when `cursorline` has been set. (#43 in PR #59, @dylnmc, e532b5d6) - -

Before

- -

After

- -❯ Added basic support for [tpope/vim-fugitive][22]. (#76 in PR #77, @anhari, fa09c3b1) - -Filenames are now highlighted when using the `:Gstatus` command. - -![](https://user-images.githubusercontent.com/6628875/33404056-def50276-d530-11e7-8e76-5733f58f7139.gif) - -## Improvements - -### Syntax - -❯ Added highlight support for legacy _diff_ groups `diffAdded` and `diffRemoved` of the `git.vim` and `diff.vim` syntx definitions. (#66 in PR #67, @brandoniffert, 99e59e67) - -These groups are not in the [official vim documentation][25] but are still used by the syntax for example when run with `git commit --verbose`. - -

Before

- -

After

- -❯ Added highlighting support for Markdown _italic_ and **bold** delimiter. (#90 in PR #92, 97c8aa24) - -

Before

- -

After

- -❯ Added missing Markdown _italic_ and **bold** groups. (#84 in PR #91, @lokesh-krishna @dylnmc, 63b46125) - -❯ Improved the highlighting for matching parens. (#75 and #71 in PR #78, @vincentzhezhang @cryptomaniac512 @dylnmc, 8eb7b2a6) - -The background color intensity under the cursor was too bright and the cursor no more visible causing the user to be distracted to focus on the matching bracket instead of the bracket at the cursor position. - -To optimally improve the highlighting `nord3` will now be used as background color for the matching element which doesn't conflict with the `cursorline` color and also stands out in order to see the matching element. - -

Before

- -

After with cursorline option

- -

After without cursorline option

- -

- -## Bug Fixes - -❯ _TODO_ keywords are now highlighted correctly for Neovim and gVim (#52 in PR #53, @dylnmc, 063620f0) - -

Before

- -

After

- -❯ Fixed invisible inactive lightline bars (PR #73, @dylnmc, 788876b8) - -

Before

- -

After

- -❯ Fixed the `WildMenu` background color for current selection (tab completion) not being visible. (#64 in PR #80, @markand, 53fce0db) - -

Before

- -

After

- -## Tasks - -❯ Added the included [lightline theme to the official lightline repository][17]. (#68 in [itchyny/lightline#257][17], @lokesh-krishna, itchyny/lightline@e69081c1370a57647e05df21b60a4ef092c3ce91) - -### Documentation - -❯ Migrated to the MIT license to adapt to the migration of the main [Nord][3] project. Detailed information can be found in the [main task ticket][15]. (#69 in PR #70, fa55dc35) - -# 0.6.0 - -![Release Date: 2017-08-03](https://img.shields.io/badge/Release_Date-2017--08--03-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.6.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/9) [![Milestone](https://img.shields.io/badge/Milestone-0.6.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/8) - -## Features - -### Plugin Support - -#### UI - -❯ Added basic support for [CtrlP][14]. (PR #33, @syedelec) - -- Matched characters are using the keyword color instead of the normal text color to make matched characters visible -- Already opened buffers now take the normal text color instead of the comment color - -❯ Added basic support [ALE][10]. (PR #44, @meck) - -- Warning signs are colorized using a `nord13` foreground -- Error signs are colorized using a `nord11` foreground instead of a red background with a white foreground - -## Improvements - -### UI - -❯ The fold marker foreground has been adjusted to match the comment color instead of `nord1` which has been too dark causing them to be unreadable in bright environments. The background color has also been changed to `nord1` to differ from normal comments and the font style is now bold for better legibility. (#38 in PR #40, @dylnmc) - -![](https://user-images.githubusercontent.com/7836623/28256249-ad23fa02-6ac0-11e7-873d-584303677662.png) - -❯ The highlight text of a active substitute search result is now underlined in order to make it more recognizable. (#35 in PR #41, @KevinSjoberg) - -![](https://user-images.githubusercontent.com/7836623/28245896-ebd3abae-6a10-11e7-9e83-85b69cb62455.gif) - -#### Neovim - -❯ Addded support for the Neovim specific `:CheckHealth` status highlight groups. (#31 in PR #42, @syedelec, Thanks to @dylnmc) - -

Before
After

- -## Bug Fixes - -### UI - -❯ Fixed unreadable text color on pending search result highlights. (#32 in PR #39, @syedelec) - -

Before

After

- -# 0.5.0 - -![Release Date: 2017-04-17](https://img.shields.io/badge/Release_Date-2017--04--17-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.5.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/8) [![Milestone](https://img.shields.io/badge/Milestone-0.5.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/7) - -## Improvements - -### Language Support - -❯ Implemented optimized styles for Ruby (@hahuang65, #29, 085c1337) - -- Symbols (`rubySymbol`) now have a bold font style -- Block parameter list symbols (`rubyBlockParameterList`) are now colorized as keywords -- Local (variable) methods (`rubyLocalVariableOrMethod`) are now colorized as methods - -

- -## Bug Fixes - -### Documentation - -❯ Fixed a typo in the project description. (@svengreb, #28, b2134029) - -# 0.4.0 - -![Release Date: 2017-02-23](https://img.shields.io/badge/Release_Date-2017--02--23-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.4.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/7) [![Milestone](https://img.shields.io/badge/Milestone-0.4.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/6) - -## Features - -### Configurations - -❯ Added a configuration to enable [italic comments](https://github.com/nordtheme/vim#italic-comments). -To adhere to the Nord style guide this option is disabled by default. It can be enabled by setting the `g:nord_italic_comments` variable to `1`. - -```vim -let g:nord_italic_comments = 1 -``` - -(@kepbod, #13 (PR #16), dc6149f4) - -## Improvements - -### Plugin Support - -❯ The method/function signature live preview of the [`jedi-vim`](https://github.com/davidhalter/jedi-vim) plugin is now colorized correctly. (@mkalinski, #14, a5c3459a) - -

Before

After

- -### Language Support - -❯ Implemented optimized styles for the Python syntax group `pythonEscape`. (@mkalinski, #22, 360a76ea) -![ghi-22-scrot-pythonescape](https://cloud.githubusercontent.com/assets/7836623/22618370/ad74e7fc-eada-11e6-89f2-23b351e8aa2b.png) - -❯ Implemented optimized styles for the SQL syntax groups `sqlSpecial` which is now linked to the `sqlKeyword` group to colorize constants like `true`/`false` and `null` as keywords. (@mkalinski, #23, dcfb441e) - -### Documentation - -❯ Added the new terminal emulator port project [Nord Hyper](https://github.com/arcticicestudio/nord-hyper) -[![Nord Hyper](https://cdn.rawgit.com/nordtheme/nord/develop/src/assets/nord-hyper-banner.svg)](https://github.com/arcticicestudio/nord-hyper) - -# 0.3.0 - -![Release Date: 2017-01-24](https://img.shields.io/badge/Release_Date-2017--01--24-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.3.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/6) [![Milestone](https://img.shields.io/badge/Milestone-0.3.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/5) - -## Improvements - -### Plugin Support - -❯ The [Nord lightline.vim][2] UI plugin theme now includes better support for the [tmuxline.vim](https://github.com/edkolev/tmuxline.vim) plugin. Before this implementation text shown in the main segment of the tmuxline, generated via the `:Tmuxline lightline` command, has been colorized using `nord0` which resulted in unreadable text due to a `nord3` background. -This has been fixed by using `nord5` as foreground color. (@scottwillmoore, #11, 4ea37f7e) - -

Before

After

With unicode separators

Without specified configurations (tmuxline.vim autodetect)

- -## Bug Fixes - -### Documentation - -❯ Fixed a typo in the [README installation guide](https://github.com/nordtheme/vim#via-pluginruntimepath-manager) for Vundle. (@kepbod, #10, 29145bbb) - -❯ Fixed the banner of the [Nord iTerm2](https://github.com/arcticicestudio/nord-iterm2) port project showing the [Nord GNOME Terminal](https://github.com/arcticicestudio/nord-gnome-terminal) banner instead. (@shvetsovdm, #8 / [nord/#9](https://github.com/nordthenme/nord/issues/9), 7a447b40) - -# 0.2.0 - -![Release Date: 2017-01-02](https://img.shields.io/badge/Release_Date-2017--01--02-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.2.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/5) [![Milestone](https://img.shields.io/badge/Milestone-0.2.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/4) - -## Improvements - -❯ Characters under block cursors are now colored darker (`nord0`) while the block cursor is visible to achieve a optimal contrast and to avoid unreadability due to the same cursor- and foreground color (`nord4`). (@svengreb / @scottwillmoore, #9, 30e1f7e3) - -

Before

After

- -❯ The background color of visual mode selections is now colored in `nord1` instead of `nord3` to avoid a color collision with comments which has led to unreadable text.(@scottwillmoore, #7, bdb209f5) - -

Before

After

- -# 0.1.2 - -_2017-01-01_ - -![Release Date: 2017-01-01](https://img.shields.io/badge/Release_Date-2017--01--01-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.1.2-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/4) [![Milestone](https://img.shields.io/badge/Milestone-0.1.2-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/3) - -## Bug Fixes - -❯ Fixed a bug where the `g:colors_name` variable has been unset caused by the `syntax reset` call due to the execution -order. (@shuei72, #5, f8ffce24) - -# 0.1.1 - -![Release Date: 2016-12-26](https://img.shields.io/badge/Release_Date-2016--12--26-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.1.1-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/3) [![Milestone](https://img.shields.io/badge/Milestone-0.1.1-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/2) - -## Bug Fixes - -❯ Fixed wrong color variables (`*_term` to `*_gui`) for the `guisp` attribute of all `Spell*` highlighting groups which caused error logs while loading `vim`/`gvim`/MacVim. (@kamwitsta, #4, 4d642b9b) - -# 0.1.0 - -![Release Date: 2016-12-25](https://img.shields.io/badge/Release_Date-2016--12--25-88C0D0.svg?style=flat-square) [![Project Board](https://img.shields.io/badge/Project_Board-0.1.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/projects/2) [![Milestone](https://img.shields.io/badge/Milestone-0.1.0-88C0D0.svg?style=flat-square)](https://github.com/nordtheme/vim/milestone/1) - -## Features - -Detailed information about features, supported plugins/languages and install instructions can be found in the [README](https://github.com/nordtheme/vim/blob/main/readme.md#installation) and in the [project wiki](https://github.com/nordtheme/vim/wiki). - -❯ Implemented the main color theme file [`nord.vim`](https://github.com/nordtheme/vim/blob/main/colors/nord.vim). (@svengreb, #1, e2832b9) - -

- -❯ Implemented the [lightline](https://github.com/itchyny/lightline.vim) color scheme file [`nord.vim`](https://github.com/nordtheme/vim/blob/main/autoload/lightline/colorscheme/nord.vim). (@svengreb, #2, f9891ffe) - -

- -❯ Implemented the [airline](https://github.com/vim-airline/vim-airline) color theme file [`nord.vim`](https://github.com/nordtheme/vim/blob/main/autoload/airline/themes/nord.vim). (@svengreb, #3, e54464a7) - -

- -# Project Initialization - -![Release Date: 2016-12-25](https://img.shields.io/badge/Release_Date-2016--12--25-88C0D0.svg?style=flat-square) - - - - - - - -[1]: https://www.nordtheme.com -[2]: https://github.com/nordtheme/vim/blob/main/autoload/lightline/colorscheme/nord.vim -[3]: https://github.com/nordtheme/nord - - - -[4]: https://github.com/nordtheme/vim/blob/main/autoload/airline/themes/nord.vim -[5]: https://github.com/liuchengxu/vim-clap -[6]: https://github.com/neoclide/coc.nvim -[7]: https://neovim.io/doc/user/lsp.html -[8]: https://github.com/neovim/nvim-lspconfig -[9]: https://pandoc.org -[10]: https://github.com/w0rp/ale -[11]: https://github.com/nordtheme/vim#comment-contrast -[12]: https://github.com/nordtheme/vim#uniform-diff-background -[13]: https://github.com/vim-pandoc/vim-pandoc-syntax -[44]: https://github.com/meck - - - -[14]: https://github.com/ctrlpvim/ctrlp.vim - - - -[15]: https://github.com/nordtheme/nord/issues/55 -[16]: https://gist.github.com/XVilka/8346728 -[17]: https://github.com/itchyny/lightline.vim/pull/257 -[18]: http://lesscss.org/functions/#color-operations-lighten -[19]: https://github.com/arcticicestudio/nord-atom-syntax/pull/47 -[20]: https://github.com/junegunn/vim-plug -[21]: https://github.com/plasticboy/vim-markdown -[22]: https://github.com/tpope/vim-fugitive -[23]: https://github.com/nordtheme/vim#italic-support -[24]: https://github.com/nordtheme/vim#uniform-status-lines -[25]: http://vimdoc.sourceforge.net/htmldoc/syntax.html#hl-DiffAdd - - - -[26]: https://github.com/itchyny/lightline.vim#advanced-configuration -[27]: https://github.com/mhinz/vim-signify - - - -[28]: https://github.com/kshenoy/vim-signature -[29]: https://github.com/stephpy/vim-yaml -[30]: https://github.com/vimwiki/vimwiki -[31]: https://github.com/nordtheme/vim#line-number-background -[32]: https://github.com/nordtheme/vim#underline-support -[33]: http://yaml.org - - - -[34]: https://github.com/nordtheme/vim/issues/11 -[35]: https://github.com/itchyny/lightline.vim -[36]: https://github.com/nordtheme/nord/issues/94 -[37]: https://github.com/edkolev/tmuxline.vim -[38]: https://github.com/cg433n - - - -[39]: https://asciidoctor.org -[40]: https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html -[41]: https://github.com/axelitus -[42]: https://github.com/huyvohcmc -[43]: https://github.com/markand -[45]: https://github.com/terminalwitchcraft -[46]: https://github.com/tidux -[47]: https://github.com/vabatta -[48]: https://github.com/neovimhaskell/haskell-vim -[49]: https://doc.rust-lang.org/reference/attributes.html -[50]: https://doc.rust-lang.org/edition-guide/rust-2018/macros/custom-derive.html -[51]: https://doc.rust-lang.org/1.1.0/book/enums.html -[52]: https://doc.rust-lang.org/reference/tokens.html#ascii-escapes -[53]: https://doc.rust-lang.org/1.8.0/book/macros.html -[54]: https://doc.rust-lang.org/book/ch10-02-traits.html -[55]: https://www.rust-lang.org -[56]: http://vimdoc.sourceforge.net/htmldoc/options.html#'fillchars' -[57]: http://vimdoc.sourceforge.net/htmldoc/syntax.html#hl-VertSplit - - - -[58]: https://github.com/aborzunov -[59]: https://github.com/tobydeh -[60]: https://github.com/arcticicestudio/nord-docs/issues/143 -[61]: https://www.nordtheme.com/ports/vim/configuration#bold-styles - - - -[62]: https://github.com/nordtheme/vim/pull/58 -[63]: https://github.com/nordtheme/vim/releases/tag/v0.7.0 -[64]: https://github.com/alexandremjacques -[65]: https://github.com/hennessey -[66]: https://github.com/jmurinello -[67]: https://github.com/nixtrace -[68]: https://github.com/vasilescur -[69]: https://github.com/mhinz/vim-startify -[70]: https://github.com/vim/vim/compare/d9b0d83b13d2691e4544709abd87eac004715175...017ba07fa2cdc578245618717229444fd50c470d#diff-80fffb3e9c20e93e5b2328a9a20e19c -[71]: https://github.com/vim/vim/releases/tag/v8.1.2029 -[72]: https://github.com/vim/vim/pull/4933 -[73]: https://www.nordtheme.com/docs/ports/vim/configuration#uniform-status-lines - - - -[74]: https://github.com/alexanderjeurissen -[75]: https://github.com/xulongwu4 -[76]: https://github.com/neovim/nvim-lsp -[77]: https://github.com/Yggdroot/LeaderF - - - -[78]: https://github.com/iamdidev -[79]: https://github.com/ikalnytskyi -[80]: https://github.com/HerringtonDarkholme/yats.vim -[81]: https://www.typescriptlang.org/docs/handbook/decorators.html -[82]: https://www.typescriptlang.org/docs/handbook/jsx.html -[83]: https://www.typescriptlang.org - - - -[84]: https://github.com/nordtheme/vim/pull/218 -[85]: https://github.com/nordtheme/vim/blob/main/colors/nord.vim -[86]: https://crispgm.com/page/neovim-is-overpowering.html -[87]: https://www.nordtheme.com/docs/colors-and-palettes -[88]: https://github.com/nordtheme/vim/compare/v0.15.0...v0.16.0 -[89]: https://github.com/clason -[90]: https://github.com/crispgm -[91]: https://github.com/ojroques -[92]: https://www.latex-project.org -[93]: https://github.com/nathanaelkane/vim-indent-guides -[94]: https://github.com/nathanaelkane/vim-indent-guides#setting-custom-indent-colors -[95]: https://github.com/neovim/neovim/milestone/19 -[96]: https://github.com/neovim/neovim#12655 -[97]: https://www.overleaf.com/learn/latex/mathematical_expressions -[98]: https://github.com/StanAngeloff/php.vim -[99]: https://vimhelp.org/syntax.txt.html#ft%2dphp%2dsyntax -[100]: https://en.wikipedia.org/wiki/Greek_alphabet - - - -[101]: https://github.com/nordtheme/vim/compare/v0.16.0...v0.17.0 -[102]: https://github.com/neovim/neovim/releases/tag/v0.5.0 -[103]: https://github.com/nvim-treesitter/nvim-treesitter/blob/90f15d9/plugin/nvim-treesitter.vim -[104]: https://github.com/nvim-treesitter/nvim-treesitter -[105]: https://github.com/tree-sitter/tree-sitter - - - -[106]: https://github.com/nordtheme/vim/compare/v0.17.0...v0.18.0 -[107]: https://neovim.io/doc/user/lsp.html#lsp-highlight-codelens -[108]: https://github.com/nvim-treesitter/nvim-treesitter/blob/fb5d6e04/doc/nvim-treesitter.txt#L493-L495 -[109]: https://github.com/nvim-treesitter/nvim-treesitter/issues/1016#issuecomment-797049591 -[110]: https://github.com/nvim-treesitter/nvim-treesitter/issues/78#issuecomment-647140700 - - - -[111]: https://github.com/nordtheme/vim/compare/v0.18.0...v0.19.0 -[112]: https://github.com/neovim/neovim/releases/tag/v0.6.0 -[113]: https://github.com/neovim/neovim/commit/a5bbb932f9094098bd656d3f6be3c58344576709#diff-51fab2b766d0a3b606462e95de492190df173b7296147912307cdad636cd492aR77 -[114]: https://github.com/neovim/neovim/blob/f92a2457c2e7ad14d9a5a907ef4213fa770b6d95/runtime/doc/lsp.txt#L423 -[115]: https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight -[116]: https://github.com/vim/vim/blob/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471/runtime/syntax/c.vim#L313-L375 -[117]: https://github.com/neovim/neovim/blob/70db972e5fbcab39946ad8ac05472a693cf65b68/runtime/doc/lsp.txt#L456-L459 -[118]: https://vimhelp.org/builtin.txt.html#builtin.txt#get%28%29 -[119]: https://vimhelp.org/builtin.txt.html#builtin.txt#execute%28%29 diff --git a/vim/.config/vim/plugged/nord-vim/colors/nord.vim b/vim/.config/vim/plugged/nord-vim/colors/nord.vim deleted file mode 100755 index b50a004..0000000 --- a/vim/.config/vim/plugged/nord-vim/colors/nord.vim +++ /dev/null @@ -1,838 +0,0 @@ -" Copyright (c) 2016-present Sven Greb -" This source code is licensed under the MIT license found in the license file. - -if version > 580 - hi clear - if exists("syntax_on") - syntax reset - endif -endif - -let g:colors_name = "nord" -let s:nord_vim_version="0.19.0" -set background=dark - -let s:nord0_gui = "#2E3440" -let s:nord1_gui = "#3B4252" -let s:nord2_gui = "#434C5E" -let s:nord3_gui = "#4C566A" -let s:nord3_gui_bright = "#616E88" -let s:nord4_gui = "#D8DEE9" -let s:nord5_gui = "#E5E9F0" -let s:nord6_gui = "#ECEFF4" -let s:nord7_gui = "#8FBCBB" -let s:nord8_gui = "#88C0D0" -let s:nord9_gui = "#81A1C1" -let s:nord10_gui = "#5E81AC" -let s:nord11_gui = "#BF616A" -let s:nord12_gui = "#D08770" -let s:nord13_gui = "#EBCB8B" -let s:nord14_gui = "#A3BE8C" -let s:nord15_gui = "#B48EAD" - -let s:nord1_term = "0" -let s:nord3_term = "8" -let s:nord5_term = "7" -let s:nord6_term = "15" -let s:nord7_term = "14" -let s:nord8_term = "6" -let s:nord9_term = "4" -let s:nord10_term = "12" -let s:nord11_term = "1" -let s:nord12_term = "11" -let s:nord13_term = "3" -let s:nord14_term = "2" -let s:nord15_term = "5" - -let s:nord3_gui_brightened = [ - \ s:nord3_gui, - \ "#4e586d", - \ "#505b70", - \ "#525d73", - \ "#556076", - \ "#576279", - \ "#59647c", - \ "#5b677f", - \ "#5d6982", - \ "#5f6c85", - \ "#616e88", - \ "#63718b", - \ "#66738e", - \ "#687591", - \ "#6a7894", - \ "#6d7a96", - \ "#6f7d98", - \ "#72809a", - \ "#75829c", - \ "#78859e", - \ "#7b88a1", -\ ] - -let g:nord_bold = get(g:, "nord_bold", 1) -let s:bold = (g:nord_bold == 0) ? "" : "bold," - -let g:nord_underline = get(g:, "nord_underline", 1) -let s:underline = (g:nord_underline == 0) ? "NONE," : "underline," - -let g:nord_italic = get(g:, "nord_italic", (has("gui_running") || $TERM_ITALICS == "true")) -let s:italic = (g:nord_italic == 0) ? "" : "italic," - -let g:nord_italic_comments = get(g:, "nord_italic_comments", 0) -let s:italicize_comments = (g:nord_italic_comments == 0) ? "" : get(s:, "italic") - -let g:nord_uniform_status_lines = get(g:, "nord_uniform_status_lines", 0) - -let g:nord_bold_vertical_split_line = get(g:, "nord_bold_vertical_split_line", 0) -if exists("g:nord_comment_brightness") - echohl WarningMsg - echomsg 'nord: warning: Variable g:nord_comment_brightness has been deprecated and will be removed in version 1.0.0!' . - \' The comment color brightness has been increased by 10% by default.' . - \' Please see https://github.com/nordtheme/vim/issues/145 for more details.' - echohl None - let g:nord_comment_brightness = 10 -endif -let g:nord_cursor_line_number_background = get(g:, "nord_cursor_line_number_background", 0) -let g:nord_uniform_diff_background = get(g:, "nord_uniform_diff_background", 0) - -function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) - let cmd = "" - if a:guifg != "" - let cmd = cmd . " guifg=" . a:guifg - endif - if a:guibg != "" - let cmd = cmd . " guibg=" . a:guibg - endif - if a:ctermfg != "" - let cmd = cmd . " ctermfg=" . a:ctermfg - endif - if a:ctermbg != "" - let cmd = cmd . " ctermbg=" . a:ctermbg - endif - if a:attr != "" - let cmd = cmd . " gui=" . a:attr . " cterm=" . substitute(a:attr, "undercurl", s:underline, "") - endif - if a:guisp != "" - let cmd = cmd . " guisp=" . a:guisp - endif - if cmd != "" - exec "hi " . a:group . cmd - endif -endfunction - -"+---------------+ -"+ UI Components + -"+---------------+ -"+--- Attributes ---+ -call s:hi("Bold", "", "", "", "", s:bold, "") -call s:hi("Italic", "", "", "", "", s:italic, "") -call s:hi("Underline", "", "", "", "", s:underline, "") - -"+--- Editor ---+ -call s:hi("ColorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") -call s:hi("Cursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") -call s:hi("CursorLine", "", s:nord1_gui, "NONE", s:nord1_term, "NONE", "") -call s:hi("Error", s:nord4_gui, s:nord11_gui, "", s:nord11_term, "", "") -call s:hi("iCursor", s:nord0_gui, s:nord4_gui, "", "NONE", "", "") -call s:hi("LineNr", s:nord3_gui, "NONE", s:nord3_term, "NONE", "", "") -call s:hi("MatchParen", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "") -call s:hi("NonText", s:nord2_gui, "", s:nord3_term, "", "", "") -call s:hi("Normal", s:nord4_gui, s:nord0_gui, "NONE", "NONE", "", "") -call s:hi("Pmenu", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "NONE", "") -call s:hi("PmenuSbar", s:nord4_gui, s:nord2_gui, "NONE", s:nord1_term, "", "") -call s:hi("PmenuSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "") -call s:hi("PmenuThumb", s:nord8_gui, s:nord3_gui, "NONE", s:nord3_term, "", "") -call s:hi("SpecialKey", s:nord3_gui, "", s:nord3_term, "", "", "") -call s:hi("SpellBad", s:nord11_gui, s:nord0_gui, s:nord11_term, "NONE", "undercurl", s:nord11_gui) -call s:hi("SpellCap", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "undercurl", s:nord13_gui) -call s:hi("SpellLocal", s:nord5_gui, s:nord0_gui, s:nord5_term, "NONE", "undercurl", s:nord5_gui) -call s:hi("SpellRare", s:nord6_gui, s:nord0_gui, s:nord6_term, "NONE", "undercurl", s:nord6_gui) -call s:hi("Visual", "", s:nord2_gui, "", s:nord1_term, "", "") -call s:hi("VisualNOS", "", s:nord2_gui, "", s:nord1_term, "", "") - -"+- Vim 8 Terminal Colors -+ -if has('terminal') - let g:terminal_ansi_colors = [s:nord1_gui, s:nord11_gui, s:nord14_gui, s:nord13_gui, s:nord9_gui, s:nord15_gui, s:nord8_gui, s:nord5_gui, s:nord3_gui, s:nord11_gui, s:nord14_gui, s:nord13_gui, s:nord9_gui, s:nord15_gui, s:nord7_gui, s:nord6_gui] -endif - -if has('nvim') - "+- Neovim Terminal Colors -+ - let g:terminal_color_0 = s:nord1_gui - let g:terminal_color_1 = s:nord11_gui - let g:terminal_color_2 = s:nord14_gui - let g:terminal_color_3 = s:nord13_gui - let g:terminal_color_4 = s:nord9_gui - let g:terminal_color_5 = s:nord15_gui - let g:terminal_color_6 = s:nord8_gui - let g:terminal_color_7 = s:nord5_gui - let g:terminal_color_8 = s:nord3_gui - let g:terminal_color_9 = s:nord11_gui - let g:terminal_color_10 = s:nord14_gui - let g:terminal_color_11 = s:nord13_gui - let g:terminal_color_12 = s:nord9_gui - let g:terminal_color_13 = s:nord15_gui - let g:terminal_color_14 = s:nord7_gui - let g:terminal_color_15 = s:nord6_gui - - "+- Neovim Support -+ - call s:hi("healthError", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") - call s:hi("healthSuccess", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") - call s:hi("healthWarning", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") - call s:hi("TermCursorNC", "", s:nord1_gui, "", s:nord1_term, "", "") - - "+- Neovim Diagnostics API -+ - call s:hi("DiagnosticWarn", s:nord13_gui, "", s:nord13_term, "", "", "") - call s:hi("DiagnosticError" , s:nord11_gui, "", s:nord11_term, "", "", "") - call s:hi("DiagnosticInfo" , s:nord8_gui, "", s:nord8_term, "", "", "") - call s:hi("DiagnosticHint" , s:nord10_gui, "", s:nord10_term, "", "", "") - call s:hi("DiagnosticUnderlineWarn" , s:nord13_gui, "", s:nord13_term, "", "undercurl", "") - call s:hi("DiagnosticUnderlineError" , s:nord11_gui, "", s:nord11_term, "", "undercurl", "") - call s:hi("DiagnosticUnderlineInfo" , s:nord8_gui, "", s:nord8_term, "", "undercurl", "") - call s:hi("DiagnosticUnderlineHint" , s:nord10_gui, "", s:nord10_term, "", "undercurl", "") - - "+- Neovim DocumentHighlight -+ - call s:hi("LspReferenceText", "", s:nord3_gui, "", s:nord3_term, "", "") - call s:hi("LspReferenceRead", "", s:nord3_gui, "", s:nord3_term, "", "") - call s:hi("LspReferenceWrite", "", s:nord3_gui, "", s:nord3_term, "", "") - - "+- Neovim LspSignatureHelp -+ - call s:hi("LspSignatureActiveParameter", s:nord8_gui, "", s:nord8_term, "", s:underline, "") -endif - -"+--- Gutter ---+ -call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") -if g:nord_cursor_line_number_background == 0 - call s:hi("CursorLineNr", s:nord4_gui, "", "NONE", "", "NONE", "") -else - call s:hi("CursorLineNr", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") -endif -call s:hi("Folded", s:nord3_gui, s:nord1_gui, s:nord3_term, s:nord1_term, s:bold, "") -call s:hi("FoldColumn", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "") -call s:hi("SignColumn", s:nord1_gui, s:nord0_gui, s:nord1_term, "NONE", "", "") - -"+--- Navigation ---+ -call s:hi("Directory", s:nord8_gui, "", s:nord8_term, "NONE", "", "") - -"+--- Prompt/Status ---+ -call s:hi("EndOfBuffer", s:nord1_gui, "", s:nord1_term, "NONE", "", "") -call s:hi("ErrorMsg", s:nord4_gui, s:nord11_gui, "NONE", s:nord11_term, "", "") -call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "") -call s:hi("MoreMsg", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "") -if g:nord_uniform_status_lines == 0 - call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") - call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") - call s:hi("StatusLineTerm", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") - call s:hi("StatusLineTermNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") -else - call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") - call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "") - call s:hi("StatusLineTerm", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") - call s:hi("StatusLineTermNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "") -endif -call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "") -call s:hi("WildMenu", s:nord8_gui, s:nord1_gui, s:nord8_term, s:nord1_term, "", "") - -"+--- Search ---+ -call s:hi("IncSearch", s:nord6_gui, s:nord10_gui, s:nord6_term, s:nord10_term, s:underline, "") -call s:hi("Search", s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term, "NONE", "") - -"+--- Tabs ---+ -call s:hi("TabLine", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") -call s:hi("TabLineFill", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "") -call s:hi("TabLineSel", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "") - -"+--- Window ---+ -call s:hi("Title", s:nord4_gui, "", "NONE", "", "NONE", "") - -if g:nord_bold_vertical_split_line == 0 - call s:hi("VertSplit", s:nord2_gui, s:nord0_gui, s:nord3_term, "NONE", "NONE", "") -else - call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NONE", "") -endif - -"+----------------------+ -"+ Language Base Groups + -"+----------------------+ -call s:hi("Boolean", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Character", s:nord14_gui, "", s:nord14_term, "", "", "") -call s:hi("Comment", s:nord3_gui_bright, "", s:nord3_term, "", s:italicize_comments, "") -call s:hi("Conceal", "", "NONE", "", "NONE", "", "") -call s:hi("Conditional", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Constant", s:nord4_gui, "", "NONE", "", "", "") -call s:hi("Decorator", s:nord12_gui, "", s:nord12_term, "", "", "") -call s:hi("Define", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Delimiter", s:nord6_gui, "", s:nord6_term, "", "", "") -call s:hi("Exception", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Float", s:nord15_gui, "", s:nord15_term, "", "", "") -call s:hi("Function", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("Identifier", s:nord4_gui, "", "NONE", "", "NONE", "") -call s:hi("Include", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Keyword", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Label", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Number", s:nord15_gui, "", s:nord15_term, "", "", "") -call s:hi("Operator", s:nord9_gui, "", s:nord9_term, "", "NONE", "") -call s:hi("PreProc", s:nord9_gui, "", s:nord9_term, "", "NONE", "") -call s:hi("Repeat", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Special", s:nord4_gui, "", "NONE", "", "", "") -call s:hi("SpecialChar", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("SpecialComment", s:nord8_gui, "", s:nord8_term, "", s:italicize_comments, "") -call s:hi("Statement", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("StorageClass", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("String", s:nord14_gui, "", s:nord14_term, "", "", "") -call s:hi("Structure", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("Tag", s:nord4_gui, "", "", "", "", "") -call s:hi("Todo", s:nord13_gui, "NONE", s:nord13_term, "NONE", "", "") -call s:hi("Type", s:nord9_gui, "", s:nord9_term, "", "NONE", "") -call s:hi("Typedef", s:nord9_gui, "", s:nord9_term, "", "", "") -hi! link Annotation Decorator -hi! link Macro Define -hi! link PreCondit PreProc -hi! link Variable Identifier - -"+-----------+ -"+ Languages + -"+-----------+ -call s:hi("asciidocAttributeEntry", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("asciidocAttributeList", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("asciidocAttributeRef", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("asciidocHLabel", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("asciidocListingBlock", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("asciidocMacroAttributes", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("asciidocOneLineTitle", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("asciidocPassthroughBlock", s:nord9_gui, "", s:nord9_term, "", "", "") -call s:hi("asciidocQuotedMonospaced", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("asciidocTriplePlusPassthrough", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link asciidocAdmonition Keyword -hi! link asciidocAttributeRef markdownH1 -hi! link asciidocBackslash Keyword -hi! link asciidocMacro Keyword -hi! link asciidocQuotedBold Bold -hi! link asciidocQuotedEmphasized Italic -hi! link asciidocQuotedMonospaced2 asciidocQuotedMonospaced -hi! link asciidocQuotedUnconstrainedBold asciidocQuotedBold -hi! link asciidocQuotedUnconstrainedEmphasized asciidocQuotedEmphasized -hi! link asciidocURL markdownLinkText - -call s:hi("awkCharClass", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("awkPatterns", s:nord9_gui, "", s:nord9_term, "", s:bold, "") -hi! link awkArrayElement Identifier -hi! link awkBoolLogic Keyword -hi! link awkBrktRegExp SpecialChar -hi! link awkComma Delimiter -hi! link awkExpression Keyword -hi! link awkFieldVars Identifier -hi! link awkLineSkip Keyword -hi! link awkOperator Operator -hi! link awkRegExp SpecialChar -hi! link awkSearch Keyword -hi! link awkSemicolon Delimiter -hi! link awkSpecialCharacter SpecialChar -hi! link awkSpecialPrintf SpecialChar -hi! link awkVariables Identifier - -call s:hi("cIncluded", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link cOperator Operator -hi! link cPreCondit PreCondit -hi! link cConstant Type - -call s:hi("cmakeGeneratorExpression", s:nord10_gui, "", s:nord10_term, "", "", "") - -hi! link csPreCondit PreCondit -hi! link csType Type -hi! link csXmlTag SpecialComment - -call s:hi("cssAttributeSelector", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("cssDefinition", s:nord7_gui, "", s:nord7_term, "", "NONE", "") -call s:hi("cssIdentifier", s:nord7_gui, "", s:nord7_term, "", s:underline, "") -call s:hi("cssStringQ", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link cssAttr Keyword -hi! link cssBraces Delimiter -hi! link cssClassName cssDefinition -hi! link cssColor Number -hi! link cssProp cssDefinition -hi! link cssPseudoClass cssDefinition -hi! link cssPseudoClassId cssPseudoClass -hi! link cssVendor Keyword - -call s:hi("dosiniHeader", s:nord8_gui, "", s:nord8_term, "", "", "") -hi! link dosiniLabel Type - -call s:hi("dtBooleanKey", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("dtExecKey", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("dtLocaleKey", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("dtNumericKey", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("dtTypeKey", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link dtDelim Delimiter -hi! link dtLocaleValue Keyword -hi! link dtTypeValue Keyword - -if g:nord_uniform_diff_background == 0 - call s:hi("DiffAdd", s:nord14_gui, s:nord0_gui, s:nord14_term, "NONE", "inverse", "") - call s:hi("DiffChange", s:nord13_gui, s:nord0_gui, s:nord13_term, "NONE", "inverse", "") - call s:hi("DiffDelete", s:nord11_gui, s:nord0_gui, s:nord11_term, "NONE", "inverse", "") - call s:hi("DiffText", s:nord9_gui, s:nord0_gui, s:nord9_term, "NONE", "inverse", "") -else - call s:hi("DiffAdd", s:nord14_gui, s:nord1_gui, s:nord14_term, s:nord1_term, "", "") - call s:hi("DiffChange", s:nord13_gui, s:nord1_gui, s:nord13_term, s:nord1_term, "", "") - call s:hi("DiffDelete", s:nord11_gui, s:nord1_gui, s:nord11_term, s:nord1_term, "", "") - call s:hi("DiffText", s:nord9_gui, s:nord1_gui, s:nord9_term, s:nord1_term, "", "") -endif -" Legacy groups for official git.vim and diff.vim syntax -hi! link diffAdded DiffAdd -hi! link diffChanged DiffChange -hi! link diffRemoved DiffDelete - -call s:hi("gitconfigVariable", s:nord7_gui, "", s:nord7_term, "", "", "") - -call s:hi("goBuiltins", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link goConstants Keyword - -call s:hi("helpBar", s:nord3_gui, "", s:nord3_term, "", "", "") -call s:hi("helpHyperTextJump", s:nord8_gui, "", s:nord8_term, "", s:underline, "") - -call s:hi("htmlArg", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("htmlLink", s:nord4_gui, "", "", "", "NONE", "NONE") -hi! link htmlBold Bold -hi! link htmlEndTag htmlTag -hi! link htmlItalic Italic -hi! link htmlH1 markdownH1 -hi! link htmlH2 markdownH1 -hi! link htmlH3 markdownH1 -hi! link htmlH4 markdownH1 -hi! link htmlH5 markdownH1 -hi! link htmlH6 markdownH1 -hi! link htmlSpecialChar SpecialChar -hi! link htmlTag Keyword -hi! link htmlTagN htmlTag - -call s:hi("javaDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link javaCommentTitle Comment -hi! link javaScriptBraces Delimiter -hi! link javaScriptIdentifier Keyword -hi! link javaScriptNumber Number - -call s:hi("jsonKeyword", s:nord7_gui, "", s:nord7_term, "", "", "") - -call s:hi("lessClass", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link lessAmpersand Keyword -hi! link lessCssAttribute Delimiter -hi! link lessFunction Function -hi! link cssSelectorOp Keyword - -hi! link lispAtomBarSymbol SpecialChar -hi! link lispAtomList SpecialChar -hi! link lispAtomMark Keyword -hi! link lispBarSymbol SpecialChar -hi! link lispFunc Function - -hi! link luaFunc Function - -call s:hi("markdownBlockquote", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownCode", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownCodeDelimiter", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownFootnote", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownId", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownIdDeclaration", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("markdownH1", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("markdownLinkText", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("markdownUrl", s:nord4_gui, "", "NONE", "", "NONE", "") -hi! link markdownBold Bold -hi! link markdownBoldDelimiter Keyword -hi! link markdownFootnoteDefinition markdownFootnote -hi! link markdownH2 markdownH1 -hi! link markdownH3 markdownH1 -hi! link markdownH4 markdownH1 -hi! link markdownH5 markdownH1 -hi! link markdownH6 markdownH1 -hi! link markdownIdDelimiter Keyword -hi! link markdownItalic Italic -hi! link markdownItalicDelimiter Keyword -hi! link markdownLinkDelimiter Keyword -hi! link markdownLinkTextDelimiter Keyword -hi! link markdownListMarker Keyword -hi! link markdownRule Keyword -hi! link markdownHeadingDelimiter Keyword - -call s:hi("perlPackageDecl", s:nord7_gui, "", s:nord7_term, "", "", "") - -call s:hi("phpClasses", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("phpDocTags", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link phpDocCustomTags phpDocTags -hi! link phpMemberSelector Keyword - -call s:hi("podCmdText", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("podVerbatimLine", s:nord4_gui, "", "NONE", "", "", "") -hi! link podFormat Keyword - -hi! link pythonBuiltin Type -hi! link pythonEscape SpecialChar - -call s:hi("rubyConstant", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("rubySymbol", s:nord6_gui, "", s:nord6_term, "", s:bold, "") -hi! link rubyAttribute Identifier -hi! link rubyBlockParameterList Operator -hi! link rubyInterpolationDelimiter Keyword -hi! link rubyKeywordAsMethod Function -hi! link rubyLocalVariableOrMethod Function -hi! link rubyPseudoVariable Keyword -hi! link rubyRegexp SpecialChar - -call s:hi("rustAttribute", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("rustEnum", s:nord7_gui, "", s:nord7_term, "", s:bold, "") -call s:hi("rustMacro", s:nord8_gui, "", s:nord8_term, "", s:bold, "") -call s:hi("rustModPath", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("rustPanic", s:nord9_gui, "", s:nord9_term, "", s:bold, "") -call s:hi("rustTrait", s:nord7_gui, "", s:nord7_term, "", s:italic, "") -hi! link rustCommentLineDoc Comment -hi! link rustDerive rustAttribute -hi! link rustEnumVariant rustEnum -hi! link rustEscape SpecialChar -hi! link rustQuestionMark Keyword - -call s:hi("sassClass", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("sassId", s:nord7_gui, "", s:nord7_term, "", s:underline, "") -hi! link sassAmpersand Keyword -hi! link sassClassChar Delimiter -hi! link sassControl Keyword -hi! link sassControlLine Keyword -hi! link sassExtend Keyword -hi! link sassFor Keyword -hi! link sassFunctionDecl Keyword -hi! link sassFunctionName Function -hi! link sassidChar sassId -hi! link sassInclude SpecialChar -hi! link sassMixinName Function -hi! link sassMixing SpecialChar -hi! link sassReturn Keyword - -hi! link shCmdParenRegion Delimiter -hi! link shCmdSubRegion Delimiter -hi! link shDerefSimple Identifier -hi! link shDerefVar Identifier - -hi! link sqlKeyword Keyword -hi! link sqlSpecial Keyword - -call s:hi("vimAugroup", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("vimMapRhs", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("vimNotation", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link vimFunc Function -hi! link vimFunction Function -hi! link vimUserFunc Function - -call s:hi("xmlAttrib", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("xmlCdataStart", s:nord3_gui_bright, "", s:nord3_term, "", s:bold, "") -call s:hi("xmlNamespace", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link xmlAttribPunct Delimiter -hi! link xmlCdata Comment -hi! link xmlCdataCdata xmlCdataStart -hi! link xmlCdataEnd xmlCdataStart -hi! link xmlEndTag xmlTagName -hi! link xmlProcessingDelim Keyword -hi! link xmlTagName Keyword - -call s:hi("yamlBlockMappingKey", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link yamlBool Keyword -hi! link yamlDocumentStart Keyword - -"+----------------+ -"+ Plugin Support + -"+----------------+ -"+--- UI ---+ -" ALE -" > w0rp/ale -call s:hi("ALEWarningSign", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("ALEErrorSign" , s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("ALEWarning" , s:nord13_gui, "", s:nord13_term, "", "undercurl", "") -call s:hi("ALEError" , s:nord11_gui, "", s:nord11_term, "", "undercurl", "") - -" Coc -" > neoclide/coc.vim -call s:hi("CocWarningHighlight" , s:nord13_gui, "", s:nord13_term, "", "undercurl", "") -call s:hi("CocErrorHighlight" , s:nord11_gui, "", s:nord11_term, "", "undercurl", "") -call s:hi("CocWarningSign", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("CocErrorSign" , s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("CocInfoSign" , s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("CocHintSign" , s:nord10_gui, "", s:nord10_term, "", "", "") - -if has('nvim') - " Neovim LSP - " > neovim/nvim-lspconfig - call s:hi("LspCodeLens", s:nord3_gui_bright, "", s:nord3_term, "", "", "") - if has("nvim-0.5") - call s:hi("LspDiagnosticsDefaultWarning", s:nord13_gui, "", s:nord13_term, "", "", "") - call s:hi("LspDiagnosticsDefaultError" , s:nord11_gui, "", s:nord11_term, "", "", "") - call s:hi("LspDiagnosticsDefaultInformation" , s:nord8_gui, "", s:nord8_term, "", "", "") - call s:hi("LspDiagnosticsDefaultHint" , s:nord10_gui, "", s:nord10_term, "", "", "") - call s:hi("LspDiagnosticsUnderlineWarning" , s:nord13_gui, "", s:nord13_term, "", "undercurl", "") - call s:hi("LspDiagnosticsUnderlineError" , s:nord11_gui, "", s:nord11_term, "", "undercurl", "") - call s:hi("LspDiagnosticsUnderlineInformation" , s:nord8_gui, "", s:nord8_term, "", "undercurl", "") - call s:hi("LspDiagnosticsUnderlineHint" , s:nord10_gui, "", s:nord10_term, "", "undercurl", "") - endif - - " Gitsigns - " > lewis6991/gitsigns.nvim - hi! link GitSignsCurrentLineBlame Comment -endif - -" GitGutter -" > airblade/vim-gitgutter -call s:hi("GitGutterAdd", s:nord14_gui, "", s:nord14_term, "", "", "") -call s:hi("GitGutterChange", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("GitGutterChangeDelete", s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("GitGutterDelete", s:nord11_gui, "", s:nord11_term, "", "", "") - -" Signify -" > mhinz/vim-signify -call s:hi("SignifySignAdd", s:nord14_gui, "", s:nord14_term, "", "", "") -call s:hi("SignifySignChange", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("SignifySignChangeDelete", s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("SignifySignDelete", s:nord11_gui, "", s:nord11_term, "", "", "") - -" Sneak -" > justinmk/vim-sneak -hi! link Sneak Search - -" fugitive.vim -" > tpope/vim-fugitive -call s:hi("gitcommitDiscardedFile", s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("gitcommitUntrackedFile", s:nord11_gui, "", s:nord11_term, "", "", "") -call s:hi("gitcommitSelectedFile", s:nord14_gui, "", s:nord14_term, "", "", "") - -" davidhalter/jedi-vim -call s:hi("jediFunction", s:nord4_gui, s:nord3_gui, "", s:nord3_term, "", "") -call s:hi("jediFat", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, s:underline.s:bold, "") - -" NERDTree -" > scrooloose/nerdtree -call s:hi("NERDTreeExecFile", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link NERDTreeDirSlash Keyword -hi! link NERDTreeHelp Comment - -" CtrlP -" > ctrlpvim/ctrlp.vim -hi! link CtrlPMatch Keyword -hi! link CtrlPBufferHid Normal - -" vim-clap -" > liuchengxu/vim-clap -call s:hi("ClapDir", s:nord4_gui, "", "", "", "", "") -call s:hi("ClapDisplay", s:nord4_gui, s:nord1_gui, "", s:nord1_term, "", "") -call s:hi("ClapFile", s:nord4_gui, "", "", "NONE", "", "") -call s:hi("ClapMatches", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("ClapNoMatchesFound", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("ClapSelected", s:nord7_gui, "", s:nord7_term, "", s:bold, "") -call s:hi("ClapSelectedSign", s:nord9_gui, "", s:nord9_term, "", "", "") -let s:clap_matches = [ - \ [s:nord8_gui, s:nord8_term] , - \ [s:nord9_gui, s:nord9_term] , - \ [s:nord10_gui, s:nord10_term] , - \ ] -for s:nord_clap_match_i in range(1,12) - let clap_match_color = s:clap_matches[s:nord_clap_match_i % len(s:clap_matches) - 1] - call s:hi("ClapMatches" . s:nord_clap_match_i, clap_match_color[0], "", clap_match_color[1], "", "", "") - call s:hi("ClapFuzzyMatches" . s:nord_clap_match_i, clap_match_color[0], "", clap_match_color[1], "", "", "") -endfor -unlet s:nord_clap_match_i -hi! link ClapCurrentSelection PmenuSel -hi! link ClapCurrentSelectionSign ClapSelectedSign -hi! link ClapInput Pmenu -hi! link ClapPreview Pmenu -hi! link ClapProviderAbout ClapDisplay -hi! link ClapProviderColon Type -hi! link ClapProviderId Type - -" vim-indent-guides -" > nathanaelkane/vim-indent-guides -call s:hi("IndentGuidesEven", "", s:nord1_gui, "", s:nord1_term, "", "") -call s:hi("IndentGuidesOdd", "", s:nord2_gui, "", s:nord3_term, "", "") - -" vim-plug -" > junegunn/vim-plug -call s:hi("plugDeleted", s:nord11_gui, "", "", s:nord11_term, "", "") - -" vim-signature -" > kshenoy/vim-signature -call s:hi("SignatureMarkText", s:nord8_gui, "", s:nord8_term, "", "", "") - -" vim-startify -" > mhinz/vim-startify -call s:hi("StartifyFile", s:nord6_gui, "", s:nord6_term, "", "", "") -call s:hi("StartifyFooter", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("StartifyHeader", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("StartifyNumber", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("StartifyPath", s:nord8_gui, "", s:nord8_term, "", "", "") -hi! link StartifyBracket Delimiter -hi! link StartifySlash Normal -hi! link StartifySpecial Comment - -"+--- Languages ---+ -" Haskell -" > neovimhaskell/haskell-vim -call s:hi("haskellPreProc", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("haskellType", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link haskellPragma haskellPreProc - -" JavaScript -" > pangloss/vim-javascript -call s:hi("jsGlobalNodeObjects", s:nord8_gui, "", s:nord8_term, "", s:italic, "") -hi! link jsBrackets Delimiter -hi! link jsFuncCall Function -hi! link jsFuncParens Delimiter -hi! link jsThis Keyword -hi! link jsNoise Delimiter -hi! link jsPrototype Keyword -hi! link jsRegexpString SpecialChar - -" Pandoc -" > vim-pandoc/vim-pandoc-syntax -call s:hi("pandocDefinitionBlockTerm", s:nord7_gui, "", s:nord7_term, "", s:italic, "") -call s:hi("pandocTableDelims", s:nord3_gui, "", s:nord3_term, "", "", "") -hi! link pandocAtxHeader markdownH1 -hi! link pandocBlockQuote markdownBlockquote -hi! link pandocCiteAnchor Operator -hi! link pandocCiteKey pandocReferenceLabel -hi! link pandocDefinitionBlockMark Operator -hi! link pandocEmphasis markdownItalic -hi! link pandocFootnoteID pandocReferenceLabel -hi! link pandocFootnoteIDHead markdownLinkDelimiter -hi! link pandocFootnoteIDTail pandocFootnoteIDHead -hi! link pandocGridTableDelims pandocTableDelims -hi! link pandocGridTableHeader pandocTableDelims -hi! link pandocOperator Operator -hi! link pandocPipeTableDelims pandocTableDelims -hi! link pandocReferenceDefinition pandocReferenceLabel -hi! link pandocReferenceLabel markdownLinkText -hi! link pandocReferenceURL markdownUrl -hi! link pandocSimpleTableHeader pandocAtxHeader -hi! link pandocStrong markdownBold -hi! link pandocTableHeaderWord pandocAtxHeader -hi! link pandocUListItemBullet Operator - -if has('nvim') - " tree-sitter - " > nvim-treesitter/nvim-treesitter - hi! link TSAnnotation Annotation - hi! link TSConstBuiltin Constant - hi! link TSConstructor Function - hi! link TSEmphasis Italic - hi! link TSFuncBuiltin Function - hi! link TSFuncMacro Function - hi! link TSStringRegex SpecialChar - hi! link TSStrong Bold - hi! link TSStructure Structure - hi! link TSTagDelimiter TSTag - hi! link TSUnderline Underline - hi! link TSVariable Variable - hi! link TSVariableBuiltin Keyword -endif - -" TypeScript -" > HerringtonDarkholme/yats.vim -call s:hi("typescriptBOMWindowMethod", s:nord8_gui, "", s:nord8_term, "", s:italic, "") -call s:hi("typescriptClassName", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("typescriptDecorator", s:nord12_gui, "", s:nord12_term, "", "", "") -call s:hi("typescriptInterfaceName", s:nord7_gui, "", s:nord7_term, "", s:bold, "") -call s:hi("typescriptRegexpString", s:nord13_gui, "", s:nord13_term, "", "", "") -" TypeScript JSX - call s:hi("tsxAttrib", s:nord7_gui, "", s:nord7_term, "", "", "") -hi! link typescriptOperator Operator -hi! link typescriptBinaryOp Operator -hi! link typescriptAssign Operator -hi! link typescriptMember Identifier -hi! link typescriptDOMStorageMethod Identifier -hi! link typescriptArrowFuncArg Identifier -hi! link typescriptGlobal typescriptClassName -hi! link typescriptBOMWindowProp Function -hi! link typescriptArrowFuncDef Function -hi! link typescriptAliasDeclaration Function -hi! link typescriptPredefinedType Type -hi! link typescriptTypeReference typescriptClassName -hi! link typescriptTypeAnnotation Structure -hi! link typescriptDocNamedParamType SpecialComment -hi! link typescriptDocNotation Keyword -hi! link typescriptDocTags Keyword -hi! link typescriptImport Keyword -hi! link typescriptExport Keyword -hi! link typescriptTry Keyword -hi! link typescriptVariable Keyword -hi! link typescriptBraces Normal -hi! link typescriptObjectLabel Normal -hi! link typescriptCall Normal -hi! link typescriptClassHeritage typescriptClassName -hi! link typescriptFuncTypeArrow Structure -hi! link typescriptMemberOptionality Structure -hi! link typescriptNodeGlobal typescriptGlobal -hi! link typescriptTypeBrackets Structure -hi! link tsxEqual Operator -hi! link tsxIntrinsicTagName htmlTag -hi! link tsxTagName tsxIntrinsicTagName - -" Markdown -" > plasticboy/vim-markdown -call s:hi("mkdCode", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("mkdFootnote", s:nord8_gui, "", s:nord8_term, "", "", "") -call s:hi("mkdRule", s:nord10_gui, "", s:nord10_term, "", "", "") -call s:hi("mkdLineBreak", s:nord9_gui, "", s:nord9_term, "", "", "") -hi! link mkdBold Bold -hi! link mkdItalic Italic -hi! link mkdString Keyword -hi! link mkdCodeStart mkdCode -hi! link mkdCodeEnd mkdCode -hi! link mkdBlockquote Comment -hi! link mkdListItem Keyword -hi! link mkdListItemLine Normal -hi! link mkdFootnotes mkdFootnote -hi! link mkdLink markdownLinkText -hi! link mkdURL markdownUrl -hi! link mkdInlineURL mkdURL -hi! link mkdID Identifier -hi! link mkdLinkDef mkdLink -hi! link mkdLinkDefTarget mkdURL -hi! link mkdLinkTitle mkdInlineURL -hi! link mkdDelimiter Keyword - -" PHP -" > StanAngeloff/php.vim -call s:hi("phpClass", s:nord7_gui, "", s:nord7_term, "", "", "") -call s:hi("phpClassImplements", s:nord7_gui, "", s:nord7_term, "", s:bold, "") -hi! link phpClassExtends phpClass -hi! link phpFunction Function -hi! link phpMethod Function -hi! link phpUseClass phpClass - -" Vimwiki -" > vimwiki/vimwiki -if !exists("g:vimwiki_hl_headers") || g:vimwiki_hl_headers == 0 - for s:i in range(1,6) - call s:hi("VimwikiHeader".s:i, s:nord8_gui, "", s:nord8_term, "", s:bold, "") - endfor -else - let s:vimwiki_hcolor_guifg = [s:nord7_gui, s:nord8_gui, s:nord9_gui, s:nord10_gui, s:nord14_gui, s:nord15_gui] - let s:vimwiki_hcolor_ctermfg = [s:nord7_term, s:nord8_term, s:nord9_term, s:nord10_term, s:nord14_term, s:nord15_term] - for s:i in range(1,6) - call s:hi("VimwikiHeader".s:i, s:vimwiki_hcolor_guifg[s:i-1] , "", s:vimwiki_hcolor_ctermfg[s:i-1], "", s:bold, "") - endfor -endif -call s:hi("VimwikiLink", s:nord8_gui, "", s:nord8_term, "", s:underline, "") -hi! link VimwikiHeaderChar markdownHeadingDelimiter -hi! link VimwikiHR Keyword -hi! link VimwikiList markdownListMarker - -" YAML -" > stephpy/vim-yaml -call s:hi("yamlKey", s:nord7_gui, "", s:nord7_term, "", "", "") - -"+------------+ -"+ Public API + -"+------------+ -"+--- Functions ---+ - -function! NordPalette() abort - let ret = {} - for color in range(16) - execute 'let ret["nord'.color.'"] = s:nord'.color.'_gui' - endfor - let ret["nord3_bright"] = s:nord3_gui_bright - return ret -endfunction diff --git a/vim/.config/vim/plugged/nord-vim/license b/vim/.config/vim/plugged/nord-vim/license deleted file mode 100644 index 8283a7c..0000000 --- a/vim/.config/vim/plugged/nord-vim/license +++ /dev/null @@ -1,21 +0,0 @@ -MIT License (MIT) - -Copyright (c) 2016-present Sven Greb (https://www.svengreb.de) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vim/.config/vim/plugged/nord-vim/package-lock.json b/vim/.config/vim/plugged/nord-vim/package-lock.json deleted file mode 100644 index df588df..0000000 --- a/vim/.config/vim/plugged/nord-vim/package-lock.json +++ /dev/null @@ -1,5851 +0,0 @@ -{ - "name": "@nordtheme/vim", - "version": "0.19.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@nordtheme/vim", - "version": "0.19.0", - "license": "MIT", - "devDependencies": { - "@arcticicestudio/remark-preset-lint": ">=0.4.0 <1.0.0", - "husky": "8.0.3", - "lint-staged": "13.1.2", - "npm-run-all": "4.1.5", - "prettier": "^2.8.4", - "remark-cli": "11.0.0" - }, - "engines": { - "node": ">=15.13", - "npm": ">=7.7" - } - }, - "node_modules/@arcticicestudio/remark-preset-lint": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@arcticicestudio/remark-preset-lint/-/remark-preset-lint-0.4.0.tgz", - "integrity": "sha512-Gw0CBqNqmDj3jr1EZqx5K4EV1N152xmcYqLsxNrSwmKQmkMh64CO5i+89zaYxH2c59GJ1Nt/4bGxS/CU/UvuWw==", - "dev": true, - "dependencies": { - "remark-footnotes": "^3.0.0", - "remark-frontmatter": "^3.0.0", - "remark-gfm": "^1.0.0", - "remark-lint": "^8.0.0", - "remark-lint-blockquote-indentation": "^2.0.1", - "remark-lint-checkbox-character-style": "^3.0.0", - "remark-lint-checkbox-content-indent": "^3.0.0", - "remark-lint-code-block-style": "^2.0.1", - "remark-lint-definition-case": "^2.0.1", - "remark-lint-definition-spacing": "^2.0.1", - "remark-lint-emphasis-marker": "^2.0.1", - "remark-lint-fenced-code-flag": "^2.0.1", - "remark-lint-fenced-code-marker": "^2.0.1", - "remark-lint-file-extension": "^1.0.5", - "remark-lint-final-definition": "^2.1.0", - "remark-lint-final-newline": "^1.0.5", - "remark-lint-first-heading-level": "^2.0.1", - "remark-lint-hard-break-spaces": "^2.0.1", - "remark-lint-heading-increment": "^2.0.1", - "remark-lint-heading-style": "^2.0.1", - "remark-lint-linebreak-style": "^2.0.1", - "remark-lint-link-title-style": "^2.0.1", - "remark-lint-list-item-bullet-indent": "^3.0.0", - "remark-lint-list-item-content-indent": "^2.0.1", - "remark-lint-list-item-indent": "^2.0.1", - "remark-lint-list-item-spacing": "^3.0.0", - "remark-lint-maximum-heading-length": "^2.0.1", - "remark-lint-maximum-line-length": "^2.0.3", - "remark-lint-no-auto-link-without-protocol": "^2.0.1", - "remark-lint-no-blockquote-without-marker": "^4.0.0", - "remark-lint-no-consecutive-blank-lines": "^3.0.0", - "remark-lint-no-duplicate-defined-urls": "^1.0.1", - "remark-lint-no-duplicate-definitions": "^2.0.1", - "remark-lint-no-duplicate-headings": "^2.0.1", - "remark-lint-no-duplicate-headings-in-section": "^2.0.2", - "remark-lint-no-emphasis-as-heading": "^2.0.1", - "remark-lint-no-empty-url": "^2.0.1", - "remark-lint-no-file-name-articles": "^1.0.5", - "remark-lint-no-file-name-consecutive-dashes": "^1.0.5", - "remark-lint-no-file-name-irregular-characters": "^1.0.5", - "remark-lint-no-file-name-mixed-case": "^1.0.5", - "remark-lint-no-file-name-outer-dashes": "^1.0.6", - "remark-lint-no-heading-content-indent": "^3.0.0", - "remark-lint-no-heading-indent": "^3.0.0", - "remark-lint-no-heading-like-paragraph": "^2.0.1", - "remark-lint-no-heading-punctuation": "^2.0.1", - "remark-lint-no-html": "^2.0.1", - "remark-lint-no-inline-padding": "^3.0.0", - "remark-lint-no-literal-urls": "^2.0.1", - "remark-lint-no-missing-blank-lines": "^2.0.1", - "remark-lint-no-multiple-toplevel-headings": "^2.0.1", - "remark-lint-no-paragraph-content-indent": "^3.0.0", - "remark-lint-no-reference-like-url": "^2.0.1", - "remark-lint-no-shell-dollars": "^2.0.2", - "remark-lint-no-shortcut-reference-image": "^2.0.1", - "remark-lint-no-shortcut-reference-link": "^2.0.1", - "remark-lint-no-table-indentation": "^3.0.0", - "remark-lint-no-tabs": "^2.0.1", - "remark-lint-no-undefined-references": "^3.0.0", - "remark-lint-no-unneeded-full-reference-image": "^2.0.1", - "remark-lint-no-unneeded-full-reference-link": "^2.0.1", - "remark-lint-no-unused-definitions": "^2.0.1", - "remark-lint-ordered-list-marker-style": "^2.0.1", - "remark-lint-ordered-list-marker-value": "^2.0.1", - "remark-lint-rule-style": "^2.0.1", - "remark-lint-strong-marker": "^2.0.1", - "remark-lint-table-cell-padding": "^3.0.0", - "remark-lint-table-pipe-alignment": "^2.0.1", - "remark-lint-table-pipes": "^3.0.0", - "remark-lint-unordered-list-marker-style": "^2.0.1" - }, - "peerDependencies": { - "remark-cli": "^9.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@npmcli/config": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-6.1.3.tgz", - "integrity": "sha512-c8uOXPbRq1K8YeyUszj6MBWIdB6bx6x3K/UbGmc5GF7qpv1mB893Y5SuyrH/J7Kcw24Im4ASrsztk38ZBWFS2Q==", - "dev": true, - "dependencies": { - "@npmcli/map-workspaces": "^3.0.2", - "ini": "^3.0.0", - "nopt": "^7.0.0", - "proc-log": "^3.0.0", - "read-package-json-fast": "^3.0.2", - "semver": "^7.3.5", - "walk-up-path": "^1.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/config/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@npmcli/map-workspaces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@npmcli/map-workspaces/-/map-workspaces-3.0.2.tgz", - "integrity": "sha512-bCEC4PG7HbadtAYkW/TTUVNEOSr5Dhfmv6yGLgByJgCvdCqq7teq09cjvJ1LhzJU/euWjvYMcQxsfj7yDD2ikg==", - "dev": true, - "dependencies": { - "@npmcli/name-from-folder": "^2.0.0", - "glob": "^8.0.1", - "minimatch": "^6.1.6", - "read-package-json-fast": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@npmcli/map-workspaces/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@npmcli/map-workspaces/node_modules/minimatch": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-6.2.0.tgz", - "integrity": "sha512-sauLxniAmvnhhRjFwPNnJKaPFYyddAgbYdeUpHULtCT/GhzdCx/MDNy+Y40lBxTQUrMzDE8e0S43Z5uqfO0REg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@npmcli/name-from-folder": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz", - "integrity": "sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/@types/concat-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-2.0.0.tgz", - "integrity": "sha512-t3YCerNM7NTVjLuICZo5gYAXYoDvpuuTceCcFQWcDQz26kxUR5uIWolxbIR5jRNIXpMqhOpW/b8imCR1LEmuJw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/debug": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz", - "integrity": "sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==", - "dev": true, - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/is-empty": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@types/is-empty/-/is-empty-1.2.1.tgz", - "integrity": "sha512-a3xgqnFTuNJDm1fjsTjHocYJ40Cz3t8utYpi5GNaxzrJC2HSD08ym+whIL7fNqiqBCdM9bcqD1H/tORWAFXoZw==", - "dev": true - }, - "node_modules/@types/mdast": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.10.tgz", - "integrity": "sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==", - "dev": true, - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.14.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz", - "integrity": "sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==", - "dev": true - }, - "node_modules/@types/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@types/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-dPWnWsf+kzIG140B8z2w3fr5D03TLWbOAFQl45xUpI3vcizeXriNR5VYkWZ+WTMsUHqZ9Xlt3hrxGNANFyNQfw==", - "dev": true - }, - "node_modules/@types/text-table": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@types/text-table/-/text-table-0.2.2.tgz", - "integrity": "sha512-dGoI5Af7To0R2XE8wJuc6vwlavWARsCh3UKJPjWs1YEqGUqfgBI/j/4GX0yf19/DsDPPf0YAXWAp8psNeIehLg==", - "dev": true - }, - "node_modules/@types/unist": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", - "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==", - "dev": true - }, - "node_modules/abbrev": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", - "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/camelcase": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz", - "integrity": "sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==", - "dev": true, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ccount": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz", - "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/character-entities": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz", - "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz", - "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz", - "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", - "dev": true, - "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/co": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/co/-/co-3.1.0.tgz", - "integrity": "sha512-CQsjCRiNObI8AtTsNIBDRMQ4oMR83CzEswHYahClvul7gKk+lDQiOKv+5qh7LQWf5sh6jkZNispz/QlsZxyNgA==", - "dev": true - }, - "node_modules/collapse-white-space": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.6.tgz", - "integrity": "sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/colorette": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", - "dev": true - }, - "node_modules/commander": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", - "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", - "dev": true, - "engines": { - "node": "^12.20.0 || >=14" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/concat-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", - "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", - "dev": true, - "engines": [ - "node >= 6.0" - ], - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.0.2", - "typedarray": "^0.0.6" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "dev": true, - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/decode-named-character-reference/node_modules/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", - "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/execa": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-6.1.0.tgz", - "integrity": "sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^3.0.1", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "node_modules/fault": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", - "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", - "dev": true, - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/format": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", - "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/human-signals": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz", - "integrity": "sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==", - "dev": true, - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", - "dev": true, - "bin": { - "husky": "lib/bin.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-meta-resolve": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-2.2.1.tgz", - "integrity": "sha512-C6lLL7EJPY44kBvA80gq4uMsVFw5x3oSKfuMl1cuZ2RkI5+UJqQXgn+6hlUew0y4ig7Ypt4CObAAIzU53Nfpuw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ini": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ini/-/ini-3.0.1.tgz", - "integrity": "sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==", - "dev": true, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-alphabetical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz", - "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz", - "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==", - "dev": true, - "dependencies": { - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "engines": { - "node": ">=4" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-decimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz", - "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-empty": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-empty/-/is-empty-1.2.0.tgz", - "integrity": "sha512-F2FnH/otLNJv0J6wc73A5Xo7oHLNnqplYqZhUu01tD54DIPvxIRSTSLkrUB/M0nHO4vo1O9PDfN4KoTxCzLh/w==", - "dev": true - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz", - "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "node_modules/json-parse-even-better-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", - "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lilconfig": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", - "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.3.tgz", - "integrity": "sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/lint-staged": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.1.2.tgz", - "integrity": "sha512-K9b4FPbWkpnupvK3WXZLbgu9pchUJ6N7TtVZjbaPsoizkqFUDkUReUL25xdrCljJs7uLUF3tZ7nVPeo/6lp+6w==", - "dev": true, - "dependencies": { - "cli-truncate": "^3.1.0", - "colorette": "^2.0.19", - "commander": "^9.4.1", - "debug": "^4.3.4", - "execa": "^6.1.0", - "lilconfig": "2.0.6", - "listr2": "^5.0.5", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-inspect": "^1.12.2", - "pidtree": "^0.6.0", - "string-argv": "^0.3.1", - "yaml": "^2.1.3" - }, - "bin": { - "lint-staged": "bin/lint-staged.js" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/lint-staged" - } - }, - "node_modules/listr2": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.7.tgz", - "integrity": "sha512-MD+qXHPmtivrHIDRwPYdfNkrzqDiuaKU/rfBcec3WMyMF3xylQj3jMq344OtvQxz7zaCFViRAeqlr2AFhPvXHw==", - "dev": true, - "dependencies": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.19", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rfdc": "^1.3.0", - "rxjs": "^7.8.0", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "peerDependencies": { - "enquirer": ">= 2.3.0 < 3" - }, - "peerDependenciesMeta": { - "enquirer": { - "optional": true - } - } - }, - "node_modules/listr2/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/listr2/node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/listr2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/listr2/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/listr2/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/listr2/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/load-plugin": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/load-plugin/-/load-plugin-5.1.0.tgz", - "integrity": "sha512-Lg1CZa1CFj2CbNaxijTL6PCbzd4qGTlZov+iH2p5Xwy/ApcZJh+i6jMN2cYePouTfjJfrNu3nXFdEw8LvbjPFQ==", - "dev": true, - "dependencies": { - "@npmcli/config": "^6.0.0", - "import-meta-resolve": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-update/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-update/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-update/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/log-update/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-update/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/longest-streak": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-2.0.4.tgz", - "integrity": "sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/markdown-table": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz", - "integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==", - "dev": true, - "dependencies": { - "repeat-string": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/mdast-comment-marker": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/mdast-comment-marker/-/mdast-comment-marker-1.1.2.tgz", - "integrity": "sha512-vTFXtmbbF3rgnTh3Zl3irso4LtvwUq/jaDvT2D1JqTGAwaipcS7RpTxzi6KjoRqI9n2yuAhzLDAC8xVTF3XYVQ==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-1.1.1.tgz", - "integrity": "sha512-9cKl33Y21lyckGzpSmEQnIDjEfeeWelN5s1kUW1LwdB0Fkuq2u+4GdqcGEygYxJE8GVqCl0741bYXHgamfWAZA==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^4.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdast-util-footnote": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/mdast-util-footnote/-/mdast-util-footnote-0.1.7.tgz", - "integrity": "sha512-QxNdO8qSxqbO2e3m09KwDKfWiLgqyCurdWTQ198NpbZ2hxntdc+VKS4fDJCmNWbAroUdYnSthu+XbZ8ovh8C3w==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "^0.6.0", - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.0.tgz", - "integrity": "sha512-HN3W1gRIuN/ZW295c7zi7g9lVBllMgZE40RxCX37wrTPWXCWtpvOZdfnuK+1WNpvZje6XuJeI3Wnb4TJEUem+g==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "mdast-util-to-string": "^3.1.0", - "micromark": "^3.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-decode-string": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "unist-util-stringify-position": "^3.0.0", - "uvu": "^0.5.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.1.tgz", - "integrity": "sha512-tGvhT94e+cVnQt8JWE9/b3cUQZWS732TJxXHktvP+BYo62PpYD53Ls/6cC60rW21dW+txxiM4zMdc6abASvZKA==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/micromark": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.1.0.tgz", - "integrity": "sha512-6Mj0yHLdUZjHnOPgr5xfWIMqMWS12zDN6iws9SLuSz76W8jTtAv24MN4/CL7gJrl5vtxGInkkqDv/JIoRsQOvA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "micromark-core-commonmark": "^1.0.1", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-frontmatter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-frontmatter/-/mdast-util-frontmatter-0.2.0.tgz", - "integrity": "sha512-FHKL4w4S5fdt1KjJCwB0178WJ0evnyyQr5kXTM3wrOVpytD0hrkvd+AOOjU9Td8onOejCkmZ+HQRT3CZ3coHHQ==", - "dev": true, - "dependencies": { - "micromark-extension-frontmatter": "^0.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-0.1.2.tgz", - "integrity": "sha512-NNkhDx/qYcuOWB7xHUGWZYVXvjPFFd6afg6/e2g+SV4r9q5XUcCbV4Wfa3DLYIiD+xAEZc6K4MGaE/m0KDcPwQ==", - "dev": true, - "dependencies": { - "mdast-util-gfm-autolink-literal": "^0.1.0", - "mdast-util-gfm-strikethrough": "^0.2.0", - "mdast-util-gfm-table": "^0.1.0", - "mdast-util-gfm-task-list-item": "^0.1.0", - "mdast-util-to-markdown": "^0.6.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-autolink-literal": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz", - "integrity": "sha512-GjmLjWrXg1wqMIO9+ZsRik/s7PLwTaeCHVB7vRxUwLntZc8mzmTsLVr6HW1yLokcnhfURsn5zmSVdi3/xWWu1A==", - "dev": true, - "dependencies": { - "ccount": "^1.0.0", - "mdast-util-find-and-replace": "^1.1.0", - "micromark": "^2.11.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-strikethrough": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-0.2.3.tgz", - "integrity": "sha512-5OQLXpt6qdbttcDG/UxYY7Yjj3e8P7X16LzvpX8pIQPYJ/C2Z1qFGMmcw+1PZMUM3Z8wt8NRfYTvCni93mgsgA==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "^0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-table": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-0.1.6.tgz", - "integrity": "sha512-j4yDxQ66AJSBwGkbpFEp9uG/LS1tZV3P33fN1gkyRB2LoRL+RR3f76m0HPHaby6F4Z5xr9Fv1URmATlRRUIpRQ==", - "dev": true, - "dependencies": { - "markdown-table": "^2.0.0", - "mdast-util-to-markdown": "~0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-gfm-task-list-item": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-0.1.6.tgz", - "integrity": "sha512-/d51FFIfPsSmCIRNp7E6pozM9z1GYPIkSy1urQ8s/o4TC22BZ7DqfHFWiqBD23bc7J3vV1Fc9O4QIHBlfuit8A==", - "dev": true, - "dependencies": { - "mdast-util-to-markdown": "~0.6.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-heading-style": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/mdast-util-heading-style/-/mdast-util-heading-style-1.0.6.tgz", - "integrity": "sha512-8ZuuegRqS0KESgjAGW8zTx4tJ3VNIiIaGFNEzFpRSAQBavVc7AvOo9I4g3crcZBfYisHs4seYh0rAVimO6HyOw==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz", - "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz", - "integrity": "sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "longest-streak": "^2.0.0", - "mdast-util-to-string": "^2.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.0.0", - "zwitch": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz", - "integrity": "sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "dev": true, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/micromark": { - "version": "2.11.4", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-2.11.4.tgz", - "integrity": "sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "debug": "^4.0.0", - "parse-entities": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.0.6.tgz", - "integrity": "sha512-K+PkJTxqjFfSNkfAhp4GB+cZPfQd6dxtTXnf+RjZOV7T4EEXnvgzOcnp+eSTmpGk9d1S9sL6/lqrgSNn/s0HZA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-factory-destination": "^1.0.0", - "micromark-factory-label": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-factory-title": "^1.0.0", - "micromark-factory-whitespace": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-html-tag-name": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-extension-footnote": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/micromark-extension-footnote/-/micromark-extension-footnote-0.3.2.tgz", - "integrity": "sha512-gr/BeIxbIWQoUm02cIfK7mdMZ/fbroRpLsck4kvFtjbzP4yi+OPVbnukTc/zy0i7spC2xYE/dbX1Sur8BEDJsQ==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-frontmatter": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/micromark-extension-frontmatter/-/micromark-extension-frontmatter-0.2.2.tgz", - "integrity": "sha512-q6nPLFCMTLtfsctAuS0Xh4vaolxSFUWUWR6PZSrXXiRy+SANGllpcqdXFv2z07l0Xz/6Hl40hK0ffNCJPH2n1A==", - "dev": true, - "dependencies": { - "fault": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-0.3.3.tgz", - "integrity": "sha512-oVN4zv5/tAIA+l3GbMi7lWeYpJ14oQyJ3uEim20ktYFAcfX1x3LNlFGGlmrZHt7u9YlKExmyJdDGaTt6cMSR/A==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0", - "micromark-extension-gfm-autolink-literal": "~0.5.0", - "micromark-extension-gfm-strikethrough": "~0.6.5", - "micromark-extension-gfm-table": "~0.4.0", - "micromark-extension-gfm-tagfilter": "~0.3.0", - "micromark-extension-gfm-task-list-item": "~0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-autolink-literal": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.7.tgz", - "integrity": "sha512-ePiDGH0/lhcngCe8FtH4ARFoxKTUelMp4L7Gg2pujYD5CSMb9PbblnyL+AAMud/SNMyusbS2XDSiPIRcQoNFAw==", - "dev": true, - "dependencies": { - "micromark": "~2.11.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-strikethrough": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-0.6.5.tgz", - "integrity": "sha512-PpOKlgokpQRwUesRwWEp+fHjGGkZEejj83k9gU5iXCbDG+XBA92BqnRKYJdfqfkrRcZRgGuPuXb7DaK/DmxOhw==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-table": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-0.4.3.tgz", - "integrity": "sha512-hVGvESPq0fk6ALWtomcwmgLvH8ZSVpcPjzi0AjPclB9FsVRgMtGZkUcpE0zgjOCFAznKepF4z3hX8z6e3HODdA==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-tagfilter": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-0.3.0.tgz", - "integrity": "sha512-9GU0xBatryXifL//FJH+tAZ6i240xQuFrSL7mYi8f4oZSbc+NvXjkrHemeYP0+L4ZUT+Ptz3b95zhUZnMtoi/Q==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-extension-gfm-task-list-item": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-0.3.3.tgz", - "integrity": "sha512-0zvM5iSLKrc/NQl84pZSjGo66aTGd57C1idmlWmE87lkMcXrTxg1uXa/nXomxJytoje9trP0NDLvw4bZ/Z/XCQ==", - "dev": true, - "dependencies": { - "micromark": "~2.11.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark-factory-destination": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.0.0.tgz", - "integrity": "sha512-eUBA7Rs1/xtTVun9TmV3gjfPz2wEwgK5R5xcbIM5ZYAtvGF6JkyaDsj0agx8urXnO31tEO6Ug83iVH3tdedLnw==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-label": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.0.2.tgz", - "integrity": "sha512-CTIwxlOnU7dEshXDQ+dsr2n+yxpP0+fn271pu0bwDIS8uqfFcumXpj5mLn3hSC8iw2MUr6Gx8EcKng1dD7i6hg==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-factory-space": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.0.0.tgz", - "integrity": "sha512-qUmqs4kj9a5yBnk3JMLyjtWYN6Mzfcx8uJfi5XAveBniDevmZasdGBba5b4QsvRcAkmvGo5ACmSUmyGiKTLZew==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-factory-title": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.0.2.tgz", - "integrity": "sha512-zily+Nr4yFqgMGRKLpTVsNl5L4PMu485fGFDOQJQBl2NFpjGte1e86zC0da93wf97jrc4+2G2GQudFMHn3IX+A==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-factory-whitespace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.0.0.tgz", - "integrity": "sha512-Qx7uEyahU1lt1RnsECBiuEbfr9INjQTGa6Err+gF3g0Tx4YEviPbqqGKNv/NrBaE7dVHdn1bVZKM/n5I/Bak7A==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-character": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.1.0.tgz", - "integrity": "sha512-agJ5B3unGNJ9rJvADMJ5ZiYjBRyDpzKAOk01Kpi1TKhlT1APx3XZk6eN7RtSz1erbWHC2L8T3xLZ81wdtGRZzg==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-chunked": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.0.0.tgz", - "integrity": "sha512-5e8xTis5tEZKgesfbQMKRCyzvffRRUX+lK/y+DvsMFdabAicPkkZV6gO+FEWi9RfuKKoxxPwNL+dFF0SMImc1g==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-classify-character": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.0.0.tgz", - "integrity": "sha512-F8oW2KKrQRb3vS5ud5HIqBVkCqQi224Nm55o5wYLzY/9PwHGXC01tr3d7+TqHHz6zrKQ72Okwtvm/xQm6OVNZA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-combine-extensions": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.0.0.tgz", - "integrity": "sha512-J8H058vFBdo/6+AsjHp2NF7AJ02SZtWaVUjsayNFeAiydTxUwViQPxN0Hf8dp4FmCQi0UUFovFsEyRSUmFH3MA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.0.0.tgz", - "integrity": "sha512-OzO9AI5VUtrTD7KSdagf4MWgHMtET17Ua1fIpXTpuhclCqD8egFWo85GxSGvxgkGS74bEahvtM0WP0HjvV0e4w==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-decode-string": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.0.2.tgz", - "integrity": "sha512-DLT5Ho02qr6QWVNYbRZ3RYOSSWWFuH3tJexd3dgN1odEuPNxCngTCXJum7+ViRAd9BbdxCvMToPOD/IvVhzG6Q==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-encode": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.0.1.tgz", - "integrity": "sha512-U2s5YdnAYexjKDel31SVMPbfi+eF8y1U4pfiRW/Y8EFVCy/vgxk/2wWTxzcqE71LHtCuCzlBDRU2a5CQ5j+mQA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-html-tag-name": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.1.0.tgz", - "integrity": "sha512-BKlClMmYROy9UiV03SwNmckkjn8QHVaWkqoAqzivabvdGcwNGMMMH/5szAnywmsTBUzDsU57/mFi0sp4BQO6dA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0.tgz", - "integrity": "sha512-yg+zrL14bBTFrQ7n35CmByWUTFsgst5JhA4gJYoty4Dqzj4Z4Fr/DHekSS5aLfH9bdlfnSvKAWsAgJhIbogyBg==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-resolve-all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.0.0.tgz", - "integrity": "sha512-CB/AGk98u50k42kvgaMM94wzBqozSzDDaonKU7P7jwQIuH2RU0TeBqGYJz2WY1UdihhjweivStrJ2JdkdEmcfw==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-types": "^1.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.1.0.tgz", - "integrity": "sha512-RoxtuSCX6sUNtxhbmsEFQfWzs8VN7cTctmBPvYivo98xb/kDEoTCtJQX5wyzIYEmk/lvNFTat4hL8oW0KndFpg==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-character": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "node_modules/micromark-util-subtokenize": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.0.2.tgz", - "integrity": "sha512-d90uqCnXp/cy4G881Ub4psE57Sf8YD0pim9QdjCRNjfas2M1u6Lbt+XZK9gnHL2XFhnozZiEdCa9CNfXSfQ6xA==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "dependencies": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "node_modules/micromark-util-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.0.1.tgz", - "integrity": "sha512-oKDEMK2u5qqAptasDAwWDXq0tG9AssVwAx3E9bBF3t/shRIGsWIRG+cGafs2p/SnDSOecnt6hZPCE2o6lHfFmQ==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromark-util-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.0.2.tgz", - "integrity": "sha512-DCfg/T8fcrhrRKTPjRrw/5LLvdGV7BHySf/1LOZx7TzWZdYRjogNtyNq885z3nNallwr3QUKARjqvHqX1/7t+w==", - "dev": true, - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ] - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node_modules/nopt": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.0.0.tgz", - "integrity": "sha512-e6Qw1rcrGoSxEH0hQ4GBSdUjkMOtXGhGFXdNT/3ZR0S37eR9DMj5za3dEDWE6o1T3/DP8ZOsPP4MIiky0c3QeA==", - "dev": true, - "dependencies": { - "abbrev": "^2.0.0" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-normalize-package-bin": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.0.tgz", - "integrity": "sha512-g+DPQSkusnk7HYXr75NtzkIP4+N81i3RPsGFidF3DzHd9MT9wWngmqoeg/fnHFz5MNdtG4w03s+QnhewSLTT2Q==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm-run-all": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", - "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "chalk": "^2.4.1", - "cross-spawn": "^6.0.5", - "memorystream": "^0.3.1", - "minimatch": "^3.0.4", - "pidtree": "^0.3.0", - "read-pkg": "^3.0.0", - "shell-quote": "^1.6.1", - "string.prototype.padend": "^3.0.0" - }, - "bin": { - "npm-run-all": "bin/npm-run-all/index.js", - "run-p": "bin/run-p/index.js", - "run-s": "bin/run-s/index.js" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/npm-run-all/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/npm-run-all/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/pidtree": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", - "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/npm-run-all/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dev": true, - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-all/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-all/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse-entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz", - "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==", - "dev": true, - "dependencies": { - "character-entities": "^1.0.0", - "character-entities-legacy": "^1.0.0", - "character-reference-invalid": "^1.0.0", - "is-alphanumerical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-hexadecimal": "^1.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/prettier": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", - "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/proc-log": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-3.0.0.tgz", - "integrity": "sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/read-package-json-fast": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", - "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", - "dev": true, - "dependencies": { - "json-parse-even-better-errors": "^3.0.0", - "npm-normalize-package-bin": "^3.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", - "dev": true, - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/readable-stream": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.1.tgz", - "integrity": "sha512-+rQmrWMYGA90yenhTYsLWAsLsqVC8osOw6PKE1HDYiO0gdPeKe/xDHNzIAIn4C91YQ6oenEhfYqqc1883qHbjQ==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/remark": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/remark/-/remark-14.0.2.tgz", - "integrity": "sha512-A3ARm2V4BgiRXaUo5K0dRvJ1lbogrbXnhkJRmD0yw092/Yl0kOCZt1k9ZeElEwkZsWGsMumz6qL5MfNJH9nOBA==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "remark-parse": "^10.0.0", - "remark-stringify": "^10.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-cli": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/remark-cli/-/remark-cli-11.0.0.tgz", - "integrity": "sha512-8JEWwArXquRq1/In4Ftz7gSG9Scwb1ijT2/dEuBETW9omqhmMRxcfjZ3iKqrak3BnCJeZSXCdWEmPhFKC8+RUQ==", - "dev": true, - "dependencies": { - "remark": "^14.0.0", - "unified-args": "^10.0.0" - }, - "bin": { - "remark": "cli.js" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-footnotes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-footnotes/-/remark-footnotes-3.0.0.tgz", - "integrity": "sha512-ZssAvH9FjGYlJ/PBVKdSmfyPc3Cz4rTWgZLI4iE/SX8Nt5l3o3oEjv3wwG5VD7xOjktzdwp5coac+kJV9l4jgg==", - "dev": true, - "dependencies": { - "mdast-util-footnote": "^0.1.0", - "micromark-extension-footnote": "^0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-frontmatter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-3.0.0.tgz", - "integrity": "sha512-mSuDd3svCHs+2PyO29h7iijIZx4plX0fheacJcAoYAASfgzgVIcXGYSq9GFyYocFLftQs8IOmmkgtOovs6d4oA==", - "dev": true, - "dependencies": { - "mdast-util-frontmatter": "^0.2.0", - "micromark-extension-frontmatter": "^0.2.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-gfm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-1.0.0.tgz", - "integrity": "sha512-KfexHJCiqvrdBZVbQ6RopMZGwaXz6wFJEfByIuEwGf0arvITHjiKKZ1dpXujjH9KZdm1//XJQwgfnJ3lmXaDPA==", - "dev": true, - "dependencies": { - "mdast-util-gfm": "^0.1.0", - "micromark-extension-gfm": "^0.3.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/remark-lint/-/remark-lint-8.0.0.tgz", - "integrity": "sha512-ESI8qJQ/TIRjABDnqoFsTiZntu+FRifZ5fJ77yX63eIDijl/arvmDvT+tAf75/Nm5BFL4R2JFUtkHRGVjzYUsg==", - "dev": true, - "dependencies": { - "remark-message-control": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-blockquote-indentation": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-blockquote-indentation/-/remark-lint-blockquote-indentation-2.0.1.tgz", - "integrity": "sha512-uJ9az/Ms9AapnkWpLSCJfawBfnBI2Tn1yUsPNqIFv6YM98ymetItUMyP6ng9NFPqDvTQBbiarulkgoEo0wcafQ==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-blockquote-indentation/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-checkbox-character-style": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-checkbox-character-style/-/remark-lint-checkbox-character-style-3.0.0.tgz", - "integrity": "sha512-691OJ5RdBRXVpvnOEiBhMB4uhHJSHVttw83O4qyAkNBiqxa1Axqhsz8FgmzYgRLQbOGd2ncVUcXG1LOJt6C0DQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-checkbox-content-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-checkbox-content-indent/-/remark-lint-checkbox-content-indent-3.0.0.tgz", - "integrity": "sha512-+T4+hoY85qZE2drD2rCe14vF7fAgD3Kv2fkFd1HRvv3M5Riy148w/4YeoBI5U5BpybGTVUeEUYLCeJ8zbJLjkw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-code-block-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-code-block-style/-/remark-lint-code-block-style-2.0.1.tgz", - "integrity": "sha512-eRhmnColmSxJhO61GHZkvO67SpHDshVxs2j3+Zoc5Y1a4zQT2133ZAij04XKaBFfsVLjhbY/+YOWxgvtjx2nmA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-definition-case": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-definition-case/-/remark-lint-definition-case-2.0.1.tgz", - "integrity": "sha512-M+XlThtQwEJLQnQb5Gi6xZdkw92rGp7m2ux58WMw/Qlcg02WgHR/O0OcHPe5VO5hMJrtI+cGG5T0svsCgRZd3w==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-definition-spacing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-definition-spacing/-/remark-lint-definition-spacing-2.0.1.tgz", - "integrity": "sha512-xK9DOQO5MudITD189VyUiMHBIKltW1oc55L7Fti3i9DedXoBG7Phm+V9Mm7IdWzCVkquZVgVk63xQdqzSQRrSQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-emphasis-marker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-emphasis-marker/-/remark-lint-emphasis-marker-2.0.1.tgz", - "integrity": "sha512-7mpbAUrSnHiWRyGkbXRL5kfSKY9Cs8cdob7Fw+Z02/pufXMF4yRWaegJ5NTUu1RE+SKlF44wtWWjvcIoyY6/aw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-fenced-code-flag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-fenced-code-flag/-/remark-lint-fenced-code-flag-2.0.1.tgz", - "integrity": "sha512-+COnWHlS/h02FMxoZWxNlZW3Y8M0cQQpmx3aNCbG7xkyMyCKsMLg9EmRvYHHIbxQCuF3JT0WWx5AySqlc7d+NA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-fenced-code-marker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-fenced-code-marker/-/remark-lint-fenced-code-marker-2.0.1.tgz", - "integrity": "sha512-lujpjm04enn3ma6lITlttadld6eQ1OWAEcT3qZzvFHp+zPraC0yr0eXlvtDN/0UH8mrln/QmGiZp3i8IdbucZg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-file-extension": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-file-extension/-/remark-lint-file-extension-1.0.5.tgz", - "integrity": "sha512-oVQdf5vEomwHkfQ7R/mgmsWW2H/t9kSvnrxtVoNOHr+qnOEafKKDn+AFhioN2kqtjCZBAjSSrePs6xGKmXKDTw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-final-definition": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/remark-lint-final-definition/-/remark-lint-final-definition-2.1.0.tgz", - "integrity": "sha512-83K7n2icOHPfBzbR5Mr1o7cu8gOjD8FwJkFx/ly+rW+8SHfjCj4D3WOFGQ1xVdmHjfomBDXXDSNo2oiacADVXQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-final-newline": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-final-newline/-/remark-lint-final-newline-1.0.5.tgz", - "integrity": "sha512-rfLlW8+Fz2dqnaEgU4JwLA55CQF1T4mfSs/GwkkeUCGPenvEYwSkCN2KO2Gr1dy8qPoOdTFE1rSufLjmeTW5HA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-first-heading-level": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-first-heading-level/-/remark-lint-first-heading-level-2.0.1.tgz", - "integrity": "sha512-XoK/eLfnz1VSA8QkfMbdbvlCqOwgw29MAWEGC4Cv0666nTcY9uWHlZ/SV/20YNmuEVdfCA+92v92mM486qcASQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-hard-break-spaces": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-hard-break-spaces/-/remark-lint-hard-break-spaces-2.0.1.tgz", - "integrity": "sha512-Qfn/BMQFamHhtbfLrL8Co/dbYJFLRL4PGVXZ5wumkUO5f9FkZC2RsV+MD9lisvGTkJK0ZEJrVVeaPbUIFM0OAw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-heading-increment": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-heading-increment/-/remark-lint-heading-increment-2.0.1.tgz", - "integrity": "sha512-bYDRmv/lk3nuWXs2VSD1B4FneGT6v7a74FuVmb305hyEMmFSnneJvVgnOJxyKlbNlz12pq1IQ6MhlJBda/SFtQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-heading-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-heading-style/-/remark-lint-heading-style-2.0.1.tgz", - "integrity": "sha512-IrFLNs0M5Vbn9qg51AYhGUfzgLAcDOjh2hFGMz3mx664dV6zLcNZOPSdJBBJq3JQR4gKpoXcNwN1+FFaIATj+A==", - "dev": true, - "dependencies": { - "mdast-util-heading-style": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-linebreak-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-linebreak-style/-/remark-lint-linebreak-style-2.0.1.tgz", - "integrity": "sha512-4xp3uqJVGvIjCxM3xrTuLRZ8xYM0PZGsvRTCU10t5HYNljPCRSdtY/x98qohEAwS0uleINXz5zpZZT4FGktQnQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-link-title-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-link-title-style/-/remark-lint-link-title-style-2.0.1.tgz", - "integrity": "sha512-+Q7Ew8qpOQzjqbDF6sUHmn9mKgje+m2Ho8Xz7cEnGIRaKJgtJzkn/dZqQM/az0gn3zaN6rOuwTwqw4EsT5EsIg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-list-item-bullet-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-list-item-bullet-indent/-/remark-lint-list-item-bullet-indent-3.0.0.tgz", - "integrity": "sha512-X2rleWP8XReC4LXKF7Qi5vYiPJkA4Grx5zxsjHofFrVRz6j0PYOCuz7vsO+ZzMunFMfom6FODnscSWz4zouDVw==", - "dev": true, - "dependencies": { - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-list-item-content-indent": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-list-item-content-indent/-/remark-lint-list-item-content-indent-2.0.1.tgz", - "integrity": "sha512-OzUMqavxyptAdG7vWvBSMc9mLW9ZlTjbW4XGayzczd3KIr6Uwp3NEFXKx6MLtYIM/vwBqMrPQUrObOC7A2uBpQ==", - "dev": true, - "dependencies": { - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-list-item-indent": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-list-item-indent/-/remark-lint-list-item-indent-2.0.1.tgz", - "integrity": "sha512-4IKbA9GA14Q9PzKSQI6KEHU/UGO36CSQEjaDIhmb9UOhyhuzz4vWhnSIsxyI73n9nl9GGRAMNUSGzr4pQUFwTA==", - "dev": true, - "dependencies": { - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-list-item-spacing": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-list-item-spacing/-/remark-lint-list-item-spacing-3.0.0.tgz", - "integrity": "sha512-SRUVonwdN3GOSFb6oIYs4IfJxIVR+rD0nynkX66qEO49/qDDT1PPvkndis6Nyew5+t+2V/Db9vqllL6SWbnEtw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-maximum-heading-length": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-maximum-heading-length/-/remark-lint-maximum-heading-length-2.0.1.tgz", - "integrity": "sha512-1CjJ71YDqEpoOjUnc4wrwZV8ZGXWUIYRYeGoarAy3QKHepJL9M+zkdbOxZDfhc3tjVoDW/LWcgsW+DEpczgiMA==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-maximum-heading-length/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-maximum-line-length": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/remark-lint-maximum-line-length/-/remark-lint-maximum-line-length-2.0.3.tgz", - "integrity": "sha512-zyWHBFh1oPAy+gkaVFXiTHYP2WwriIeBtaarDqkweytw0+qmuikjVMJTWbQ3+XfYBreD7KKDM9SI79nkp0/IZQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-auto-link-without-protocol": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-auto-link-without-protocol/-/remark-lint-no-auto-link-without-protocol-2.0.1.tgz", - "integrity": "sha512-TFcXxzucsfBb/5uMqGF1rQA+WJJqm1ZlYQXyvJEXigEZ8EAxsxZGPb/gOQARHl/y0vymAuYxMTaChavPKaBqpQ==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-auto-link-without-protocol/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-blockquote-without-marker": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-blockquote-without-marker/-/remark-lint-no-blockquote-without-marker-4.0.0.tgz", - "integrity": "sha512-Y59fMqdygRVFLk1gpx2Qhhaw5IKOR9T38Wf7pjR07bEFBGUNfcoNVIFMd1TCJfCPQxUyJzzSqfZz/KT7KdUuiQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-consecutive-blank-lines": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-consecutive-blank-lines/-/remark-lint-no-consecutive-blank-lines-3.0.0.tgz", - "integrity": "sha512-kmzLlOLrapBKEngwYFTdCZDmeOaze6adFPB7G0EdymD9V1mpAlnneINuOshRLEDKK5fAhXKiZXxdGIaMPkiXrA==", - "dev": true, - "dependencies": { - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-defined-urls": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-duplicate-defined-urls/-/remark-lint-no-duplicate-defined-urls-1.0.1.tgz", - "integrity": "sha512-fUx4grm0oboxl+uwsHsRQGp3A929ujORrFoB/5eIyMDslxrgMTHKYf9ylxcC5yBRypkZi9AhFWBJ/wtVrxYEAg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-stringify-position": "^2.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-definitions": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-duplicate-definitions/-/remark-lint-no-duplicate-definitions-2.0.1.tgz", - "integrity": "sha512-XL22benJZB01m+aOse91nsu1IMFqeWJWme9QvoJuxIcBROO1BG1VoqLOkwNcawE/M/0CkvTo5rfx0eMlcnXOIw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-stringify-position": "^2.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-headings": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-duplicate-headings/-/remark-lint-no-duplicate-headings-2.0.1.tgz", - "integrity": "sha512-F6AP0FJcHIlkmq0pHX0J5EGvLA9LfhuYTvnNO8y3kvflHeRjFkDyt2foz/taXR8OcLQR51n/jIJiwrrSMbiauw==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-stringify-position": "^2.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-headings-in-section": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/remark-lint-no-duplicate-headings-in-section/-/remark-lint-no-duplicate-headings-in-section-2.0.2.tgz", - "integrity": "sha512-qtpTAvXgKkzDas7z3H3tzf/SDQIZ6zPEc9CaGZS/qMA2b5ORfQv+EC8NueK4x6+el19kbS6tX23iEnPXVYq1VQ==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-stringify-position": "^2.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-headings-in-section/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-duplicate-headings/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-emphasis-as-heading": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-emphasis-as-heading/-/remark-lint-no-emphasis-as-heading-2.0.1.tgz", - "integrity": "sha512-z86+yWtVivtuGIxIC4g9RuATbgZgOgyLcnaleonJ7/HdGTYssjJNyqCJweaWSLoaI0akBQdDwmtJahW5iuX3/g==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-empty-url": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-empty-url/-/remark-lint-no-empty-url-2.0.1.tgz", - "integrity": "sha512-CBO5hgxlHWrnBPex0GfKZy6ORe2wkLrrHODVPUpLplDA72cQbDzQKedHGgh76euGDs+jvP7RO+IljozdLLfSTw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-file-name-articles": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-no-file-name-articles/-/remark-lint-no-file-name-articles-1.0.5.tgz", - "integrity": "sha512-AQk5eTb3s3TAPPjiglZgqlQj4ycao+gPs8/XkdN1VCPUtewW0GgwoQe7YEuBKayJ6ioN8dGP37Kg/P/PlKaRQA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-file-name-consecutive-dashes": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-no-file-name-consecutive-dashes/-/remark-lint-no-file-name-consecutive-dashes-1.0.5.tgz", - "integrity": "sha512-Mg2IDsi790/dSdAzwnBnsMYdZm3qC2QgGwqOWcr0TPABJhhjC3p8r5fX4MNMTXI5It7B7bW9+ImmCeLOZiXkLg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-file-name-irregular-characters": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-no-file-name-irregular-characters/-/remark-lint-no-file-name-irregular-characters-1.0.5.tgz", - "integrity": "sha512-Oe5i99qNUKc2bxmiH421o5B/kqlf1dfjAxpHNLhi2X2dXE91zRGavrlRM/4f4oR0N9Bqb3qB9JZPyMPWrzu9XA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-file-name-mixed-case": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/remark-lint-no-file-name-mixed-case/-/remark-lint-no-file-name-mixed-case-1.0.5.tgz", - "integrity": "sha512-ilrUCbHZin/ENwr8c3SC2chgkFsizXjBQIB/oZ7gnm1IkCkZPiMyXZAHdpwC/DjbrpGxfMYh9JmIHao4giS5+A==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-file-name-outer-dashes": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/remark-lint-no-file-name-outer-dashes/-/remark-lint-no-file-name-outer-dashes-1.0.6.tgz", - "integrity": "sha512-rT8CmcIlenegS0Yst4maYXdZfqIjBOiRUY8j/KJkORF5tKH+3O1/S07025qPGmcRihzK3w4yO0K8rgkKQw0b9w==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-heading-content-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-heading-content-indent/-/remark-lint-no-heading-content-indent-3.0.0.tgz", - "integrity": "sha512-yULDoVSIqKylLDfW6mVUbrHlyEWUSFtVFiKc+/BA412xDIhm8HZLUnP+FsuBC0OzbIZ+bO9Txy52WtO3LGnK1A==", - "dev": true, - "dependencies": { - "mdast-util-heading-style": "^1.0.2", - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-heading-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-heading-indent/-/remark-lint-no-heading-indent-3.0.0.tgz", - "integrity": "sha512-b8ImhLv2AnRDxtYUODplzsl/7IwQ+lqRmD1bwbZgSerEP9MLaULW3SjH37EyA6z+8rCDjvEyppKKU6zec0TCjg==", - "dev": true, - "dependencies": { - "pluralize": "^8.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-heading-like-paragraph": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-heading-like-paragraph/-/remark-lint-no-heading-like-paragraph-2.0.1.tgz", - "integrity": "sha512-9JDhpIvs4996PnHF5KUnx8/YN39MvZR0uf+EeVILdJbJ2IUL8BOlGNhMFc0CSmxajtIxobjiS+yzAvLG57pUFw==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-heading-punctuation": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-heading-punctuation/-/remark-lint-no-heading-punctuation-2.0.1.tgz", - "integrity": "sha512-lY/eF6GbMeGu4cSuxfGHyvaQQBIq/6T/o+HvAR5UfxSTxmxZFwbZneAI2lbeR1zPcqOU87NsZ5ZZzWVwdLpPBw==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-heading-punctuation/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-html": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-html/-/remark-lint-no-html-2.0.1.tgz", - "integrity": "sha512-fDISacCkZCRgl1MeCx5Fx+eWL0iS2GK1EOETR1yAA0av7LYiF8tUwsP4/iRqcxIT30YoDlYoiNRyprD2eyWsUg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-inline-padding": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-inline-padding/-/remark-lint-no-inline-padding-3.0.0.tgz", - "integrity": "sha512-3s9uW3Yux9RFC0xV81MQX3bsYs+UY7nPnRuMxeIxgcVwxQ4E/mTJd9QjXUwBhU9kdPtJ5AalngdmOW2Tgar8Cg==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-inline-padding/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-literal-urls": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-literal-urls/-/remark-lint-no-literal-urls-2.0.1.tgz", - "integrity": "sha512-IDdKtWOMuKVQIlb1CnsgBoyoTcXU3LppelDFAIZePbRPySVHklTtuK57kacgU5grc7gPM04bZV96eliGrRU7Iw==", - "dev": true, - "dependencies": { - "mdast-util-to-string": "^1.0.2", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-literal-urls/node_modules/mdast-util-to-string": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-1.1.0.tgz", - "integrity": "sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-missing-blank-lines": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-missing-blank-lines/-/remark-lint-no-missing-blank-lines-2.0.1.tgz", - "integrity": "sha512-gM46JM8NMFj5PG8pkxOQ0AvkRMEX1lD7UO9b/eqUgYQ6OiJaCG8dInogCd++MVSUDpMMf4FF9dksRM/AOiFgIQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-multiple-toplevel-headings": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-multiple-toplevel-headings/-/remark-lint-no-multiple-toplevel-headings-2.0.1.tgz", - "integrity": "sha512-VKSItR6c+u3OsE5pUiSmNusERNyQS9Nnji26ezoQ1uvy06k3RypIjmzQqJ/hCkSiF+hoyC3ibtrrGT8gorzCmQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-stringify-position": "^2.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-paragraph-content-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-paragraph-content-indent/-/remark-lint-no-paragraph-content-indent-3.0.0.tgz", - "integrity": "sha512-breI0QSFAxvs2osc8yAzPqWoi4VfY9ccyV+/WQKOIIU8yTj8swN/kFFqnP7wdeY4O9BSmUJ7bPdWCsmrVworXA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-reference-like-url": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-reference-like-url/-/remark-lint-no-reference-like-url-2.0.1.tgz", - "integrity": "sha512-MeZtlimw30Hd74tBQOe5xlKXU9K5EGF6q/rj/VU4vfdwmCWI9LBCarxPmqHYkm7sbD3P7k9g5oB4StmWZYr5pQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-shell-dollars": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/remark-lint-no-shell-dollars/-/remark-lint-no-shell-dollars-2.0.2.tgz", - "integrity": "sha512-zhkHZOuyaD3r/TUUkkVqW0OxsR9fnSrAnHIF63nfJoAAUezPOu8D1NBsni6rX8H2DqGbPYkoeWrNsTwiKP0yow==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-shortcut-reference-image": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-shortcut-reference-image/-/remark-lint-no-shortcut-reference-image-2.0.1.tgz", - "integrity": "sha512-2jcZBdnN6ecP7u87gkOVFrvICLXIU5OsdWbo160FvS/2v3qqqwF2e/n/e7D9Jd+KTq1mR1gEVVuTqkWWuh3cig==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-shortcut-reference-link": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-shortcut-reference-link/-/remark-lint-no-shortcut-reference-link-2.0.1.tgz", - "integrity": "sha512-pTZbslG412rrwwGQkIboA8wpBvcjmGFmvugIA+UQR+GfFysKtJ5OZMPGJ98/9CYWjw9Z5m0/EktplZ5TjFjqwA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-table-indentation": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-table-indentation/-/remark-lint-no-table-indentation-3.0.0.tgz", - "integrity": "sha512-+l7GovI6T+3LhnTtz/SmSRyOb6Fxy6tmaObKHrwb/GAebI/4MhFS1LVo3vbiP/RpPYtyQoFbbuXI55hqBG4ibQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-tabs": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-tabs/-/remark-lint-no-tabs-2.0.1.tgz", - "integrity": "sha512-Fy5fMKNA8AsfhRtxyxBnHlGMpDDfns9VSSYv00RiC96qwRD82VhDRM3tYWZRBBxE+j71t6g47x9o/poGC7PThQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-undefined-references": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-no-undefined-references/-/remark-lint-no-undefined-references-3.0.0.tgz", - "integrity": "sha512-0hzaJS9GuzSQVOeeNdJr/s66LRQOzp618xuOQPYWHcJdd+SCaRTyWbjMrTM/cCI5L1sYjgurp410NkIBQ32Vqg==", - "dev": true, - "dependencies": { - "collapse-white-space": "^1.0.4", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.1.0", - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-unneeded-full-reference-image": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-unneeded-full-reference-image/-/remark-lint-no-unneeded-full-reference-image-2.0.1.tgz", - "integrity": "sha512-ZqkrW6l/n1EmcGdtzBFoDygG2ehd/Wx46Id9Dagg15oLzwvbhp5mJIXArXU2qGrF82w1hfainCaZzyH/OBJtEg==", - "dev": true, - "dependencies": { - "collapse-white-space": "^1.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-unneeded-full-reference-link": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-unneeded-full-reference-link/-/remark-lint-no-unneeded-full-reference-link-2.0.1.tgz", - "integrity": "sha512-OcPQiG6meVpvfydzxkxPdVc8jcXdklQW4gMjY2BevLtVoaIJ+dgNBPazyYHP/0EzpVY2RftD3CZ+5hiLW2rgpA==", - "dev": true, - "dependencies": { - "collapse-white-space": "^1.0.0", - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-no-unused-definitions": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-no-unused-definitions/-/remark-lint-no-unused-definitions-2.0.1.tgz", - "integrity": "sha512-+BMc0BOjc364SvKYLkspmxDch8OaKPbnUGgQBvK0Bmlwy42baR4C9zhwAWBxm0SBy5Z4AyM4G4jKpLXPH40Oxg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-ordered-list-marker-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-ordered-list-marker-style/-/remark-lint-ordered-list-marker-style-2.0.1.tgz", - "integrity": "sha512-Cnpw1Dn9CHn+wBjlyf4qhPciiJroFOEGmyfX008sQ8uGoPZsoBVIJx76usnHklojSONbpjEDcJCjnOvfAcWW1A==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-ordered-list-marker-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-ordered-list-marker-value/-/remark-lint-ordered-list-marker-value-2.0.1.tgz", - "integrity": "sha512-blt9rS7OKxZ2NW8tqojELeyNEwPhhTJGVa+YpUkdEH+KnrdcD7Nzhnj6zfLWOx6jFNZk3jpq5nvLFAPteHaNKg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-rule-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-rule-style/-/remark-lint-rule-style-2.0.1.tgz", - "integrity": "sha512-hz4Ff9UdlYmtO6Czz99WJavCjqCer7Cav4VopXt+yVIikObw96G5bAuLYcVS7hvMUGqC9ZuM02/Y/iq9n8pkAg==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-strong-marker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-strong-marker/-/remark-lint-strong-marker-2.0.1.tgz", - "integrity": "sha512-8X2IsW1jZ5FmW9PLfQjkL0OVy/J3xdXLcZrG1GTeQKQ91BrPFyEZqUM2oM6Y4S6LGtxWer+neZkPZNroZoRPBQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-table-cell-padding": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-table-cell-padding/-/remark-lint-table-cell-padding-3.0.0.tgz", - "integrity": "sha512-sEKrbyFZPZpxI39R8/r+CwUrin9YtyRwVn0SQkNQEZWZcIpylK+bvoKIldvLIXQPob+ZxklL0GPVRzotQMwuWQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-table-pipe-alignment": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-table-pipe-alignment/-/remark-lint-table-pipe-alignment-2.0.1.tgz", - "integrity": "sha512-O89U7bp0ja6uQkT2uQrNB76GaPvFabrHiUGhqEUnld21yEdyj7rgS57kn84lZNSuuvN1Oor6bDyCwWQGzzpoOQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-table-pipes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/remark-lint-table-pipes/-/remark-lint-table-pipes-3.0.0.tgz", - "integrity": "sha512-QPokSazEdl0Y8ayUV9UB0Ggn3Jos/RAQwIo0z1KDGnJlGDiF80Jc6iU9RgDNUOjlpQffSLIfSVxH5VVYF/K3uQ==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-lint-unordered-list-marker-style": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/remark-lint-unordered-list-marker-style/-/remark-lint-unordered-list-marker-style-2.0.1.tgz", - "integrity": "sha512-8KIDJNDtgbymEvl3LkrXgdxPMTOndcux3BHhNGB2lU4UnxSpYeHsxcDgirbgU6dqCAfQfvMjPvfYk19QTF9WZA==", - "dev": true, - "dependencies": { - "unified-lint-rule": "^1.0.0", - "unist-util-generated": "^1.1.0", - "unist-util-position": "^3.0.0", - "unist-util-visit": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-message-control": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/remark-message-control/-/remark-message-control-6.0.0.tgz", - "integrity": "sha512-k9bt7BYc3G7YBdmeAhvd3VavrPa/XlKWR3CyHjr4sLO9xJyly8WHHT3Sp+8HPR8lEUv+/sZaffL7IjMLV0f6BA==", - "dev": true, - "dependencies": { - "mdast-comment-marker": "^1.0.0", - "unified-message-control": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-parse": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.1.tgz", - "integrity": "sha512-1fUyHr2jLsVOkhbvPRBJ5zTKZZyD6yZzYaWCS6BPBdQ8vEMBCH+9zNCDA6tET/zHCi/jLqjCWtlJZUPk+DbnFw==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-from-markdown": "^1.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-10.0.2.tgz", - "integrity": "sha512-6wV3pvbPvHkbNnWB0wdDvVFHOe1hBRAx1Q/5g/EpH4RppAII6J8Gnwe7VbHuXaoKIF6LAg6ExTel/+kNqSQ7lw==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "mdast-util-to-markdown": "^1.0.0", - "unified": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/remark-stringify/node_modules/mdast-util-to-markdown": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz", - "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^3.0.0", - "mdast-util-to-string": "^3.0.0", - "micromark-util-decode-string": "^1.0.0", - "unist-util-visit": "^4.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/mdast-util-to-string": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.1.tgz", - "integrity": "sha512-tGvhT94e+cVnQt8JWE9/b3cUQZWS732TJxXHktvP+BYo62PpYD53Ls/6cC60rW21dW+txxiM4zMdc6abASvZKA==", - "dev": true, - "dependencies": { - "@types/mdast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/unist-util-is": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz", - "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/unist-util-visit": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz", - "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0", - "unist-util-visit-parents": "^5.1.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/unist-util-visit-parents": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz", - "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-stringify/node_modules/zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/restore-cursor/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "dev": true - }, - "node_modules/rxjs": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", - "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", - "dev": true, - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/sade": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", - "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", - "dev": true, - "dependencies": { - "mri": "^1.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz", - "integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/sliced": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", - "integrity": "sha512-VZBmZP8WU3sMOZm1bdgTadsQbcscK0UM8oKxKVBs4XAhUo2Xxzm/OFMGBkPusxw9xL3Uy8LrzEqGqJhclsr0yA==", - "dev": true - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", - "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", - "dev": true - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-argv": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz", - "integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==", - "dev": true, - "engines": { - "node": ">=0.6.19" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string.prototype.padend": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.4.tgz", - "integrity": "sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/to-vfile": { - "version": "7.2.4", - "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-7.2.4.tgz", - "integrity": "sha512-2eQ+rJ2qGbyw3senPI0qjuM7aut8IYXK6AEoOWb+fJx/mQYzviTckm1wDjq91QYHAPBTYzmdJXxMFA6Mk14mdw==", - "dev": true, - "dependencies": { - "is-buffer": "^2.0.0", - "vfile": "^5.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/trough": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz", - "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "dev": true - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unified": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", - "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "bail": "^2.0.0", - "extend": "^3.0.0", - "is-buffer": "^2.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified-args": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/unified-args/-/unified-args-10.0.0.tgz", - "integrity": "sha512-PqsqxwkXpGSLiMkbjNnKU33Ffm6gso6rAvz1TlBGzMBx3gpx7ewIhViBX8HEWmy0v7pebA5PM6RkRWWaYmtfYw==", - "dev": true, - "dependencies": { - "@types/text-table": "^0.2.0", - "camelcase": "^7.0.0", - "chalk": "^5.0.0", - "chokidar": "^3.0.0", - "fault": "^2.0.0", - "json5": "^2.0.0", - "minimist": "^1.0.0", - "text-table": "^0.2.0", - "unified-engine": "^10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified-args/node_modules/chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true, - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/unified-args/node_modules/fault": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz", - "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==", - "dev": true, - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/unified-engine": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/unified-engine/-/unified-engine-10.1.0.tgz", - "integrity": "sha512-5+JDIs4hqKfHnJcVCxTid1yBoI/++FfF/1PFdSMpaftZZZY+qg2JFruRbf7PaIwa9KgLotXQV3gSjtY0IdcFGQ==", - "dev": true, - "dependencies": { - "@types/concat-stream": "^2.0.0", - "@types/debug": "^4.0.0", - "@types/is-empty": "^1.0.0", - "@types/node": "^18.0.0", - "@types/unist": "^2.0.0", - "concat-stream": "^2.0.0", - "debug": "^4.0.0", - "fault": "^2.0.0", - "glob": "^8.0.0", - "ignore": "^5.0.0", - "is-buffer": "^2.0.0", - "is-empty": "^1.0.0", - "is-plain-obj": "^4.0.0", - "load-plugin": "^5.0.0", - "parse-json": "^6.0.0", - "to-vfile": "^7.0.0", - "trough": "^2.0.0", - "unist-util-inspect": "^7.0.0", - "vfile-message": "^3.0.0", - "vfile-reporter": "^7.0.0", - "vfile-statistics": "^2.0.0", - "yaml": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified-engine/node_modules/fault": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz", - "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==", - "dev": true, - "dependencies": { - "format": "^0.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/unified-engine/node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/unified-engine/node_modules/parse-json": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-6.0.2.tgz", - "integrity": "sha512-SA5aMiaIjXkAiBrW/yPgLgQAQg42f7K3ACO+2l/zOvtQBwX58DMUsFJXelW2fx3yMBmWOVkR6j1MGsdSbCA4UA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.16.0", - "error-ex": "^1.3.2", - "json-parse-even-better-errors": "^2.3.1", - "lines-and-columns": "^2.0.2" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/unified-lint-rule": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/unified-lint-rule/-/unified-lint-rule-1.0.6.tgz", - "integrity": "sha512-YPK15YBFwnsVorDFG/u0cVVQN5G2a3V8zv5/N6KN3TCG+ajKtaALcy7u14DCSrJI+gZeyYquFL9cioJXOGXSvg==", - "dev": true, - "dependencies": { - "wrapped": "^1.0.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unified-message-control": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unified-message-control/-/unified-message-control-3.0.3.tgz", - "integrity": "sha512-oY5z2n8ugjpNHXOmcgrw0pQeJzavHS0VjPBP21tOcm7rc2C+5Q+kW9j5+gqtf8vfW/8sabbsK5+P+9QPwwEHDA==", - "dev": true, - "dependencies": { - "unist-util-visit": "^2.0.0", - "vfile-location": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-generated": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-1.1.6.tgz", - "integrity": "sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-inspect": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/unist-util-inspect/-/unist-util-inspect-7.0.2.tgz", - "integrity": "sha512-Op0XnmHUl6C2zo/yJCwhXQSm/SmW22eDZdWP2qdf4WpGrgO1ZxFodq+5zFyeRGasFjJotAnLgfuD1jkcKqiH1Q==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-4.1.0.tgz", - "integrity": "sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.1.0.tgz", - "integrity": "sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", - "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz", - "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0", - "unist-util-visit-parents": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz", - "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-is": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, - "node_modules/uvu": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", - "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", - "dev": true, - "dependencies": { - "dequal": "^2.0.0", - "diff": "^5.0.0", - "kleur": "^4.0.3", - "sade": "^1.7.3" - }, - "bin": { - "uvu": "bin.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/vfile": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz", - "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "is-buffer": "^2.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-location": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-3.2.0.tgz", - "integrity": "sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz", - "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0", - "unist-util-stringify-position": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message/node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-reporter": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/vfile-reporter/-/vfile-reporter-7.0.5.tgz", - "integrity": "sha512-NdWWXkv6gcd7AZMvDomlQbK3MqFWL1RlGzMn++/O2TI+68+nqxCPTvLugdOtfSzXmjh+xUyhp07HhlrbJjT+mw==", - "dev": true, - "dependencies": { - "@types/supports-color": "^8.0.0", - "string-width": "^5.0.0", - "supports-color": "^9.0.0", - "unist-util-stringify-position": "^3.0.0", - "vfile": "^5.0.0", - "vfile-message": "^3.0.0", - "vfile-sort": "^3.0.0", - "vfile-statistics": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-reporter/node_modules/supports-color": { - "version": "9.3.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-9.3.1.tgz", - "integrity": "sha512-knBY82pjmnIzK3NifMo3RxEIRD9E0kIzV4BKcyTZ9+9kWgLMxd4PrsTSMoFQUabgRBbF8KOLRDCyKgNV+iK44Q==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/vfile-reporter/node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-sort": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/vfile-sort/-/vfile-sort-3.0.1.tgz", - "integrity": "sha512-1os1733XY6y0D5x0ugqSeaVJm9lYgj0j5qdcZQFyxlZOSy1jYarL77lLyb5gK4Wqr1d5OxmuyflSO3zKyFnTFw==", - "dev": true, - "dependencies": { - "vfile": "^5.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-statistics": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/vfile-statistics/-/vfile-statistics-2.0.1.tgz", - "integrity": "sha512-W6dkECZmP32EG/l+dp2jCLdYzmnDBIw6jwiLZSER81oR5AHRcVqL+k3Z+pfH1R73le6ayDkJRMk0sutj1bMVeg==", - "dev": true, - "dependencies": { - "vfile": "^5.0.0", - "vfile-message": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile/node_modules/unist-util-stringify-position": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", - "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", - "dev": true, - "dependencies": { - "@types/unist": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/walk-up-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-1.0.0.tgz", - "integrity": "sha512-hwj/qMDUEjCU5h0xr90KGCf0tg0/LgJbmOWgrWKYlcJZM7XvquvUJZ0G/HMGr7F7OQMOUuPHWP9JpriinkAlkg==", - "dev": true - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrap-ansi/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrapped": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wrapped/-/wrapped-1.0.1.tgz", - "integrity": "sha512-ZTKuqiTu3WXtL72UKCCnQLRax2IScKH7oQ+mvjbpvNE+NJxIWIemDqqM2GxNr4N16NCjOYpIgpin5pStM7kM5g==", - "dev": true, - "dependencies": { - "co": "3.1.0", - "sliced": "^1.0.1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", - "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", - "dev": true, - "engines": { - "node": ">= 14" - } - }, - "node_modules/zwitch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", - "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - } - } -} diff --git a/vim/.config/vim/plugged/nord-vim/package.json b/vim/.config/vim/plugged/nord-vim/package.json deleted file mode 100644 index 2000b96..0000000 --- a/vim/.config/vim/plugged/nord-vim/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@nordtheme/vim", - "version": "0.19.0", - "description": "An arctic, north-bluish clean and elegant Vim theme", - "author": "Sven Greb (https://www.svengreb.de)", - "homepage": "https://www.nordtheme.com/ports/vim", - "repository": { - "type": "git", - "url": "git+https://github.com/nordtheme/vim.git" - }, - "bugs": { - "url": "https://github.com/nordtheme/vim/issues" - }, - "license": "MIT", - "private": true, - "engines": { - "node": ">=15.13", - "npm": ">=7.7" - }, - "scripts": { - "format": "run-s format:pretty", - "format:pretty": "prettier --write .", - "lint": "run-s lint:md lint:pretty", - "lint:ci": "run-s lint:md lint:ci:*", - "lint:ci:pretty": "prettier --loglevel silent --check .", - "lint:md": "remark --no-stdout .", - "lint:pretty": "prettier --check .", - "prepare:husky": "husky install", - "prepare": "run-s prepare:*" - }, - "devDependencies": { - "@arcticicestudio/remark-preset-lint": ">=0.4.0 <1.0.0", - "husky": "8.0.3", - "lint-staged": "13.1.2", - "npm-run-all": "4.1.5", - "prettier": "^2.8.4", - "remark-cli": "11.0.0" - } -} diff --git a/vim/.config/vim/plugged/nord-vim/readme.md b/vim/.config/vim/plugged/nord-vim/readme.md deleted file mode 100644 index 57cd7e8..0000000 --- a/vim/.config/vim/plugged/nord-vim/readme.md +++ /dev/null @@ -1,150 +0,0 @@ -

- - - - - - -

- -

- - - - - - - - - -

- -

- - - - - - -

- -

An arctic, north-bluish clean and elegant Vim color theme.

- -

Designed for a fluent and clear workflow based on the Nord color palette.

- -

- - - - - -

- -Build for Vim's terminal- and GUI mode with _true colors_ with support for many third-party syntax and UI plugins including bundled themes for [lightline.vim][1] and [vim-airline][4]. - -## Getting Started - -Visit the [official website][23] to learn all about the [syntax highlighting][27] features, details and elements of [UI and editor elements][25], the [various theme configurations][24] and the [support for many plugins][26]. - -Learn about the [installation and activation][20], how to [configure][18] and [customize][19] the theme from the [official documentations][22]. - -### Quick Start - -Thanks to existing plugin/_runtimepath_ managers for Vim, Nord Vim can be installed for all platforms and the various variants/forks of Vim in a uniform way within a few lines of codes. The recommended manager is [vim-plug][2], but any other manager like [pathogen][3] or [Vundle][5] can also be used. - -To automatically download and activate Nord Vim, follow the install instructions for [vim-plug][2] and - -1. add `Plug 'nordtheme/vim'` to your [`vimrc`][28] within _vim-plug_'s plugin loading function -2. run the `:PlugInstall` command in Vim -3. activate the theme by adding `colorscheme nord` to the [vimrc][28] or change it on-the-fly by running `:colorscheme nord` - -

- - - -

- -See the Nord Vim's documentation for [more installation options][20] and how to [set it up manually][21]. - -## Features - -

- A unified UI and editor syntax element design provides a clutter-free and fluidly merging appearance.
- - - -

- -

- Small details with unobtrusive styles for popular and common code editor features like search result marker and brace matching — designed to get out of your way with a visually attractive appearance.
- - - -

- -

- Support for a wide range of programming languages — from bundled plugins up to many popular syntax and UI third-party plugins.
- - - -

- -## Contributing - -Nord is an open source project and we love to receive contributions from the [community][6]! - -There are many ways to contribute, from [writing- and improving documentation and tutorials][9], [reporting bugs][8], [submitting enhancement suggestions][10] that can be added to Nord by [submitting pull requests][14]. - -Please take a moment to read Nord's full [contributing guide][17] to learn about the development process, the project's used [styleguides][15], [branch organization][7] and [versioning][16] model. - -The guide also includes information about [minimal, complete, and verifiable examples][13] and other ways to contribute to the project like [improving existing issues][12] and [giving feedback on issues and pull requests][11]. - -

- - - - - -

- -

- Copyright © 2016-present Sven Greb -

- -

- - - - - - -

- -[1]: https://github.com/itchyny/lightline.vim -[2]: https://github.com/junegunn/vim-plug -[3]: https://github.com/tpope/vim-pathogen -[4]: https://github.com/vim-airline/vim-airline -[5]: https://github.com/tpope/vim-pathogen -[6]: https://www.nordtheme.com/community -[7]: https://github.com/nordtheme/.github/blob/main/contributing.md#branch-organization -[8]: https://github.com/nordtheme/.github/blob/main/contributing.md#bug-reports -[9]: https://github.com/nordtheme/.github/blob/main/contributing.md#documentations -[10]: https://github.com/nordtheme/.github/blob/main/contributing.md#enhancement-suggestions -[11]: https://github.com/nordtheme/.github/blob/main/contributing.md#feedback -[12]: https://github.com/nordtheme/.github/blob/main/contributing.md#improve-issues -[13]: https://github.com/nordtheme/.github/blob/main/contributing.md#mcve -[14]: https://github.com/nordtheme/.github/blob/main/contributing.md#pull-requests -[15]: https://github.com/nordtheme/.github/blob/main/contributing.md#style-guides -[16]: https://github.com/nordtheme/.github/blob/main/contributing.md#versioning -[17]: https://github.com/nordtheme/.github/blob/main/contributing.md -[18]: https://www.nordtheme.com/docs/ports/vim/configuration -[19]: https://www.nordtheme.com/docs/ports/vim/customization -[20]: https://www.nordtheme.com/docs/ports/vim/installation -[21]: https://www.nordtheme.com/docs/ports/vim/installation#manual -[22]: https://www.nordtheme.com/docs/ports/vim -[23]: https://www.nordtheme.com/ports/vim -[24]: https://www.nordtheme.com/ports/vim#configurations -[25]: https://www.nordtheme.com/ports/vim#editor-details -[26]: https://www.nordtheme.com/ports/vim#plugin-support -[27]: https://www.nordtheme.com/ports/vim#syntax -[28]: https://vimhelp.org/starting.txt.html#vimrc diff --git a/vim/.config/vim/plugged/taglist b/vim/.config/vim/plugged/taglist deleted file mode 160000 index 64456ad..0000000 --- a/vim/.config/vim/plugged/taglist +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 64456adf09b406734f00fe1dd7f9d0f9424d7aa7000000000000000000000000 diff --git a/vim/.config/vim/plugged/vim-SyntaxRange b/vim/.config/vim/plugged/vim-SyntaxRange index 3a7fd9f..78004d2 160000 --- a/vim/.config/vim/plugged/vim-SyntaxRange +++ b/vim/.config/vim/plugged/vim-SyntaxRange @@ -1 +1 @@ -Subproject commit 3a7fd9ff50fabafe61df12522ed2f275c8e2f45e000000000000000000000000 +Subproject commit 78004d2ec1d68f9d1d8b54c1803a52feb2f938f3000000000000000000000000 diff --git a/vim/.config/vim/plugged/vim-airline b/vim/.config/vim/plugged/vim-airline index ff7352e..1595731 160000 --- a/vim/.config/vim/plugged/vim-airline +++ b/vim/.config/vim/plugged/vim-airline @@ -1 +1 @@ -Subproject commit ff7352e4bff02eb600a136b6fd741404f3195371000000000000000000000000 +Subproject commit 159573187e9996d06cf26e49a533f424f4d70b43000000000000000000000000 diff --git a/vim/.config/vim/plugged/vim-airline-themes b/vim/.config/vim/plugged/vim-airline-themes deleted file mode 160000 index a9aa25c..0000000 --- a/vim/.config/vim/plugged/vim-airline-themes +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a9aa25ce323b2dd04a52706f4d1b044f4feb7617000000000000000000000000 diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/conf.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/conf.vim new file mode 100644 index 0000000..ad0c856 --- /dev/null +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/conf.vim @@ -0,0 +1 @@ +call css_color#init('hex', 'basic', 'confComment,confString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/csh.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/csh.vim index c8ecc61..04eaae8 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/csh.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/csh.vim @@ -1,4 +1,4 @@ syn match cshCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=cshComment -call css_color#init( 'hex', 'none' - \, 'cshDblQuote,cshSnglQuote,cshHereDoc,' - \. 'cshCommentColor' ) +call css_color#init('hex', 'none', + \ 'cshCommentColor,' . + \ 'cshDblQuote,cshSnglQuote,cshHereDoc') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/css.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/css.vim index 5134d23..09c3f83 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/css.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/css.vim @@ -1 +1 @@ -call css_color#init('css', 'extended', 'cssMediaBlock,cssFunction,cssDefinition,cssAttrRegion,cssComment') +call css_color#init('css', 'extended', 'cssComment,cssMediaBlock,cssFunction,cssDefinition,cssAttrRegion') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/fish.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/fish.vim index bd79512..fc37b10 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/fish.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/fish.vim @@ -1,3 +1,3 @@ " https://github.com/dag/vim-fish (and presumably its various forks) syn match fishCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=fishComment -call css_color#init( 'hex', 'none', 'fishString,fishCommentColor' ) +call css_color#init( 'hex', 'none', 'fishCommentColor,fishString' ) diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/gitconfig.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/gitconfig.vim new file mode 100644 index 0000000..75ee493 --- /dev/null +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/gitconfig.vim @@ -0,0 +1 @@ +call css_color#init('hex', 'none', 'gitConfigString,gitConfigComment') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/haskell.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/haskell.vim new file mode 100644 index 0000000..5136088 --- /dev/null +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/haskell.vim @@ -0,0 +1 @@ +call css_color#init('hex', 'none', 'haskellLineComment,haskellBlockComment,haskellString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/html.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/html.vim index 6cc6459..7b60914 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/html.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/html.vim @@ -1,2 +1,2 @@ " default html syntax should already be including the css syntax -call css_color#init('none', 'none', 'htmlString,htmlCommentPart') +call css_color#init('none', 'none', 'htmlCommentPart,htmlString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/javascript.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/javascript.vim index e94b6f7..84f5ffd 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/javascript.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/javascript.vim @@ -7,8 +7,7 @@ if &syntax =~# '\(^\|\.\)coffee\($\|\.\)' | finish | endif " javaScriptX = default Vim syntax " jsX = https://github.com/pangloss/vim-javascript " javascriptX = https://github.com/othree/yajs.vim -call css_color#init('hex', 'extended' - \, 'javaScriptComment,javaScriptLineComment,javaScriptStringS,javaScriptStringD,javaScriptStringT' - \. ',jsComment,jsString,jsTemplateString,jsObjectKeyString,jsObjectStringKey,jsClassStringKey' - \. ',javascriptComment,javascriptLineComment,javascriptLineComment,javascriptString,javascriptTemplate' - \) +call css_color#init('hex', 'extended', + \ 'javaScriptComment,javaScriptLineComment,javaScriptStringS,javaScriptStringD,javaScriptStringT,' . + \ 'jsComment,jsString,jsTemplateString,jsObjectKeyString,jsObjectStringKey,jsClassStringKey,' . + \ 'javascriptComment,javascriptLineComment,javascriptLineComment,javascriptString,javascriptTemplate') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/kitty.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/kitty.vim index 78ce6a7..c8a06d0 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/kitty.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/kitty.vim @@ -1 +1 @@ -call css_color#init('hex', 'none', 'kittyColor,kittyComment') +call css_color#init('hex', 'none', 'kittyComment,kittyColor') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/less.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/less.vim index 443ad6a..f5e4309 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/less.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/less.vim @@ -5,4 +5,4 @@ " lessVariableValue | lessDefinition | cssComment | lessComment | https://github.com/groenewege/vim-less " lessVariableDefinition | cssDefinition | cssComment | lessComment | https://github.com/lunaru/vim-less -call css_color#init('css', 'extended', 'lessVariableValue,lessVariableDefinition,lessDefinition,lessCssAttribute,lessAttribute,cssDefinition,cssComment,lessCssComment,lessComment') +call css_color#init('css', 'extended', 'lessComment,lessCssComment,cssComment,lessVariableValue,lessVariableDefinition,lessDefinition,lessCssAttribute,lessAttribute,cssDefinition') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/rasi.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/rasi.vim index 9f413b3..0bfafe0 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/rasi.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/rasi.vim @@ -1,4 +1,4 @@ " https://github.com/Fymyte/rasi.vim -call css_color#init('css', 'extended' - \, 'rasiHexColor,rasiRGBColor,rasiRGBAColor,rasiHSLColor,rasiHSLAColor,rasiNamedColor' - \. ',rasiPropertyVal,rasiComment,rasiCommentL,rasiEnvVar,rasiVarReference') +call css_color#init('css', 'extended', + \ 'rasiComment,rasiCommentL,rasiPropertyVal,rasiEnvVar,rasiVarReference,' . + \ 'rasiHexColor,rasiRGBColor,rasiRGBAColor,rasiHSLColor,rasiHSLAColor,rasiNamedColor') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/sass.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/sass.vim index 7eb2f07..3d2f42c 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/sass.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/sass.vim @@ -1 +1 @@ -call css_color#init('css', 'extended', 'sassCssAttribute,sassComment,sassCssComment') +call css_color#init('css', 'extended', 'sassComment,sassCssComment,sassCssAttribute') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/scss.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/scss.vim index 7f9f968..1f4783e 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/scss.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/scss.vim @@ -1 +1 @@ -call css_color#init('css', 'extended', 'scssAttribute,scssComment,scssVariableValue,scssMap,scssMapValue,sassCssAttribute,cssComment') +call css_color#init('css', 'extended', 'scssComment,cssComment,scssAttribute,scssVariableValue,scssMap,scssMapValue,sassCssAttribute') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/sh.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/sh.vim index 5535905..39ca898 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/sh.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/sh.vim @@ -1,6 +1,6 @@ syn match shCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=shQuickComment,shBQComment,shComment -call css_color#init( 'hex', 'none' - \, 'shSingleQuote,shDoubleQuote,shHereDoc,' - \. 'shTestSingleQuote,shTestDoubleQuote,' - \. 'shEchoQuote,shEmbeddedEcho,shEcho,' - \. 'shCommentColor' ) +call css_color#init('hex', 'none', + \ 'shCommentColor,' . + \ 'shEchoQuote,shEmbeddedEcho,shEcho,' . + \ 'shTestSingleQuote,shTestDoubleQuote,' . + \ 'shSingleQuote,shDoubleQuote,shHereDoc') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/stylus.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/stylus.vim index 6404ea8..99cac33 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/stylus.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/stylus.vim @@ -1 +1 @@ -call css_color#init('css', 'extended', 'stylusCssAttribute,stylusComment,cssComment') +call css_color#init('css', 'extended', 'stylusComment,cssComment,stylusCssAttribute') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/svg.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/svg.vim new file mode 100644 index 0000000..0d6e1f0 --- /dev/null +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/svg.vim @@ -0,0 +1 @@ +call css_color#init('rgba', 'basic', 'xmlComment,xmlCommentPart,xmlString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/tcsh.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/tcsh.vim index 1616b12..ac63675 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/tcsh.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/tcsh.vim @@ -1,4 +1,4 @@ syn match tcshCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=tcshComment -call css_color#init( 'hex', 'none' - \, 'tcshSQuote,tcshDQuote,tcshHereDoc,' - \. 'tcshCommentColor' ) +call css_color#init('hex', 'none', + \ 'tcshCommentColor,' . + \ 'tcshSQuote,tcshDQuote,tcshHereDoc' ) diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/tmux.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/tmux.vim index 53d1c74..09a00e9 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/tmux.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/tmux.vim @@ -1 +1 @@ -call css_color#init('css', 'none', 'tmuxString,tmuxComment') +call css_color#init('css', 'none', 'tmuxComment,tmuxString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/toml.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/toml.vim new file mode 100644 index 0000000..6943c2f --- /dev/null +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/toml.vim @@ -0,0 +1 @@ +call css_color#init('hex', 'basic', 'tomlComment,tomlCommentPart,tomlString') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/typescript.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/typescript.vim index 93669be..a67bf26 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/typescript.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/typescript.vim @@ -1,6 +1,5 @@ " https://github.com/HerringtonDarkholme/yats.vim (stock Vim syntax) " https://github.com/leafgarland/typescript-vim -call css_color#init('css', 'extended' - \, 'typescriptString,typescriptStringProperty,typescriptStringS,typescriptStringD,typescriptStringB,' - \. 'typescriptComment,typescriptLineComment,typescriptCommentSkip,typescriptDocComment' - \) +call css_color#init('css', 'extended', + \ 'typescriptComment,typescriptLineComment,typescriptCommentSkip,typescriptDocComment,' . + \ 'typescriptString,typescriptStringProperty,typescriptStringS,typescriptStringD,typescriptStringB') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/vim.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/vim.vim index 304ffad..f839872 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/vim.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/vim.vim @@ -1 +1 @@ -call css_color#init('hex', 'none', 'vimHiGuiRgb,vimString,vimComment,vimLineComment') +call css_color#init('hex', 'none', 'vimComment,vimLineComment,vimString,vimHiGuiRgb') diff --git a/vim/.config/vim/plugged/vim-css-color/after/syntax/zsh.vim b/vim/.config/vim/plugged/vim-css-color/after/syntax/zsh.vim index 0bb3654..a8647ba 100644 --- a/vim/.config/vim/plugged/vim-css-color/after/syntax/zsh.vim +++ b/vim/.config/vim/plugged/vim-css-color/after/syntax/zsh.vim @@ -1,4 +1,4 @@ syn match zshCommentColor contained '\(#[^#]*\)\@<=\zs#\x\{3}\%(\x\{3}\)\?\>' containedin=zshComment -call css_color#init( 'hex', 'none' - \, 'zshString,zshPOSIXString,zshHereDoc,' - \. 'zshCommentColor' ) +call css_color#init('hex', 'none', + \ 'zshCommentColor,' . + \ 'zshString,zshPOSIXString,zshHereDoc') diff --git a/vim/.config/vim/plugged/vim-css-color/autoload/css_color.vim b/vim/.config/vim/plugged/vim-css-color/autoload/css_color.vim index f7769b0..c2e4f3e 100644 --- a/vim/.config/vim/plugged/vim-css-color/autoload/css_color.vim +++ b/vim/.config/vim/plugged/vim-css-color/autoload/css_color.vim @@ -3,7 +3,7 @@ " Commit: $Format:%H$ " Licence: The MIT License (MIT) -if ! ( v:version >= 700 && has('syntax') && ( has('gui_running') || has('nvim') || &t_Co == 256 ) ) +if ! ( v:version >= 700 && has('syntax') && ( has('gui_running') || has('nvim') || &t_Co >= 256 ) ) function! css_color#init(type, keywords, groups) endfunction function! css_color#extend(groups) @@ -231,7 +231,7 @@ let s:_hexcolor = '#\(\x\{3}\%(\>\|\x\{3}\>\)\)' " submatch 1 let s:_rgbacolor = '#\(\x\{3}\%(\>\|\x\%(\>\|\x\{2}\%(\>\|\x\{2}\>\)\)\)\)' " submatch 1 let s:_funcname = '\(rgb\|hsl\)a\?' " submatch 2 let s:_ws_ = '\s*' -let s:_numval = s:_ws_ . '\(\d\{1,3}%\?\)' " submatch 3,4,5 +let s:_numval = s:_ws_ . '\(\d\{1,3}\%(%\|deg\)\?\)' " submatch 3,4,5 let s:_listsep = s:_ws_ . ',' let s:_otherargs_ = '\%(,[^)]*\)\?' let s:_funcexpr = s:_funcname . '[(]' . s:_numval . s:_listsep . s:_numval . s:_listsep . s:_numval . s:_ws_ . s:_otherargs_ . '[)]' diff --git a/vim/.config/vim/plugged/vim-easy-align/.gitattributes b/vim/.config/vim/plugged/vim-easy-align/.gitattributes deleted file mode 100644 index b47a957..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/.gitattributes +++ /dev/null @@ -1,7 +0,0 @@ -.travis.yml export-ignore -.gitattributes export-ignore -.gitignore export-ignore -doc/tags export-ignore -*.md export-ignore -zip export-ignore -test/* export-ignore diff --git a/vim/.config/vim/plugged/vim-easy-align/.gitignore b/vim/.config/vim/plugged/vim-easy-align/.gitignore deleted file mode 100644 index 9c798fd..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -doc/tags -*.zip diff --git a/vim/.config/vim/plugged/vim-easy-align/.travis.yml b/vim/.config/vim/plugged/vim-easy-align/.travis.yml deleted file mode 100644 index 4ae28e5..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: vim - -before_script: | - git clone https://github.com/junegunn/vader.vim.git - git clone https://github.com/tpope/vim-repeat - -script: | - vim -Nu <(cat << VIMRC - filetype off - set rtp+=vader.vim - set rtp+=vim-repeat - set rtp+=. - filetype plugin indent on - syntax enable - VIMRC) -c 'Vader! test/*' > /dev/null diff --git a/vim/.config/vim/plugged/vim-easy-align/EXAMPLES.md b/vim/.config/vim/plugged/vim-easy-align/EXAMPLES.md deleted file mode 100644 index 2fe5fc3..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/EXAMPLES.md +++ /dev/null @@ -1,416 +0,0 @@ -easy-align examples -=================== - -Open this document in your Vim and try it yourself. - -This document assumes that you have the following mappings in your .vimrc. - -```vim -" Start interactive EasyAlign in visual mode (e.g. vipga) -xmap ga (EasyAlign) - -" Start interactive EasyAlign for a motion/text object (e.g. gaip) -nmap ga (EasyAlign) -``` - -You can use either of the maps. Place the cursor on the paragraph and press - -- `gaip` "(ga) start easy-align on (i)nner (p)aragraph" -- or `vipga` "(v)isual-select (i)nner (p)aragraph and (ga) start easy-align" - -To enable syntax highlighting in the code blocks, define and call the following -function. - -```vim -function! GFM() - let langs = ['ruby', 'yaml', 'vim', 'c'] - - for lang in langs - unlet b:current_syntax - silent! exec printf("syntax include @%s syntax/%s.vim", lang, lang) - exec printf("syntax region %sSnip matchgroup=Snip start='```%s' end='```' contains=@%s", - \ lang, lang, lang) - endfor - let b:current_syntax='mkd' - - syntax sync fromstart -endfunction -``` - -Alignment around whitespaces ----------------------------- - -You can align text around whitespaces with `` delimiter key. - -Start the interactive mode as described above (`gaip` or `vipga`) and try -these commands: - -- `` -- `2` -- `*` -- `-` -- `-2` -- `` -- `*` -- `*` - -### Example - -``` - -Paul McCartney 1942 -George Harrison 1943 -Ringo Starr 1940 -Pete Best 1941 - -``` - -Formatting table ----------------- - -Again, start the interactive mode and try these commands: - -- `*|` -- `**|` -- `*|` -- `**|` -- `*|` - -### Example - -``` - -| Option| Type | Default | Description | -|--|--|--|--| -| threads | Fixnum | 1 | number of threads in the thread pool | -|queues |Fixnum | 1 | number of concurrent queues | -|queue_size | Fixnum | 1000 | size of each queue | -| interval | Numeric | 0 | dispatcher interval for batch processing | -|batch | Boolean | false | enables batch processing mode | - |batch_size | Fixnum | nil | number of maximum items to be assigned at once | - |logger | Logger | nil | logger instance for debug logs | - -``` - - -Alignment around = ------------------- - -The default rule for delimiter key `=` aligns around a whole family of -operators containing `=` character. - -Try these commands in the interactive mode. - -- `=` -- `*=` -- `**=` -- `**=` -- `*=` - -### Example - -```ruby - -a = -a = 1 -bbbb = 2 -ccccccc = 3 -ccccccccccccccc -ddd = 4 -eeee === eee = eee = eee=f -fff = ggg += gg &&= gg -g != hhhhhhhh == 888 -i := 5 -i %= 5 -i *= 5 -j =~ 5 -j >= 5 -aa => 123 -aa <<= 123 -aa >>= 123 -bbb => 123 -c => 1233123 -d => 123 -dddddd &&= 123 -dddddd ||= 123 -dddddd /= 123 -gg <=> ee - -``` - -Formatting YAML (or JSON) -------------------------- - -You can use `:`-rule here to align text around only the first occurrences of -colons. In this case, you don't want to align around all the colons: `*:`. - -```yaml -mysql: - # JDBC driver for MySQL database: - driver: com.mysql.jdbc.Driver - # JDBC URL for the connection (jdbc:mysql://HOSTNAME/DATABASE) - url: jdbc:mysql://localhost/test - database: test - "user:pass":r00t:pa55 -``` - -Formatting multi-line method chaining -------------------------------------- - -Try `.` or `*.` on the following lines. - -```ruby -my_object - .method1().chain() - .second_method().call() - .third().call() - .method_4().execute() -``` - -Notice that the indentation is adjusted to match the shortest one among those of -the lines starting with the delimiter. - -```ruby -my_object - .method1() .chain() - .second_method().call() - .third() .call() - .method_4() .execute() -``` - - -Using blockwise-visual mode or negative N-th parameter ------------------------------------------------------- - -You can try either: -- select text around `=>` in blockwise-visual mode (`CTRL-V`) and `ga=` -- or `gaip-=` - -```ruby -options = { :caching => nil, - :versions => 3, - "cache=blocks" => false }.merge(options) -``` - -Commas ------- - -There is also a predefined rule for commas, try `*,`. - -``` -aaa, bb,c -d,eeeeeee -fffff, gggggggggg, -h, , ii -j,,k -``` - -Ignoring delimiters in comments or strings ------------------------------------------- - -Delimiters highlighted as comments or strings are ignored by default, try -`gaip*=` on the following lines. - -```c - -/* a */ b = c -aa >= bb -// aaa = bbb = cccc -/* aaaa = */ bbbb === cccc " = dddd = " = eeee -aaaaa /* bbbbb */ == ccccc /* != eeeee = */ === fffff - -``` - -This only works when syntax highlighting is enabled. - -Aligning in-line comments -------------------------- - -*Note: Since the current version provides '#'-rule as one of the default rules, -you can ignore this section.* - -```ruby -apple = 1 # comment not aligned -banana = 'Gros Michel' # comment 2 -``` - -So, how do we align the trailing comments in the above lines? Simply try -`-`. The spaces in the comments are ignored, so the trailing comment in -each line is considered to be a single chunk. - -But that doesn't work in the following case. - -```ruby -apple = 1 # comment not aligned -apricot = 'DAD' + 'F#AD' -banana = 'Gros Michel' # comment 2 -``` - -That is because the second line doesn't have trailing comment, and -the last (`-`) space for that line is the one just before `'F#AD'`. - -So, let's define a custom mapping for `#`. - -```vim -if !exists('g:easy_align_delimiters') - let g:easy_align_delimiters = {} -endif -let g:easy_align_delimiters['#'] = { 'pattern': '#', 'ignore_groups': ['String'] } -``` - -Notice that the rule overrides `ignore_groups` attribute in order *not to ignore* -delimiters highlighted as comments. - -Then on `#`, we get - -```ruby -apple = 1 # comment not aligned -apricot = 'DAD' + 'F#AD' -banana = 'string' # comment 2 -``` - -If you don't want to define the rule, you can do the same with the following -command: - -```vim -" Using regular expression /#/ -" - "ig" is a shorthand notation of "ignore_groups" -:EasyAlign/#/{'ig':['String']} - -" Or more concisely with the shorthand notation; -:EasyAlign/#/ig['String'] -``` - -In this case, the second line is ignored as it doesn't contain a `#` (The one -in `'F#AD'` is ignored as it's highlighted as String). If you don't want the -second line to be ignored, there are three options: - -1. Set global `g:easy_align_ignore_unmatched` flag to 0 -2. Use `:EasyAlign` command with `ignore_unmatched` option -3. Update the alignment rule with `ignore_unmatched` option - -```vim -" 1. Set global g:easy_align_ignore_unmatched to zero -let g:easy_align_ignore_unmatched = 0 - -" 2. Using :EasyAlign command with ignore_unmatched option -" 2-1. Using predefined rule with delimiter key # -" - "iu" is expanded to "*i*gnore_*u*nmatched" -:EasyAlign#{'iu':0} -" or -:EasyAlign#iu0 - -" 2-2. Using regular expression /#/ -:EasyAlign/#/ig['String']iu0 - -" 3. Update the alignment rule with ignore_unmatched option -let g:easy_align_delimiters['#'] = { - \ 'pattern': '#', 'ignore_groups': ['String'], 'ignore_unmatched': 0 } -``` - -Then we get, - -```ruby -apple = 1 # comment not aligned -apricot = 'DAD' + 'F#AD' -banana = 'string' # comment 2 -``` - -Aligning C-style variable definition ------------------------------------- - -Take the following example: - -```c -const char* str = "Hello"; -int64_t count = 1 + 2; -static double pi = 3.14; -``` - -We can align these lines with the predefined `=` rule. Select the lines and -press `ga=` - -```c -const char* str = "Hello"; -int64_t count = 1 + 2; -static double pi = 3.14; -``` - -Not bad. However, the names of the variables, `str`, `count`, and `pi` are not -aligned with each other. Can we do better? We can clearly see that simple -``-rule won't properly align those names. -So let's define an alignment rule than can handle this case. - -```vim -let g:easy_align_delimiters['d'] = { -\ 'pattern': '\(const\|static\)\@* scores = pointer; -``` - -We see that our rule above doesn't work anymore. - -```c -const char* str = "Hello"; -int64_t count = 1 + 2; -static double pi = 3.14; -static std::map* scores = pointer; -``` - -So what do we do? Let's try to improve our alignment rule. - -```vim -let g:easy_align_delimiters['d'] = { -\ 'pattern': ' \ze\S\+\s*[;=]', -\ 'left_margin': 0, 'right_margin': 0 -\ } -``` - -Now the new rule has changed to align text around spaces that are followed -by some non-whitespace characters and then an equals sign or a semi-colon. -Try `vipgad` - -```c -const char* str = "Hello"; -int64_t count = 1 + 2; -static double pi = 3.14; -static std::map* scores = pointer; -``` - -We're right on track, now press `gvga=` and voila! - -```c -const char* str = "Hello"; -int64_t count = 1 + 2; -static double pi = 3.14; -static std::map* scores = pointer; -``` - diff --git a/vim/.config/vim/plugged/vim-easy-align/README.md b/vim/.config/vim/plugged/vim-easy-align/README.md deleted file mode 100644 index 0aef9ef..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/README.md +++ /dev/null @@ -1,763 +0,0 @@ -vim-easy-align ![travis-ci](https://travis-ci.org/junegunn/vim-easy-align.svg?branch=master) -============== - -A simple, easy-to-use Vim alignment plugin. - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/equals.gif) - -Installation ------------- - -Use your favorite plugin manager. - -Using [vim-plug](https://github.com/junegunn/vim-plug): - -```vim -Plug 'junegunn/vim-easy-align' -``` - -Quick start guide ------------------ - -Add the following mappings to your .vimrc. - -```vim -" Start interactive EasyAlign in visual mode (e.g. vipga) -xmap ga (EasyAlign) - -" Start interactive EasyAlign for a motion/text object (e.g. gaip) -nmap ga (EasyAlign) -``` - -Then with the following lines of text, - -``` -apple =red -grass+=green -sky-= blue -``` - -try these commands: - -- `vipga=` - - `v`isual-select `i`nner `p`aragraph - - Start EasyAlign command (`ga`) - - Align around `=` -- `gaip=` - - Start EasyAlign command (`ga`) for `i`nner `p`aragraph - - Align around `=` - -Demo ----- - -*Click on each image to see from the beginning.* - -### Using predefined alignment rules - -An *alignment rule* is a predefined set of options for common alignment tasks, -which is identified by a single character, such as ``, `=`, `:`, `.`, -`|`, `&`, `#`, and `,`. - -#### `=` - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/equals.gif) - -- `=` Around the 1st occurrences -- `2=` Around the 2nd occurrences -- `*=` Around all occurrences -- `**=` Left/Right alternating alignment around all occurrences -- `` Switching between left/right/center alignment modes - -#### `` - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/spaces.gif) - -- `` Around the 1st occurrences of whitespaces -- `2` Around the 2nd occurrences -- `-` Around the last occurrences -- `2` Center-alignment around the 2nd occurrences - -#### `,` - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/commas.gif) - -- The predefined comma-rule places a comma right next to the preceding token - without margin (`{'stick_to_left': 1, 'left_margin': 0}`) -- You can change it with `` arrow - -### Using regular expression - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/regex.gif) - -You can use an arbitrary regular expression by -- pressing `` in interactive mode -- or using `:EasyAlign /REGEX/` command in visual mode or in normal mode with - a range (e.g. `:%`) - -### Different ways to start - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/modes.gif) - -This demo shows how you can start interactive mode with visual selection or use -non-interactive `:EasyAlign` command. - -### Aligning table cells - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/tables.gif) - -Check out various alignment options and "live interactive mode". - -### Syntax-aware alignment - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/yaml.gif) - -Delimiters in strings and comments are ignored by default. - -### Using blockwise-visual mode - -![](https://raw.githubusercontent.com/junegunn/i/master/easy-align/blockwise-visual.gif) - -You can limit the scope with blockwise-visual mode. - -Usage ------ - -### Flow of execution - - - -There are two ways to use easy-align. - -#### 1. `` mappings (interactive mode) - -The recommended method is to use `(EasyAlign)` mapping in normal and -visual mode. They are usually mapped to `ga`, but you can choose any key -sequences. - -```vim -nmap ga (EasyAlign) -xmap ga (EasyAlign) -``` - -1. `ga` key in visual mode, or `ga` followed by a motion or a text - object to start interactive mode -1. (Optional) Enter keys to cycle between alignment mode (left, right, or center) -1. (Optional) N-th delimiter (default: 1) - - `1` Around the 1st occurrences of delimiters - - `2` Around the 2nd occurrences of delimiters - - ... - - `*` Around all occurrences of delimiters - - `**` Left-right alternating alignment around all delimiters - - `-` Around the last occurrences of delimiters (`-1`) - - `-2` Around the second to last occurrences of delimiters - - ... -1. Delimiter key (a single keystroke; ``, `=`, `:`, `.`, `|`, `&`, `#`, `,`) or an arbitrary regular expression followed by `` - -#### 2. Using `:EasyAlign` command - -If you prefer command-line, use `:EasyAlign` command instead. - -```vim -" Using predefined rules -:EasyAlign[!] [N-th] DELIMITER_KEY [OPTIONS] - -" Using regular expression -:EasyAlign[!] [N-th] /REGEXP/ [OPTIONS] -``` - -### Regular expression vs. predefined rules - -You can use regular expressions but it's usually much easier to use predefined -alignment rules that you can trigger with a single keystroke. - -| Key | Description/Use cases | -| --------- | -------------------------------------------------------------------- | -| `` | General alignment around whitespaces | -| `=` | Operators containing equals sign (`=`, `==,` `!=`, `+=`, `&&=`, ...) | -| `:` | Suitable for formatting JSON or YAML | -| `.` | Multi-line method chaining | -| `,` | Multi-line method arguments | -| `&` | LaTeX tables (matches `&` and `\\`) | -| `#` | Ruby/Python comments | -| `"` | Vim comments | -| `` | Table markdown | - -You can also define your own rules with `g:easy_align_delimiters` which will -be described in [the later section](#extending-alignment-rules). - ----- - -### Interactive mode - -Interactive mode is started either with `(EasyAlign)` mapping or with -`:EasyAlign` command with no argument. - -#### Examples using predefined rules - -| Keystrokes | Description | Equivalent command | -| ------------ | ---------------------------------- | --------------------- | -| `` | Around 1st whitespaces | `:'<,'>EasyAlign\ ` | -| `2` | Around 2nd whitespaces | `:'<,'>EasyAlign2\ ` | -| `-` | Around the last whitespaces | `:'<,'>EasyAlign-\ ` | -| `-2` | Around the 2nd to last whitespaces | `:'<,'>EasyAlign-2\ ` | -| `:` | Around 1st colon (`key: value`) | `:'<,'>EasyAlign:` | -| `:` | Around 1st colon (`key : value`) | `:'<,'>EasyAlign:>l1` | -| `=` | Around 1st operators with = | `:'<,'>EasyAlign=` | -| `3=` | Around 3rd operators with = | `:'<,'>EasyAlign3=` | -| `*=` | Around all operators with = | `:'<,'>EasyAlign*=` | -| `**=` | Left-right alternating around = | `:'<,'>EasyAlign**=` | -| `=` | Right alignment around 1st = | `:'<,'>EasyAlign!=` | -| `**=` | Right-left alternating around = | `:'<,'>EasyAlign!**=` | - -Instead of finishing the alignment with a delimiter key, you can type in -a regular expression if you press `` or ``. - -#### Alignment options in interactive mode - -While in interactive mode, you can set alignment options using special shortcut -keys listed below. The meaning of each option will be described in -[the following sections](#alignment-options). - -| Key | Option | Values | -| --------- | ------------------ | -------------------------------------------------- | -| `CTRL-F` | `filter` | Input string (`[gv]/.*/?`) | -| `CTRL-I` | `indentation` | shallow, deep, none, keep | -| `CTRL-L` | `left_margin` | Input number or string | -| `CTRL-R` | `right_margin` | Input number or string | -| `CTRL-D` | `delimiter_align` | left, center, right | -| `CTRL-U` | `ignore_unmatched` | 0, 1 | -| `CTRL-G` | `ignore_groups` | `[]`, `['String']`, `['Comment']`, `['String', 'Comment']` | -| `CTRL-A` | `align` | Input string (`/[lrc]+\*{0,2}/`) | -| `` | `stick_to_left` | `{ 'stick_to_left': 1, 'left_margin': 0 }` | -| `` | `stick_to_left` | `{ 'stick_to_left': 0, 'left_margin': 1 }` | -| `` | `*_margin` | `{ 'left_margin': 0, 'right_margin': 0 }` | - -#### Live interactive mode - -If you're performing a complex alignment where multiple options should be -carefully adjusted, try "live interactive mode" where you can preview the result -of the alignment on-the-fly as you type in. - -Live interactive mode can be started with either `(LiveEasyAlign)` map -or `:LiveEasyAlign` command. Or you can switch to live interactive mode while -in ordinary interactive mode by pressing ``. (P for Preview) - -In live interactive mode, you have to type in the same delimiter (or -`` on regular expression) again to finalize the alignment. This allows -you to preview the result of the alignment and freely change the delimiter -using backspace key without leaving the interactive mode. - -### :EasyAlign command - -Instead of starting interactive mode, you can use non-interactive `:EasyAlign` -command. - -```vim -" Using predefined alignment rules -" :EasyAlign[!] [N-th] DELIMITER_KEY [OPTIONS] -:EasyAlign : -:EasyAlign = -:EasyAlign *= -:EasyAlign 3\ - -" Using arbitrary regular expressions -" :EasyAlign[!] [N-th] /REGEXP/ [OPTIONS] -:EasyAlign /[:;]\+/ -:EasyAlign 2/[:;]\+/ -:EasyAlign */[:;]\+/ -:EasyAlign **/[:;]\+/ -``` - -A command can end with alignment options, [each of which will be discussed in -detail later](#alignment-options), in Vim dictionary format. - -- `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 }` - -`stick_to_left` of 1 means that the matched delimiter should be positioned right -next to the preceding token, and `left_margin` of 0 removes the margin on the -left. So we get: - - apple;: banana:: cake - data;; exchange:; format - -You don't have to write complete names as long as they're distinguishable. - -- `:EasyAlign * /[:;]\+/ { 'stl': 1, 'l': 0 }` - -You can even omit spaces between the arguments. - -- `:EasyAlign*/[:;]\+/{'s':1,'l':0}` - -Nice. But let's make it even shorter. Option values can be written in shorthand -notation. - -- `:EasyAlign*/[:;]\+/` | -| `ignore_unmatched` | `iu[01]` | -| `ignore_groups` | `ig\[.*\]` | -| `align` | `a[lrc*]*` | -| `delimiter_align` | `d[lrc]` | -| `indentation` | `i[ksdn]` | - -### Partial alignment in blockwise-visual mode - -In blockwise-visual mode (`CTRL-V`), EasyAlign command aligns only the selected -text in the block, instead of the whole lines in the range. - -Consider the following case where you want to align text around `=>` operators. - -```ruby -my_hash = { :a => 1, - :aa => 2, - :aaa => 3 } -``` - -In non-blockwise visual mode (`v` / `V`), `=` won't work since the -assignment operator in the first line gets in the way. So we instead enter -blockwise-visual mode (`CTRL-V`), and select the text *around* -`=>` operators, then press `=`. - -```ruby -my_hash = { :a => 1, - :aa => 2, - :aaa => 3 } -``` - -However, in this case, we don't really need blockwise visual mode -since the same can be easily done using the negative N-th parameter: `-=` - - -Alignment options ------------------ - -### List of options - -| Option | Type | Default | Description | -| ------------------ | ------- | --------------------- | ------------------------------------------------------- | -| `filter` | string | | Line filtering expression: `g/../` or `v/../` | -| `left_margin` | number | 1 | Number of spaces to attach before delimiter | -| `left_margin` | string | `' '` | String to attach before delimiter | -| `right_margin` | number | 1 | Number of spaces to attach after delimiter | -| `right_margin` | string | `' '` | String to attach after delimiter | -| `stick_to_left` | boolean | 0 | Whether to position delimiter on the left-side | -| `ignore_groups` | list | ['String', 'Comment'] | Delimiters in these syntax highlight groups are ignored | -| `ignore_unmatched` | boolean | 1 | Whether to ignore lines without matching delimiter | -| `indentation` | string | `k` | Indentation method (*k*eep, *d*eep, *s*hallow, *n*one) | -| `delimiter_align` | string | `r` | Determines how to align delimiters of different lengths | -| `align` | string | `l` | Alignment modes for multiple occurrences of delimiters | - -There are 4 ways to set alignment options (from lowest precedence to highest): - -1. Some option values can be set with corresponding global variables -2. Option values can be specified in the definition of each alignment rule -3. Option values can be given as arguments to `:EasyAlign` command -4. Option values can be set in interactive mode using special shortcut keys - -| Option name | Shortcut key | Abbreviated | Global variable | -| ------------------ | ------------------- | -------------- | ------------------------------- | -| `filter` | `CTRL-F` | `[gv]/.*/` | | -| `left_margin` | `CTRL-L` | `l[0-9]+` | | -| `right_margin` | `CTRL-R` | `r[0-9]+` | | -| `stick_to_left` | ``, `` | `<` or `>` | | -| `ignore_groups` | `CTRL-G` | `ig\[.*\]` | `g:easy_align_ignore_groups` | -| `ignore_unmatched` | `CTRL-U` | `iu[01]` | `g:easy_align_ignore_unmatched` | -| `indentation` | `CTRL-I` | `i[ksdn]` | `g:easy_align_indentation` | -| `delimiter_align` | `CTRL-D` | `d[lrc]` | `g:easy_align_delimiter_align` | -| `align` | `CTRL-A` | `a[lrc*]*` | | - -### Filtering lines - -With `filter` option, you can align lines that only match or do not match a -given pattern. There are several ways to set the pattern. - -1. Press `CTRL-F` in interactive mode and type in `g/pat/` or `v/pat/` -2. In command-line, it can be written in dictionary format: `{'filter': 'g/pat/'}` -3. Or in shorthand notation: `g/pat/` or `v/pat/` - -(You don't need to escape '/'s in the regular expression) - -#### Examples - -```vim -" Start interactive mode with filter option set to g/hello/ -EasyAlign g/hello/ - -" Start live interactive mode with filter option set to v/goodbye/ -LiveEasyAlign v/goodbye/ - -" Align the lines with 'hi' around the first colons -EasyAlign:g/hi/ -``` - -### Ignoring delimiters in comments or strings - -EasyAlign can be configured to ignore delimiters in certain syntax highlight -groups, such as code comments or strings. By default, delimiters that are -highlighted as code comments or strings are ignored. - -```vim -" Default: -" If a delimiter is in a highlight group whose name matches -" any of the followings, it will be ignored. -let g:easy_align_ignore_groups = ['Comment', 'String'] -``` - -For example, the following paragraph - -```ruby -{ - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape:fruits: 3 - 'grape:fruits': 3 -} -``` - -becomes as follows on `:` (or `:EasyAlign:`) - -```ruby -{ - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape:fruits: 3 - 'grape:fruits': 3 -} -``` - -Naturally, this feature only works when syntax highlighting is enabled. - -You can change the default rule by using one of these 4 methods. - -1. Press `CTRL-G` in interactive mode to switch groups -2. Define global `g:easy_align_ignore_groups` list -3. Define a custom rule in `g:easy_align_delimiters` with `ignore_groups` option -4. Provide `ignore_groups` option to `:EasyAlign` command. - e.g. `:EasyAlign:ig[]` - -For example if you set `ignore_groups` option to be an empty list, you get - -```ruby -{ - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape: fruits: 3 - 'grape: fruits': 3 -} -``` - -If a pattern in `ignore_groups` is prepended by a `!`, it will have the opposite -meaning. For instance, if `ignore_groups` is given as `['!Comment']`, delimiters -that are *not* highlighted as Comment will be ignored during the alignment. - -### Ignoring unmatched lines - -`ignore_unmatched` option determines how EasyAlign command processes lines that -do not have N-th delimiter. - -1. In left-alignment mode, they are ignored -2. In right or center-alignment mode, they are *not* ignored, and the last - tokens from those lines are aligned as well as if there is an invisible - trailing delimiter at the end of each line -3. If `ignore_unmatched` is 1, they are ignored regardless of the alignment mode -4. If `ignore_unmatched` is 0, they are *not* ignored regardless of the mode - -Let's take an example. -When we align the following code block around the (1st) colons, - -```ruby -{ - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 -} -``` - -this is usually what we want. - -```ruby -{ - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 -} -``` - -However, we can override this default behavior by setting `ignore_unmatched` -option to zero using one of the following methods. - -1. Press `CTRL-U` in interactive mode to toggle `ignore_unmatched` option -2. Set the global `g:easy_align_ignore_unmatched` variable to 0 -3. Define a custom alignment rule with `ignore_unmatched` option set to 0 -4. Provide `ignore_unmatched` option to `:EasyAlign` command. e.g. `:EasyAlign:iu0` - -Then we get, - -```ruby -{ - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 -} -``` - -### Aligning delimiters of different lengths - -Global `g:easy_align_delimiter_align` option and rule-wise/command-wise -`delimiter_align` option determines how matched delimiters of different lengths -are aligned. - -```ruby -apple = 1 -banana += apple -cake ||= banana -``` - -By default, delimiters are right-aligned as follows. - -```ruby -apple = 1 -banana += apple -cake ||= banana -``` - -However, with `:EasyAlign=dl`, delimiters are left-aligned. - -```ruby -apple = 1 -banana += apple -cake ||= banana -``` - -And on `:EasyAlign=dc`, center-aligned. - -```ruby -apple = 1 -banana += apple -cake ||= banana -``` - -In interactive mode, you can change the option value with `CTRL-D` key. - -### Adjusting indentation - -By default :EasyAlign command keeps the original indentation of the lines. But -then again we have `indentation` option. See the following example. - -```ruby -# Lines with different indentation - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -# Default: _k_eep the original indentation -# :EasyAlign= - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -# Use the _s_hallowest indentation among the lines -# :EasyAlign=is - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -# Use the _d_eepest indentation among the lines -# :EasyAlign=id - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -# Indentation: _n_one -# :EasyAlign=in -apple = 1 -banana = 2 -cake = 3 -daisy = 4 -eggplant = 5 -``` - -In interactive mode, you can change the option value with `CTRL-I` key. - -### Alignments over multiple occurrences of delimiters - -As stated above, "N-th" parameter is used to target specific occurrences of -the delimiter when it appears multiple times in each line. - -To recap: - -```vim -" Left-alignment around the FIRST occurrences of delimiters -:EasyAlign = - -" Left-alignment around the SECOND occurrences of delimiters -:EasyAlign 2= - -" Left-alignment around the LAST occurrences of delimiters -:EasyAlign -= - -" Left-alignment around ALL occurrences of delimiters -:EasyAlign *= - -" Left-right ALTERNATING alignment around all occurrences of delimiters -:EasyAlign **= - -" Right-left ALTERNATING alignment around all occurrences of delimiters -:EasyAlign! **= -``` - -In addition to these, you can fine-tune alignments over multiple occurrences -of the delimiters with 'align' option. (The option can also be set in -interactive mode with the special key `CTRL-A`) - -```vim -" Left alignment over the first two occurrences of delimiters -:EasyAlign = { 'align': 'll' } - -" Right, left, center alignment over the 1st to 3rd occurrences of delimiters -:EasyAlign = { 'a': 'rlc' } - -" Using shorthand notation -:EasyAlign = arlc - -" Right, left, center alignment over the 2nd to 4th occurrences of delimiters -:EasyAlign 2=arlc - -" (*) Repeating alignments (default: l, r, or c) -" Right, left, center, center, center, center, ... -:EasyAlign *=arlc - -" (**) Alternating alignments (default: lr or rl) -" Right, left, center, right, left, center, ... -:EasyAlign **=arlc - -" Right, left, center, center, center, ... repeating alignment -" over the 3rd to the last occurrences of delimiters -:EasyAlign 3=arlc* - -" Right, left, center, right, left, center, ... alternating alignment -" over the 3rd to the last occurrences of delimiters -:EasyAlign 3=arlc** -``` - -### Extending alignment rules - -Although the default rules should cover the most of the use cases, -you can extend the rules by setting a dictionary named `g:easy_align_delimiters`. - -You may refer to the definitions of the default alignment rules -[here](https://github.com/junegunn/vim-easy-align/blob/2.9.6/autoload/easy_align.vim#L32-L46). - -#### Examples - -```vim -let g:easy_align_delimiters = { -\ '>': { 'pattern': '>>\|=>\|>' }, -\ '/': { -\ 'pattern': '//\+\|/\*\|\*/', -\ 'delimiter_align': 'l', -\ 'ignore_groups': ['!Comment'] }, -\ ']': { -\ 'pattern': '[[\]]', -\ 'left_margin': 0, -\ 'right_margin': 0, -\ 'stick_to_left': 0 -\ }, -\ ')': { -\ 'pattern': '[()]', -\ 'left_margin': 0, -\ 'right_margin': 0, -\ 'stick_to_left': 0 -\ }, -\ 'd': { -\ 'pattern': ' \(\S\+\s*[;=]\)\@=', -\ 'left_margin': 0, -\ 'right_margin': 0 -\ } -\ } -``` - -Other options -------------- - -### Disabling &foldmethod during alignment - -[It is reported](https://github.com/junegunn/vim-easy-align/issues/14) that -`&foldmethod` value of `expr` or `syntax` can significantly slow down the -alignment when editing a large, complex file with many folds. To alleviate this -issue, EasyAlign provides an option to temporarily set `&foldmethod` to `manual` -during the alignment task. In order to enable this feature, set -`g:easy_align_bypass_fold` switch to 1. - -```vim -let g:easy_align_bypass_fold = 1 -``` - -### Left/right/center mode switch in interactive mode - -In interactive mode, you can choose the alignment mode you want by pressing -enter keys. The non-bang command, `:EasyAlign` starts in left-alignment mode -and changes to right and center mode as you press enter keys, while the bang -version first starts in right-alignment mode. - -- `:EasyAlign` - - Left, Right, Center -- `:EasyAlign!` - - Right, Left, Center - -If you do not prefer this default mode transition, you can define your own -settings as follows. - -```vim -let g:easy_align_interactive_modes = ['l', 'r'] -let g:easy_align_bang_interactive_modes = ['c', 'r'] -``` - -Advanced examples and use cases -------------------------------- - -See [EXAMPLES.md](https://github.com/junegunn/vim-easy-align/blob/master/EXAMPLES.md) -for more examples. - -Related work ------------- - -- [DrChip's Alignment Tool for Vim](http://www.drchip.org/astronaut/vim/align.html) -- [Tabular](https://github.com/godlygeek/tabular) - -Author ------- - -[Junegunn Choi](https://github.com/junegunn) - -License -------- - -MIT diff --git a/vim/.config/vim/plugged/vim-easy-align/autoload/easy_align.vim b/vim/.config/vim/plugged/vim-easy-align/autoload/easy_align.vim deleted file mode 100644 index 0fbf063..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/autoload/easy_align.vim +++ /dev/null @@ -1,1148 +0,0 @@ -" Copyright (c) 2014 Junegunn Choi -" -" MIT License -" -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be -" included in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -if exists("g:loaded_easy_align") - finish -endif -let g:loaded_easy_align = 1 - -let s:cpo_save = &cpo -set cpo&vim - -let s:easy_align_delimiters_default = { -\ ' ': { 'pattern': ' ', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0 }, -\ '=': { 'pattern': '===\|<=>\|\(&&\|||\|<<\|>>\)=\|=\~[#?]\?\|=>\|[:+/*!%^=><&|.?-]\?=[#?]\?', -\ 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 }, -\ ':': { 'pattern': ':', 'left_margin': 0, 'right_margin': 1, 'stick_to_left': 1 }, -\ ',': { 'pattern': ',', 'left_margin': 0, 'right_margin': 1, 'stick_to_left': 1 }, -\ '|': { 'pattern': '|', 'left_margin': 1, 'right_margin': 1, 'stick_to_left': 0 }, -\ '.': { 'pattern': '\.', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0 }, -\ '#': { 'pattern': '#\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] }, -\ '"': { 'pattern': '"\+', 'delimiter_align': 'l', 'ignore_groups': ['!Comment'] }, -\ '&': { 'pattern': '\\\@ winlen ? '..' : '' - - echon "\r" - let yet = 0 - for [hl, msg] in a:tokens - if empty(msg) | continue | endif - execute "echohl ". hl - let yet += len(msg) - if yet > winlen - len(ellipsis) - echon msg[ 0 : (winlen - len(ellipsis) - yet - 1) ] . ellipsis - break - else - echon msg - endif - endfor - finally - echohl None - let [&ruler, &showcmd] = xy - endtry -endfunction - -function! s:echon(l, n, r, d, o, warn) - let tokens = [ - \ ['Function', s:live ? ':LiveEasyAlign' : ':EasyAlign'], - \ ['ModeMsg', get(s:mode_labels, a:l, a:l)], - \ ['None', ' ']] - - if a:r == -1 | call add(tokens, ['Comment', '(']) | endif - call add(tokens, [a:n =~ '*' ? 'Repeat' : 'Number', a:n]) - call extend(tokens, a:r == 1 ? - \ [['Delimiter', '/'], ['String', a:d], ['Delimiter', '/']] : - \ [['Identifier', a:d == ' ' ? '\ ' : (a:d == '\' ? '\\' : a:d)]]) - if a:r == -1 | call extend(tokens, [['Normal', '_'], ['Comment', ')']]) | endif - call add(tokens, ['Statement', empty(a:o) ? '' : ' '.string(a:o)]) - if !empty(a:warn) - call add(tokens, ['WarningMsg', ' ('.a:warn.')']) - endif - - call s:echon_(tokens) - return join(map(tokens, 'v:val[1]'), '') -endfunction - -function! s:exit(msg) - call s:echon_([['ErrorMsg', a:msg]]) - throw 'exit' -endfunction - -function! s:ltrim(str) - return substitute(a:str, '^\s\+', '', '') -endfunction - -function! s:rtrim(str) - return substitute(a:str, '\s\+$', '', '') -endfunction - -function! s:trim(str) - return substitute(a:str, '^\s*\(.\{-}\)\s*$', '\1', '') -endfunction - -function! s:fuzzy_lu(key) - if has_key(s:known_options, a:key) - return a:key - endif - let key = tolower(a:key) - - " stl -> ^s.*_t.*_l.* - let regexp1 = '^' .key[0]. '.*' .substitute(key[1 : -1], '\(.\)', '_\1.*', 'g') - let matches = filter(keys(s:known_options), 'v:val =~ regexp1') - if len(matches) == 1 - return matches[0] - endif - - " stl -> ^s.*t.*l.* - let regexp2 = '^' . substitute(substitute(key, '-', '_', 'g'), '\(.\)', '\1.*', 'g') - let matches = filter(keys(s:known_options), 'v:val =~ regexp2') - - if empty(matches) - call s:exit("Unknown option key: ". a:key) - elseif len(matches) == 1 - return matches[0] - else - " Avoid ambiguity introduced by deprecated margin_left and margin_right - if sort(matches) == ['margin_left', 'margin_right', 'mode_sequence'] - return 'mode_sequence' - endif - if sort(matches) == ['ignore_groups', 'ignores'] - return 'ignore_groups' - endif - call s:exit("Ambiguous option key: ". a:key ." (" .join(matches, ', '). ")") - endif -endfunction - -function! s:shift(modes, cycle) - let item = remove(a:modes, 0) - if a:cycle || empty(a:modes) - call add(a:modes, item) - endif - return item -endfunction - -function! s:normalize_options(opts) - let ret = {} - for k in keys(a:opts) - let v = a:opts[k] - let k = s:fuzzy_lu(k) - " Backward-compatibility - if k == 'margin_left' | let k = 'left_margin' | endif - if k == 'margin_right' | let k = 'right_margin' | endif - if k == 'mode_sequence' | let k = 'align' | endif - let ret[k] = v - unlet v - endfor - return s:validate_options(ret) -endfunction - -function! s:compact_options(opts) - let ret = {} - for k in keys(a:opts) - let ret[s:shorthand[k]] = a:opts[k] - endfor - return ret -endfunction - -function! s:validate_options(opts) - for k in keys(a:opts) - let v = a:opts[k] - if index(s:known_options[k], type(v)) == -1 - call s:exit("Invalid type for option: ". k) - endif - unlet v - endfor - return a:opts -endfunction - -function! s:split_line(line, nth, modes, cycle, fc, lc, pattern, stick_to_left, ignore_unmatched, ignore_groups) - let mode = '' - - let string = a:lc ? - \ strpart(getline(a:line), a:fc - 1, a:lc - a:fc + 1) : - \ strpart(getline(a:line), a:fc - 1) - let idx = 0 - let nomagic = match(a:pattern, '\\v') > match(a:pattern, '\C\\[mMV]') - let pattern = '^.\{-}\s*\zs\('.a:pattern.(nomagic ? ')' : '\)') - let tokens = [] - let delims = [] - - " Phase 1: split - let ignorable = 0 - let token = '' - let phantom = 0 - while 1 - let matchidx = match(string, pattern, idx) - " No match - if matchidx < 0 | break | endif - let matchend = matchend(string, pattern, idx) - let spaces = matchstr(string, '\s'.(a:stick_to_left ? '*' : '\{-}'), matchend + (matchidx == matchend)) - - " Match, but empty - if len(spaces) + matchend - idx == 0 - let char = strpart(string, idx, 1) - if empty(char) | break | endif - let [match, part, delim] = [char, char, ''] - " Match - else - let match = strpart(string, idx, matchend - idx + len(spaces)) - let part = strpart(string, idx, matchidx - idx) - let delim = strpart(string, matchidx, matchend - matchidx) - endif - - let ignorable = s:highlighted_as(a:line, idx + len(part) + a:fc, a:ignore_groups) - if ignorable - let token .= match - else - let [pmode, mode] = [mode, s:shift(a:modes, a:cycle)] - call add(tokens, token . match) - call add(delims, delim) - let token = '' - endif - - let idx += len(match) - - " If the string is non-empty and ends with the delimiter, - " append an empty token to the list - if idx == len(string) - let phantom = 1 - break - endif - endwhile - - let leftover = token . strpart(string, idx) - if !empty(leftover) - let ignorable = s:highlighted_as(a:line, len(string) + a:fc - 1, a:ignore_groups) - call add(tokens, leftover) - call add(delims, '') - elseif phantom - call add(tokens, '') - call add(delims, '') - endif - let [pmode, mode] = [mode, s:shift(a:modes, a:cycle)] - - " Preserve indentation - merge first two tokens - if len(tokens) > 1 && empty(s:rtrim(tokens[0])) - let tokens[1] = tokens[0] . tokens[1] - call remove(tokens, 0) - call remove(delims, 0) - let mode = pmode - endif - - " Skip comment line - if ignorable && len(tokens) == 1 && a:ignore_unmatched - let tokens = [] - let delims = [] - " Append an empty item to enable right/center alignment of the last token - " - if the last token is not ignorable or ignorable but not the only token - elseif a:ignore_unmatched != 1 && - \ (mode ==? 'r' || mode ==? 'c') && - \ (!ignorable || len(tokens) > 1) && - \ a:nth >= 0 " includes -0 - call add(tokens, '') - call add(delims, '') - endif - - return [tokens, delims] -endfunction - -function! s:do_align(todo, modes, all_tokens, all_delims, fl, ll, fc, lc, nth, recur, dict) - let mode = a:modes[0] - let lines = {} - let min_indent = -1 - let max = { 'pivot_len2': 0, 'token_len': 0, 'just_len': 0, 'delim_len': 0, - \ 'indent': 0, 'tokens': 0, 'strip_len': 0 } - let d = a:dict - let [f, fx] = s:parse_filter(d.filter) - - " Phase 1 - for line in range(a:fl, a:ll) - let snip = a:lc > 0 ? getline(line)[a:fc-1 : a:lc-1] : getline(line) - if f == 1 && snip !~ fx - continue - elseif f == -1 && snip =~ fx - continue - endif - - if !has_key(a:all_tokens, line) - " Split line into the tokens by the delimiters - let [tokens, delims] = s:split_line( - \ line, a:nth, copy(a:modes), a:recur == 2, - \ a:fc, a:lc, d.pattern, - \ d.stick_to_left, d.ignore_unmatched, d.ignore_groups) - - " Remember tokens for subsequent recursive calls - let a:all_tokens[line] = tokens - let a:all_delims[line] = delims - else - let tokens = a:all_tokens[line] - let delims = a:all_delims[line] - endif - - " Skip empty lines - if empty(tokens) - continue - endif - - " Calculate the maximum number of tokens for a line within the range - let max.tokens = max([max.tokens, len(tokens)]) - - if a:nth > 0 " Positive N-th - if len(tokens) < a:nth - continue - endif - let nth = a:nth - 1 " make it 0-based - else " -0 or Negative N-th - if a:nth == 0 && mode !=? 'l' - let nth = len(tokens) - 1 - else - let nth = len(tokens) + a:nth - endif - if empty(delims[len(delims) - 1]) - let nth -= 1 - endif - - if nth < 0 || nth == len(tokens) - continue - endif - endif - - let prefix = nth > 0 ? join(tokens[0 : nth - 1], '') : '' - let delim = delims[nth] - let token = s:rtrim( tokens[nth] ) - let token = s:rtrim( strpart(token, 0, len(token) - len(s:rtrim(delim))) ) - if empty(delim) && !exists('tokens[nth + 1]') && d.ignore_unmatched - continue - endif - - let indent = s:strwidth(matchstr(tokens[0], '^\s*')) - if min_indent < 0 || indent < min_indent - let min_indent = indent - endif - if mode ==? 'c' - let token .= substitute(matchstr(token, '^\s*'), '\t', repeat(' ', &tabstop), 'g') - endif - let [pw, tw] = [s:strwidth(prefix), s:strwidth(token)] - let max.indent = max([max.indent, indent]) - let max.token_len = max([max.token_len, tw]) - let max.just_len = max([max.just_len, pw + tw]) - let max.delim_len = max([max.delim_len, s:strwidth(delim)]) - - if mode ==? 'c' - let pivot_len2 = pw * 2 + tw - if max.pivot_len2 < pivot_len2 - let max.pivot_len2 = pivot_len2 - endif - let max.strip_len = max([max.strip_len, s:strwidth(s:trim(token))]) - endif - let lines[line] = [nth, prefix, token, delim] - endfor - - " Phase 1-5: indentation handling (only on a:nth == 1) - if a:nth == 1 - let idt = d.indentation - if idt ==? 'd' - let indent = max.indent - elseif idt ==? 's' - let indent = min_indent - elseif idt ==? 'n' - let indent = 0 - elseif idt !=? 'k' - call s:exit('Invalid indentation: ' . idt) - end - - if idt !=? 'k' - let max.just_len = 0 - let max.token_len = 0 - let max.pivot_len2 = 0 - - for [line, elems] in items(lines) - let [nth, prefix, token, delim] = elems - - let tindent = matchstr(token, '^\s*') - while 1 - let len = s:strwidth(tindent) - if len < indent - let tindent .= repeat(' ', indent - len) - break - elseif len > indent - let tindent = tindent[0 : -2] - else - break - endif - endwhile - - let token = tindent . s:ltrim(token) - if mode ==? 'c' - let token = substitute(token, '\s*$', repeat(' ', indent), '') - endif - let [pw, tw] = [s:strwidth(prefix), s:strwidth(token)] - let max.token_len = max([max.token_len, tw]) - let max.just_len = max([max.just_len, pw + tw]) - if mode ==? 'c' - let pivot_len2 = pw * 2 + tw - if max.pivot_len2 < pivot_len2 - let max.pivot_len2 = pivot_len2 - endif - endif - - let lines[line][2] = token - endfor - endif - endif - - " Phase 2 - for [line, elems] in items(lines) - let tokens = a:all_tokens[line] - let delims = a:all_delims[line] - let [nth, prefix, token, delim] = elems - - " Remove the leading whitespaces of the next token - if len(tokens) > nth + 1 - let tokens[nth + 1] = s:ltrim(tokens[nth + 1]) - endif - - " Pad the token with spaces - let [pw, tw] = [s:strwidth(prefix), s:strwidth(token)] - let rpad = '' - if mode ==? 'l' - let pad = repeat(' ', max.just_len - pw - tw) - if d.stick_to_left - let rpad = pad - else - let token = token . pad - endif - elseif mode ==? 'r' - let pad = repeat(' ', max.just_len - pw - tw) - let indent = matchstr(token, '^\s*') - let token = indent . pad . s:ltrim(token) - elseif mode ==? 'c' - let p1 = max.pivot_len2 - (pw * 2 + tw) - let p2 = max.token_len - tw - let pf1 = s:floor2(p1) - if pf1 < p1 | let p2 = s:ceil2(p2) - else | let p2 = s:floor2(p2) - endif - let strip = s:ceil2(max.token_len - max.strip_len) / 2 - let indent = matchstr(token, '^\s*') - let token = indent. repeat(' ', pf1 / 2) .s:ltrim(token). repeat(' ', p2 / 2) - let token = substitute(token, repeat(' ', strip) . '$', '', '') - - if d.stick_to_left - if empty(s:rtrim(token)) - let center = len(token) / 2 - let [token, rpad] = [strpart(token, 0, center), strpart(token, center)] - else - let [token, rpad] = [s:rtrim(token), matchstr(token, '\s*$')] - endif - endif - endif - let tokens[nth] = token - - " Pad the delimiter - let dpadl = max.delim_len - s:strwidth(delim) - let da = d.delimiter_align - if da ==? 'l' - let [dl, dr] = ['', repeat(' ', dpadl)] - elseif da ==? 'c' - let dl = repeat(' ', dpadl / 2) - let dr = repeat(' ', dpadl - dpadl / 2) - elseif da ==? 'r' - let [dl, dr] = [repeat(' ', dpadl), ''] - else - call s:exit('Invalid delimiter_align: ' . da) - endif - - " Before and after the range (for blockwise visual mode) - let cline = getline(line) - let before = strpart(cline, 0, a:fc - 1) - let after = a:lc ? strpart(cline, a:lc) : '' - - " Determine the left and right margin around the delimiter - let rest = join(tokens[nth + 1 : -1], '') - let nomore = empty(rest.after) - let ml = (empty(prefix . token) || empty(delim) && nomore) ? '' : d.ml - let mr = nomore ? '' : d.mr - - " Adjust indentation of the lines starting with a delimiter - let lpad = '' - if nth == 0 - let ipad = repeat(' ', min_indent - s:strwidth(token.ml)) - if mode ==? 'l' - let token = ipad . token - else - let lpad = ipad - endif - endif - - " Align the token - let aligned = join([lpad, token, ml, dl, delim, dr, mr, rpad], '') - let tokens[nth] = aligned - - " Update the line - let a:todo[line] = before.join(tokens, '').after - endfor - - if a:nth < max.tokens && (a:recur || len(a:modes) > 1) - call s:shift(a:modes, a:recur == 2) - return [a:todo, a:modes, a:all_tokens, a:all_delims, - \ a:fl, a:ll, a:fc, a:lc, a:nth + 1, a:recur, a:dict] - endif - return [a:todo] -endfunction - -function! s:input(str, default, vis) - if a:vis - normal! gv - redraw - execute "normal! \" - else - " EasyAlign command can be called without visual selection - redraw - endif - let got = input(a:str, a:default) - return got -endfunction - -function! s:atoi(str) - return (a:str =~ '^[0-9]\+$') ? str2nr(a:str) : a:str -endfunction - -function! s:shift_opts(opts, key, vals) - let val = s:shift(a:vals, 1) - if type(val) == 0 && val == -1 - call remove(a:opts, a:key) - else - let a:opts[a:key] = val - endif -endfunction - -function! s:interactive(range, modes, n, d, opts, rules, vis, bvis) - let mode = s:shift(a:modes, 1) - let n = a:n - let d = a:d - let ch = '' - let opts = s:compact_options(a:opts) - let vals = deepcopy(s:option_values) - let regx = 0 - let warn = '' - let undo = 0 - - while 1 - " Live preview - let rdrw = 0 - if undo - silent! undo - let undo = 0 - let rdrw = 1 - endif - if s:live && !empty(d) - let output = s:process(a:range, mode, n, d, s:normalize_options(opts), regx, a:rules, a:bvis) - let &undolevels = &undolevels " Break undo block - call s:update_lines(output.todo) - let undo = !empty(output.todo) - let rdrw = 1 - endif - if rdrw - if a:vis - normal! gv - endif - redraw - if a:vis | execute "normal! \" | endif - endif - call s:echon(mode, n, -1, regx ? '/'.d.'/' : d, opts, warn) - - let check = 0 - let warn = '' - - try - let c = getchar() - catch /^Vim:Interrupt$/ - let c = 27 - endtry - let ch = nr2char(c) - if c == 3 || c == 27 " CTRL-C / ESC - if undo - silent! undo - endif - throw 'exit' - elseif c == "\" - if !empty(d) - let d = '' - let regx = 0 - elseif len(n) > 0 - let n = strpart(n, 0, len(n) - 1) - endif - elseif c == 13 " Enter key - let mode = s:shift(a:modes, 1) - if has_key(opts, 'a') - let opts.a = mode . strpart(opts.a, 1) - endif - elseif ch == '-' - if empty(n) | let n = '-' - elseif n == '-' | let n = '' - else | let check = 1 - endif - elseif ch == '*' - if empty(n) | let n = '*' - elseif n == '*' | let n = '**' - elseif n == '**' | let n = '' - else | let check = 1 - endif - elseif empty(d) && ((c == 48 && len(n) > 0) || c > 48 && c <= 57) " Numbers - if n[0] == '*' | let check = 1 - else | let n = n . ch - end - elseif ch == "\" - call s:shift_opts(opts, 'da', vals['delimiter_align']) - elseif ch == "\" - call s:shift_opts(opts, 'idt', vals['indentation']) - elseif ch == "\" - let lm = s:input("Left margin: ", get(opts, 'lm', ''), a:vis) - if empty(lm) - let warn = 'Set to default. Input 0 to remove it' - silent! call remove(opts, 'lm') - else - let opts['lm'] = s:atoi(lm) - endif - elseif ch == "\" - let rm = s:input("Right margin: ", get(opts, 'rm', ''), a:vis) - if empty(rm) - let warn = 'Set to default. Input 0 to remove it' - silent! call remove(opts, 'rm') - else - let opts['rm'] = s:atoi(rm) - endif - elseif ch == "\" - call s:shift_opts(opts, 'iu', vals['ignore_unmatched']) - elseif ch == "\" - call s:shift_opts(opts, 'ig', vals['ignore_groups']) - elseif ch == "\" - if s:live - if !empty(d) - let ch = d - break - else - let s:live = 0 - endif - else - let s:live = 1 - endif - elseif c == "\" - let opts['stl'] = 1 - let opts['lm'] = 0 - elseif c == "\" - let opts['stl'] = 0 - let opts['lm'] = 1 - elseif c == "\" - let opts['lm'] = 0 - let opts['rm'] = 0 - elseif c == "\" - silent! call remove(opts, 'stl') - silent! call remove(opts, 'lm') - silent! call remove(opts, 'rm') - elseif ch == "\" || ch == "\" - let modes = tolower(s:input("Alignment ([lrc...][[*]*]): ", get(opts, 'a', mode), a:vis)) - if match(modes, '^[lrc]\+\*\{0,2}$') != -1 - let opts['a'] = modes - let mode = modes[0] - while mode != s:shift(a:modes, 1) - endwhile - else - silent! call remove(opts, 'a') - endif - elseif ch == "\" || ch == "\" - if s:live && regx && !empty(d) - break - endif - - let prompt = 'Regular expression: ' - let ch = s:input(prompt, '', a:vis) - if !empty(ch) && s:valid_regexp(ch) - let regx = 1 - let d = ch - if !s:live | break | endif - else - let warn = 'Invalid regular expression: '.ch - endif - elseif ch == "\" - let f = s:input("Filter (g/../ or v/../): ", get(opts, 'f', ''), a:vis) - let m = matchlist(f, '^[gv]/\(.\{-}\)/\?$') - if empty(f) - silent! call remove(opts, 'f') - elseif !empty(m) && s:valid_regexp(m[1]) - let opts['f'] = f - else - let warn = 'Invalid filter expression' - endif - elseif ch =~ '[[:print:]]' - let check = 1 - else - let warn = 'Invalid character' - endif - - if check - if empty(d) - if has_key(a:rules, ch) - let d = ch - if !s:live - if a:vis - execute "normal! gv\" - endif - break - endif - else - let warn = 'Unknown delimiter key: '.ch - endif - else - if regx - let warn = 'Press to finish' - else - if d == ch - break - else - let warn = 'Press '''.d.''' again to finish' - endif - end - endif - endif - endwhile - if s:live - let copts = call('s:summarize', output.summarize) - let s:live = 0 - let g:easy_align_last_command = s:echon('', n, regx, d, copts, '') - let s:live = 1 - end - return [mode, n, ch, opts, regx] -endfunction - -function! s:valid_regexp(regexp) - try - call matchlist('', a:regexp) - catch - return 0 - endtry - return 1 -endfunction - -function! s:test_regexp(regexp) - let regexp = empty(a:regexp) ? @/ : a:regexp - if !s:valid_regexp(regexp) - call s:exit('Invalid regular expression: '. regexp) - endif - return regexp -endfunction - -let s:shorthand_regex = - \ '\s*\%(' - \ .'\(lm\?[0-9]\+\)\|\(rm\?[0-9]\+\)\|\(iu[01]\)\|\(\%(s\%(tl\)\?[01]\)\|[<>]\)\|' - \ .'\(da\?[clr]\)\|\(\%(ms\?\|a\)[lrc*]\+\)\|\(i\%(dt\)\?[kdsn]\)\|\([gv]/.*/\)\|\(ig\[.*\]\)' - \ .'\)\+\s*$' - -function! s:parse_shorthand_opts(expr) - let opts = {} - let expr = substitute(a:expr, '\s', '', 'g') - let regex = '^'. s:shorthand_regex - - if empty(expr) - return opts - elseif expr !~ regex - call s:exit("Invalid expression: ". a:expr) - else - let match = matchlist(expr, regex) - for m in filter(match[ 1 : -1 ], '!empty(v:val)') - for key in ['lm', 'rm', 'l', 'r', 'stl', 's', '<', '>', 'iu', 'da', 'd', 'ms', 'm', 'ig', 'i', 'g', 'v', 'a'] - if stridx(tolower(m), key) == 0 - let rest = strpart(m, len(key)) - if key == 'i' | let key = 'idt' | endif - if key == 'g' || key == 'v' - let rest = key.rest - let key = 'f' - endif - - if key == 'idt' || index(['d', 'f', 'm', 'a'], key[0]) >= 0 - let opts[key] = rest - elseif key == 'ig' - try - let arr = eval(rest) - if type(arr) == 3 - let opts[key] = arr - else - throw 'Not an array' - endif - catch - call s:exit("Invalid ignore_groups: ". a:expr) - endtry - elseif key =~ '[<>]' - let opts['stl'] = key == '<' - else - let opts[key] = str2nr(rest) - endif - break - endif - endfor - endfor - endif - return s:normalize_options(opts) -endfunction - -function! s:parse_args(args) - if empty(a:args) - return ['', '', {}, 0] - endif - let n = '' - let ch = '' - let args = a:args - let cand = '' - let opts = {} - - " Poor man's option parser - let idx = 0 - while 1 - let midx = match(args, '\s*{.*}\s*$', idx) - if midx == -1 | break | endif - - let cand = strpart(args, midx) - try - let [l, r, c, k, s, d, n] = ['l', 'r', 'c', 'k', 's', 'd', 'n'] - let [L, R, C, K, S, D, N] = ['l', 'r', 'c', 'k', 's', 'd', 'n'] - let o = eval(cand) - if type(o) == 4 - let opts = o - if args[midx - 1 : midx] == '\ ' - let midx += 1 - endif - let args = strpart(args, 0, midx) - break - endif - catch - " Ignore - endtry - let idx = midx + 1 - endwhile - - " Invalid option dictionary - if len(substitute(cand, '\s', '', 'g')) > 2 && empty(opts) - call s:exit("Invalid option: ". cand) - else - let opts = s:normalize_options(opts) - endif - - " Shorthand option notation - let sopts = matchstr(args, s:shorthand_regex) - if !empty(sopts) - let args = strpart(args, 0, len(args) - len(sopts)) - let opts = extend(s:parse_shorthand_opts(sopts), opts) - endif - - " Has /Regexp/? - let matches = matchlist(args, '^\(.\{-}\)\s*/\(.*\)/\s*$') - - " Found regexp - if !empty(matches) - return [matches[1], s:test_regexp(matches[2]), opts, 1] - else - let tokens = matchlist(args, '^\([1-9][0-9]*\|-[0-9]*\|\*\*\?\)\?\s*\(.\{-}\)\?$') - " Try swapping n and ch - let [n, ch] = empty(tokens[2]) ? reverse(tokens[1:2]) : tokens[1:2] - - " Resolving command-line ambiguity - " '\ ' => ' ' - " '\' => ' ' - if ch =~ '^\\\s*$' - let ch = ' ' - " '\\' => '\' - elseif ch =~ '^\\\\\s*$' - let ch = '\' - endif - - return [n, ch, opts, 0] - endif -endfunction - -function! s:parse_filter(f) - let m = matchlist(a:f, '^\([gv]\)/\(.\{-}\)/\?$') - if empty(m) - return [0, ''] - else - return [m[1] == 'g' ? 1 : -1, m[2]] - endif -endfunction - -function! s:interactive_modes(bang) - return get(g:, - \ (a:bang ? 'easy_align_bang_interactive_modes' : 'easy_align_interactive_modes'), - \ (a:bang ? ['r', 'l', 'c'] : ['l', 'r', 'c'])) -endfunction - -function! s:alternating_modes(mode) - return a:mode ==? 'r' ? 'rl' : 'lr' -endfunction - -function! s:update_lines(todo) - for [line, content] in items(a:todo) - call setline(line, s:rtrim(content)) - endfor -endfunction - -function! s:parse_nth(n) - let n = a:n - let recur = 0 - if n == '*' | let [nth, recur] = [1, 1] - elseif n == '**' | let [nth, recur] = [1, 2] - elseif n == '-' | let nth = -1 - elseif empty(n) | let nth = 1 - elseif n == '0' || ( n != '-0' && n != string(str2nr(n)) ) - call s:exit('Invalid N-th parameter: '. n) - else - let nth = n - endif - return [nth, recur] -endfunction - -function! s:build_dict(delimiters, ch, regexp, opts) - if a:regexp - let dict = { 'pattern': a:ch } - else - if !has_key(a:delimiters, a:ch) - call s:exit('Unknown delimiter key: '. a:ch) - endif - let dict = copy(a:delimiters[a:ch]) - endif - call extend(dict, a:opts) - - let ml = get(dict, 'left_margin', ' ') - let mr = get(dict, 'right_margin', ' ') - if type(ml) == 0 | let ml = repeat(' ', ml) | endif - if type(mr) == 0 | let mr = repeat(' ', mr) | endif - call extend(dict, { 'ml': ml, 'mr': mr }) - - let dict.pattern = get(dict, 'pattern', a:ch) - let dict.delimiter_align = - \ get(dict, 'delimiter_align', get(g:, 'easy_align_delimiter_align', 'r'))[0] - let dict.indentation = - \ get(dict, 'indentation', get(g:, 'easy_align_indentation', 'k'))[0] - let dict.stick_to_left = - \ get(dict, 'stick_to_left', 0) - let dict.ignore_unmatched = - \ get(dict, 'ignore_unmatched', get(g:, 'easy_align_ignore_unmatched', 2)) - let dict.ignore_groups = - \ get(dict, 'ignore_groups', get(dict, 'ignores', s:ignored_syntax())) - let dict.filter = - \ get(dict, 'filter', '') - return dict -endfunction - -function! s:build_mode_sequence(expr, recur) - let [expr, recur] = [a:expr, a:recur] - let suffix = matchstr(a:expr, '\*\+$') - if suffix == '*' - let expr = expr[0 : -2] - let recur = 1 - elseif suffix == '**' - let expr = expr[0 : -3] - let recur = 2 - endif - return [tolower(expr), recur] -endfunction - -function! s:process(range, mode, n, ch, opts, regexp, rules, bvis) - let [nth, recur] = s:parse_nth((empty(a:n) && exists('g:easy_align_nth')) ? g:easy_align_nth : a:n) - let dict = s:build_dict(a:rules, a:ch, a:regexp, a:opts) - let [mode_sequence, recur] = s:build_mode_sequence( - \ get(dict, 'align', recur == 2 ? s:alternating_modes(a:mode) : a:mode), - \ recur) - - let ve = &virtualedit - set ve=all - let args = [ - \ {}, split(mode_sequence, '\zs'), - \ {}, {}, a:range[0], a:range[1], - \ a:bvis ? min([virtcol("'<"), virtcol("'>")]) : 1, - \ (!recur && a:bvis) ? max([virtcol("'<"), virtcol("'>")]) : 0, - \ nth, recur, dict ] - let &ve = ve - while len(args) > 1 - let args = call('s:do_align', args) - endwhile - - " todo: lines to update - " summarize: arguments to s:summarize - return { 'todo': args[0], 'summarize': [ a:opts, recur, mode_sequence ] } -endfunction - -function s:summarize(opts, recur, mode_sequence) - let copts = s:compact_options(a:opts) - let nbmode = s:interactive_modes(0)[0] - if !has_key(copts, 'a') && ( - \ (a:recur == 2 && s:alternating_modes(nbmode) != a:mode_sequence) || - \ (a:recur != 2 && (a:mode_sequence[0] != nbmode || len(a:mode_sequence) > 1)) - \ ) - call extend(copts, { 'a': a:mode_sequence }) - endif - return copts -endfunction - -function! s:align(bang, live, visualmode, first_line, last_line, expr) - " Heuristically determine if the user was in visual mode - if a:visualmode == 'command' - let vis = a:first_line == line("'<") && a:last_line == line("'>") - let bvis = vis && visualmode() == "\" - elseif empty(a:visualmode) - let vis = 0 - let bvis = 0 - else - let vis = 1 - let bvis = a:visualmode == "\" - end - let range = [a:first_line, a:last_line] - let modes = s:interactive_modes(a:bang) - let mode = modes[0] - let s:live = a:live - - let rules = s:easy_align_delimiters_default - if exists('g:easy_align_delimiters') - let rules = extend(copy(rules), g:easy_align_delimiters) - endif - - let [n, ch, opts, regexp] = s:parse_args(a:expr) - - let bypass_fold = get(g:, 'easy_align_bypass_fold', 0) - let ofm = &l:foldmethod - try - if bypass_fold | let &l:foldmethod = 'manual' | endif - - if empty(n) && empty(ch) || s:live - let [mode, n, ch, opts, regexp] = s:interactive(range, copy(modes), n, ch, opts, rules, vis, bvis) - endif - - if !s:live - let output = s:process(range, mode, n, ch, s:normalize_options(opts), regexp, rules, bvis) - call s:update_lines(output.todo) - let copts = call('s:summarize', output.summarize) - let g:easy_align_last_command = s:echon('', n, regexp, ch, copts, '') - endif - finally - if bypass_fold | let &l:foldmethod = ofm | endif - endtry -endfunction - -function! easy_align#align(bang, live, visualmode, expr) range - try - call s:align(a:bang, a:live, a:visualmode, a:firstline, a:lastline, a:expr) - catch /^\%(Vim:Interrupt\|exit\)$/ - if empty(a:visualmode) - echon "\r" - echon "\r" - else - normal! gv - endif - endtry -endfunction - -let &cpo = s:cpo_save -unlet s:cpo_save - diff --git a/vim/.config/vim/plugged/vim-easy-align/doc/easy_align.txt b/vim/.config/vim/plugged/vim-easy-align/doc/easy_align.txt deleted file mode 100644 index 7f777b3..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/doc/easy_align.txt +++ /dev/null @@ -1,891 +0,0 @@ -*easy-align.txt* easy-align Last change: December 14 2014 -EASY-ALIGN - TABLE OF CONTENTS *easyalign* *easy-align* *easy-align-toc* -============================================================================== - - vim-easy-align - Demo |easy-align-1| - Features |easy-align-2| - Installation |easy-align-3| - TLDR - One-minute guide |easy-align-4| - Usage |easy-align-5| - Concept of alignment rule |easy-align-5-1| - Execution models |easy-align-5-2| - 1. Using mappings |easy-align-5-2-1| - 2. Using :EasyAlign command |easy-align-5-2-2| - Interactive mode |easy-align-5-3| - Predefined alignment rules |easy-align-5-3-1| - Examples |easy-align-5-3-2| - Using regular expressions |easy-align-5-3-3| - Alignment options in interactive mode |easy-align-5-3-4| - Live interactive mode |easy-align-5-4| - Non-interactive mode |easy-align-5-5| - Partial alignment in blockwise-visual mode |easy-align-5-6| - Alignment options |easy-align-6| - List of options |easy-align-6-1| - Filtering lines |easy-align-6-2| - Examples |easy-align-6-2-1| - Ignoring delimiters in comments or strings |easy-align-6-3| - Ignoring unmatched lines |easy-align-6-4| - Aligning delimiters of different lengths |easy-align-6-5| - Adjusting indentation |easy-align-6-6| - Alignments over multiple occurrences of delimiters |easy-align-6-7| - Extending alignment rules |easy-align-6-8| - Examples |easy-align-6-8-1| - Other options |easy-align-7| - Disabling &foldmethod during alignment |easy-align-7-1| - Left/right/center mode switch in interactive mode |easy-align-7-2| - Advanced examples and use cases |easy-align-8| - Related work |easy-align-9| - Author |easy-align-10| - License |easy-align-11| - - -VIM-EASY-ALIGN *vim-easy-align* -============================================================================== - -A simple, easy-to-use Vim alignment plugin. - - - *easy-align-1* -DEMO *easy-align-demo* -============================================================================== - -Screencast: -https://raw.githubusercontent.com/junegunn/i/master/vim-easy-align.gif - -(Too fast? Slower GIF is {here}{1}) - -{1} https://raw.githubusercontent.com/junegunn/i/master/vim-easy-align-slow.gif - - - *easy-align-2* -FEATURES *easy-align-features* -============================================================================== - - - Easy to use - - Comes with a predefined set of alignment rules - - Provides a fast and intuitive interface - - Extensible - - You can define your own rules - - Supports arbitrary regular expressions - - Optimized for code editing - - Takes advantage of syntax highlighting feature to avoid unwanted - alignments - - - *easy-align-3* -INSTALLATION *easy-align-installation* -============================================================================== - -Use your favorite plugin manager. - -Using {vim-plug}{2}: -> - Plug 'junegunn/vim-easy-align' -< - {2} https://github.com/junegunn/vim-plug - - - *easy-align-4* -TLDR - ONE-MINUTE GUIDE *easy-align-tldr-one-minute-guide* -============================================================================== - -Add the following mappings to your .vimrc. - - *(EasyAlign)* -> - " Start interactive EasyAlign in visual mode (e.g. vip) - vmap (EasyAlign) - - " Start interactive EasyAlign for a motion/text object (e.g. gaip) - nmap ga (EasyAlign) -< -And with the following lines of text, -> - apple =red - grass+=green - sky-= blue -< -try these commands: - - - vip= - - `v`isual-select `i`nner `p`aragraph - - Start EasyAlign command () - - Align around `=` - - `gaip=` - - Start EasyAlign command (`ga`) for `i`nner `p`aragraph - - Align around `=` - -Notice that the commands are repeatable with `.` key if you have installed -{repeat.vim}{3}. Install {visualrepeat}{4} as well if you want to repeat in -visual mode. - - {3} https://github.com/tpope/vim-repeat - {4} https://github.com/vim-scripts/visualrepeat - - - *easy-align-5* -USAGE *easy-align-usage* -============================================================================== - - -< Concept of alignment rule >_________________________________________________~ - *easy-align-concept-of-alignment-rule* - *easy-align-5-1* - -Though easy-align can align lines of text around any delimiter, it provides -shortcuts for the most common use cases with the concept of "alignment rule". - -An alignment rule is a predefined set of options for common alignment tasks, -which is identified by a single character, DELIMITER KEY, such as , -`=`, `:`, `.`, `|`, `&`, `#`, and `,`. - -Think of it as a shortcut. Instead of writing regular expression and setting -several options, you can just type in a single character. - - -< Execution models >__________________________________________________________~ - *easy-align-execution-models* - *easy-align-5-2* - -There are two ways to use easy-align. - - -1. Using mappings~ - *easy-align-1-using-plug-mappings* - *easy-align-5-2-1* - -The recommended method is to use mappings as described earlier. - - *(LiveEasyAlign)* - - ----------------------+--------+----------------------------------------------------- - Mapping | Mode | Description ~ - ----------------------+--------+----------------------------------------------------- - (EasyAlign) | normal | Start interactive mode for a motion/text object - (EasyAlign) | visual | Start interactive mode for the selection - (LiveEasyAlign) | normal | Start live-interactive mode for a motion/text object - (LiveEasyAlign) | visual | Start live-interactive mode for the selection - ----------------------+--------+----------------------------------------------------- - - -2. Using :EasyAlign command~ - *easy-align-2-using-easyalign-command* - *easy-align-5-2-2* - - *:EasyAlign* - -If you prefer command-line or do not want to start interactive mode, you can -use `:EasyAlign` command instead. - - *:LiveEasyAlign* - - -------------------------------------------+----------------------------------------------- - Mode | Command ~ - -------------------------------------------+----------------------------------------------- - Interactive mode | `:EasyAlign[!] [OPTIONS]` - Live interactive mode | `:LiveEasyAlign[!] [...]` - Non-interactive mode (predefined rules) | `:EasyAlign[!] [N-th] DELIMITER_KEY [OPTIONS]` - Non-interactive mode (regular expressions) | `:EasyAlign[!] [N-th] /REGEXP/ [OPTIONS]` - -------------------------------------------+----------------------------------------------- - - -< Interactive mode >__________________________________________________________~ - *easy-align-interactive-mode* - *easy-align-5-3* - -The following sections will assume that you have (EasyAlign) mappings in -your .vimrc as below: -> - " Start interactive EasyAlign in visual mode (e.g. vip) - vmap (EasyAlign) - - " Start interactive EasyAlign for a motion/text object (e.g. gaip) - nmap ga (EasyAlign) -< -With these mappings, you can align text with only a few keystrokes. - - 1. key in visual mode, or `ga` followed by a motion or a text object to - start interactive mode - 2. Optional: Enter keys to select alignment mode (left, right, or center) - 3. Optional: N-th delimiter (default: 1) - - `1` Around the 1st occurrences of delimiters - - `2` Around the 2nd occurrences of delimiters - - ... - - `*` Around all occurrences of delimiters - - `**` Left-right alternating alignment around all delimiters - - `-` Around the last occurrences of delimiters (`-1`) - - `-2` Around the second to last occurrences of delimiters - - ... - 4. Delimiter key (a single keystroke; , `=`, `:`, `.`, `|`, `&`, `#`, `,`) - - -Predefined alignment rules~ - *easy-align-predefined-alignment-rules* - *easy-align-5-3-1* - - --------------+-------------------------------------------------------------------- - Delimiter key | Description/Use cases ~ - --------------+-------------------------------------------------------------------- - | General alignment around whitespaces - `=` | Operators containing equals sign ( `=` , `==,` `!=` , `+=` , `&&=` , ...) - `:` | Suitable for formatting JSON or YAML - `.` | Multi-line method chaining - `,` | Multi-line method arguments - `&` | LaTeX tables (matches `&` and `\\` ) - `#` | Ruby/Python comments - `"` | Vim comments - | Table markdown - --------------+-------------------------------------------------------------------- - - *g:easy_align_delimiters* - -You can override these default rules or define your own rules with -`g:easy_align_delimiters`, which will be described in {the later section}{5}. - - {5} https://github.com/junegunn/vim-easy-align#extending-alignment-rules - - -Examples~ - *easy-align-examples* - *easy-align-5-3-2* - - ------------------+------------------------------------+-------------------- - With visual map | Description | Equivalent command ~ - ------------------+------------------------------------+-------------------- - | Around 1st whitespaces | :'<,'>EasyAlign\ - 2 | Around 2nd whitespaces | :'<,'>EasyAlign2\ - - | Around the last whitespaces | :'<,'>EasyAlign-\ - -2 | Around the 2nd to last whitespaces | :'<,'>EasyAlign-2\ - : | Around 1st colon ( `key: value` ) | :'<,'>EasyAlign: - : | Around 1st colon ( `key : value` ) | :'<,'>EasyAlign:= | Around 1st operators with = | :'<,'>EasyAlign= - 3= | Around 3rd operators with = | :'<,'>EasyAlign3= - *= | Around all operators with = | :'<,'>EasyAlign*= - **= | Left-right alternating around = | :'<,'>EasyAlign**= - = | Right alignment around 1st = | :'<,'>EasyAlign!= - **= | Right-left alternating around = | :'<,'>EasyAlign!**= - ------------------+------------------------------------+-------------------- - - -Using regular expressions~ - *easy-align-using-regular-expressions* - *easy-align-5-3-3* - -Instead of finishing the command with a predefined delimiter key, you can type -in a regular expression after CTRL-/ or CTRL-X key. For example, if you want -to align text around all occurrences of numbers: - - - - - `*` - - CTRL-X - - `[0-9]\+` - - -Alignment options in interactive mode~ - *easy-align-alignment-options-in-interactive-mode* - *easy-align-5-3-4* - -While in interactive mode, you can set alignment options using special -shortcut keys listed below. The meaning of each option will be described in -{the following sections}{6}. - - --------+--------------------+--------------------------------------------------- - Key | Option | Values ~ - --------+--------------------+--------------------------------------------------- - CTRL-F | `filter` | Input string ( `[gv]/.*/?` ) - CTRL-I | `indentation` | shallow, deep, none, keep - CTRL-L | `left_margin` | Input number or string - CTRL-R | `right_margin` | Input number or string - CTRL-D | `delimiter_align` | left, center, right - CTRL-U | `ignore_unmatched` | 0, 1 - CTRL-G | `ignore_groups` | [], ["String'], ["Comment'], ["String', "Comment'] - CTRL-A | `align` | Input string ( `/[lrc]+\*{0,2}/` ) - | `stick_to_left` | `{ 'stick_to_left': 1, 'left_margin': 0 }` - | `stick_to_left` | `{ 'stick_to_left': 0, 'left_margin': 1 }` - | `*_margin` | `{ 'left_margin': 0, 'right_margin': 0 }` - --------+--------------------+--------------------------------------------------- - - {6} https://github.com/junegunn/vim-easy-align#alignment-options - - -< Live interactive mode >_____________________________________________________~ - *easy-align-live-interactive-mode* - *easy-align-5-4* - -If you're performing a complex alignment where multiple options should be -carefully adjusted, try "live interactive mode" where you can preview the -result of the alignment on-the-fly as you type in. - -Live interactive mode can be started with either (LiveEasyAlign) map or -`:LiveEasyAlign` command. Or you can switch to live interactive mode while in -ordinary interactive mode by pressing CTRL-P. (P for Preview) - -In live interactive mode, you have to type in the same delimiter (or CTRL-X on -regular expression) again to finalize the alignment. This allows you to -preview the result of the alignment and freely change the delimiter using -backspace key without leaving the interactive mode. - - -< Non-interactive mode >______________________________________________________~ - *easy-align-non-interactive-mode* - *easy-align-5-5* - -Instead of starting interactive mode, you can use declarative, non-interactive -`:EasyAlign` command. -> - " Using predefined alignment rules - " :EasyAlign[!] [N-th] DELIMITER_KEY [OPTIONS] - :EasyAlign : - :EasyAlign = - :EasyAlign *= - :EasyAlign 3\ - - " Using arbitrary regular expressions - " :EasyAlign[!] [N-th] /REGEXP/ [OPTIONS] - :EasyAlign /[:;]\+/ - :EasyAlign 2/[:;]\+/ - :EasyAlign */[:;]\+/ - :EasyAlign **/[:;]\+/ -< -A command can end with alignment options, {each of which will be discussed in -detail later}{6}, in Vim dictionary format. - - - `:EasyAlign * /[:;]\+/ { 'stick_to_left': 1, 'left_margin': 0 }` - -`stick_to_left` of 1 means that the matched delimiter should be positioned -right next to the preceding token, and `left_margin` of 0 removes the margin -on the left. So we get: -> - apple;: banana:: cake - data;; exchange:; format -< -Option names are fuzzy-matched, so you can write as follows: - - - `:EasyAlign * /[:;]\+/ { 'stl': 1, 'l': 0 }` - -You can even omit spaces between the arguments, so concisely (or cryptically): - - - `:EasyAlign*/[:;]\+/{'s':1,'l':0}` - -Nice. But let's make it even shorter. Option values can be written in -shorthand notation. - - - `:EasyAlign*/[:;]\+/` - `ignore_unmatched` | `iu[01]` - `ignore_groups` | `ig\[.*\]` - `align` | `a[lrc*]*` - `delimiter_align` | `d[lrc]` - `indentation` | `i[ksdn]` - -------------------+----------- - -For your information, the same operation can be done in interactive mode as -follows: - - - - - `*` - - - - CTRL-X - - `[:;]\+` - - {6} https://github.com/junegunn/vim-easy-align#alignment-options - - -< Partial alignment in blockwise-visual mode >________________________________~ - *easy-align-partial-alignment-in-blockwise-visual-mode* - *easy-align-5-6* - -In blockwise-visual mode (CTRL-V), EasyAlign command aligns only the selected -text in the block, instead of the whole lines in the range. - -Consider the following case where you want to align text around `=>` -operators. -> - my_hash = { :a => 1, - :aa => 2, - :aaa => 3 } -< -In non-blockwise visual mode (`v` / `V`), = won't work since the -assignment operator in the first line gets in the way. So we instead enter -blockwise-visual mode (CTRL-V), and select the text around`=>` operators, then -press =. -> - my_hash = { :a => 1, - :aa => 2, - :aaa => 3 } -< -However, in this case, we don't really need blockwise visual mode since the -same can be easily done using the negative N-th parameter: -= - - - *easy-align-6* -ALIGNMENT OPTIONS *easy-align-alignment-options* -============================================================================== - - -< List of options >___________________________________________________________~ - *easy-align-list-of-options* - *easy-align-6-1* - - -------------------+---------+-----------------------+-------------------------------------------------------- - Option | Type | Default | Description ~ - -------------------+---------+-----------------------+-------------------------------------------------------- - `filter` | string | | Line filtering expression: `g/../` or `v/../` - `left_margin` | number | 1 | Number of spaces to attach before delimiter - `left_margin` | string | `' '` | String to attach before delimiter - `right_margin` | number | 1 | Number of spaces to attach after delimiter - `right_margin` | string | `' '` | String to attach after delimiter - `stick_to_left` | boolean | 0 | Whether to position delimiter on the left-side - `ignore_groups` | list | ["String', "Comment'] | Delimiters in these syntax highlight groups are ignored - `ignore_unmatched` | boolean | 1 | Whether to ignore lines without matching delimiter - `indentation` | string | `k` | Indentation method (keep, deep, shallow, none) - `delimiter_align` | string | `r` | Determines how to align delimiters of different lengths - `align` | string | `l` | Alignment modes for multiple occurrences of delimiters - -------------------+---------+-----------------------+-------------------------------------------------------- - -There are 4 ways to set alignment options (from lowest precedence to highest): - - 1. Some option values can be set with corresponding global variables - 2. Option values can be specified in the definition of each alignment rule - 3. Option values can be given as arguments to `:EasyAlign` command - 4. Option values can be set in interactive mode using special shortcut keys - - *g:easy_align_ignore_groups* *g:easy_align_ignore_unmatched* - *g:easy_align_indentation* *g:easy_align_delimiter_align* - - -------------------+-----------------+-------------+-------------------------------- - Option name | Shortcut key | Abbreviated | Global variable ~ - -------------------+-----------------+-------------+-------------------------------- - `filter` | CTRL-F | `[gv]/.*/` | - `left_margin` | CTRL-L | `l[0-9]+` | - `right_margin` | CTRL-R | `r[0-9]+` | - `stick_to_left` | , | `<` or `>` | - `ignore_groups` | CTRL-G | `ig\[.*\]` | `g:easy_align_ignore_groups` - `ignore_unmatched` | CTRL-U | `iu[01]` | `g:easy_align_ignore_unmatched` - `indentation` | CTRL-I | `i[ksdn]` | `g:easy_align_indentation` - `delimiter_align` | CTRL-D | `d[lrc]` | `g:easy_align_delimiter_align` - `align` | CTRL-A | `a[lrc*]*` | - -------------------+-----------------+-------------+-------------------------------- - - -< Filtering lines >___________________________________________________________~ - *easy-align-filtering-lines* - *easy-align-6-2* - -With `filter` option, you can align lines that only match or do not match a -given pattern. There are several ways to set the pattern. - - 1. Press CTRL-F in interactive mode and type in `g/pat/` or `v/pat/` - 2. In command-line, it can be written in dictionary format: `{'filter': - 'g/pat/'}` - 3. Or in shorthand notation: `g/pat/` or `v/pat/` - -(You don't need to escape "/'s in the regular expression) - - -Examples~ - - *easy-align-6-2-1* -> - " Start interactive mode with filter option set to g/hello/ - EasyAlign g/hello/ - - " Start live interactive mode with filter option set to v/goodbye/ - LiveEasyAlign v/goodbye/ - - " Align the lines with 'hi' around the first colons - EasyAlign:g/hi/ -< - -< Ignoring delimiters in comments or strings >________________________________~ - *easy-align-ignoring-delimiters-in-comments-or-strings* - *easy-align-6-3* - -EasyAlign can be configured to ignore delimiters in certain syntax highlight -groups, such as code comments or strings. By default, delimiters that are -highlighted as code comments or strings are ignored. -> - " Default: - " If a delimiter is in a highlight group whose name matches - " any of the followings, it will be ignored. - let g:easy_align_ignore_groups = ['Comment', 'String'] -< -For example, the following paragraph -> - { - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape:fruits: 3 - 'grape:fruits': 3 - } -< -becomes as follows on : (or `:EasyAlign:`) -> - { - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape:fruits: 3 - 'grape:fruits': 3 - } -< -Naturally, this feature only works when syntax highlighting is enabled. - -You can change the default rule by using one of these 4 methods. - - 1. Press CTRL-G in interactive mode to switch groups - 2. Define global `g:easy_align_ignore_groups` list - 3. Define a custom rule in `g:easy_align_delimiters` with `ignore_groups` option - 4. Provide `ignore_groups` option to `:EasyAlign` command. e.g. `:EasyAlign:ig[]` - -For example if you set `ignore_groups` option to be an empty list, you get -> - { - # Quantity of apples: 1 - apple: 1, - # Quantity of bananas: 2 - bananas: 2, - # Quantity of grape: fruits: 3 - 'grape: fruits': 3 - } -< -If a pattern in `ignore_groups` is prepended by a `!`, it will have the -opposite meaning. For instance, if `ignore_groups` is given as `['!Comment']`, -delimiters that are not highlighted as Comment will be ignored during the -alignment. - - -< Ignoring unmatched lines >__________________________________________________~ - *easy-align-ignoring-unmatched-lines* - *easy-align-6-4* - -`ignore_unmatched` option determines how EasyAlign command processes lines -that do not have N-th delimiter. - - 1. In left-alignment mode, they are ignored - 2. In right or center-alignment mode, they are not ignored, and the last tokens - from those lines are aligned as well as if there is an invisible trailing - delimiter at the end of each line - 3. If `ignore_unmatched` is 1, they are ignored regardless of the alignment mode - 4. If `ignore_unmatched` is 0, they are not ignored regardless of the mode - -Let's take an example. When we align the following code block around the (1st) -colons, -> - { - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 - } -< -this is usually what we want. -> - { - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 - } -< -However, we can override this default behavior by setting `ignore_unmatched` -option to zero using one of the following methods. - - 1. Press CTRL-U in interactive mode to toggle `ignore_unmatched` option - 2. Set the global `g:easy_align_ignore_unmatched` variable to 0 - 3. Define a custom alignment rule with `ignore_unmatched` option set to 0 - 4. Provide `ignore_unmatched` option to `:EasyAlign` command. e.g. - `:EasyAlign:iu0` - -Then we get, -> - { - apple: proc { - this_line_does_not_have_a_colon - }, - bananas: 2, - grapefruits: 3 - } -< - -< Aligning delimiters of different lengths >__________________________________~ - *easy-align-aligning-delimiters-of-different-lengths* - *easy-align-6-5* - -Global `g:easy_align_delimiter_align` option and rule-wise/command-wise -`delimiter_align` option determines how matched delimiters of different -lengths are aligned. -> - apple = 1 - banana += apple - cake ||= banana -< -By default, delimiters are right-aligned as follows. -> - apple = 1 - banana += apple - cake ||= banana -< -However, with `:EasyAlign=dl`, delimiters are left-aligned. -> - apple = 1 - banana += apple - cake ||= banana -< -And on `:EasyAlign=dc`, center-aligned. -> - apple = 1 - banana += apple - cake ||= banana -< -In interactive mode, you can change the option value with CTRL-D key. - - -< Adjusting indentation >_____________________________________________________~ - *easy-align-adjusting-indentation* - *easy-align-6-6* - -By default :EasyAlign command keeps the original indentation of the lines. But -then again we have `indentation` option. See the following example. -> - # Lines with different indentation - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - - # Default: _k_eep the original indentation - # :EasyAlign= - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - - # Use the _s_hallowest indentation among the lines - # :EasyAlign=is - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - - # Use the _d_eepest indentation among the lines - # :EasyAlign=id - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - - # Indentation: _n_one - # :EasyAlign=in - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 -< -In interactive mode, you can change the option value with CTRL-I key. - - -< Alignments over multiple occurrences of delimiters >________________________~ - *easy-align-alignments-over-multiple-occurrences-of-delimiters* - *easy-align-6-7* - -As stated above, "N-th" parameter is used to target specific occurrences of -the delimiter when it appears multiple times in each line. - -To recap: -> - " Left-alignment around the FIRST occurrences of delimiters - :EasyAlign = - - " Left-alignment around the SECOND occurrences of delimiters - :EasyAlign 2= - - " Left-alignment around the LAST occurrences of delimiters - :EasyAlign -= - - " Left-alignment around ALL occurrences of delimiters - :EasyAlign *= - - " Left-right ALTERNATING alignment around all occurrences of delimiters - :EasyAlign **= - - " Right-left ALTERNATING alignment around all occurrences of delimiters - :EasyAlign! **= -< -In addition to these, you can fine-tune alignments over multiple occurrences -of the delimiters with "align' option. (The option can also be set in -interactive mode with the special key CTRL-A) -> - " Left alignment over the first two occurrences of delimiters - :EasyAlign = { 'align': 'll' } - - " Right, left, center alignment over the 1st to 3rd occurrences of delimiters - :EasyAlign = { 'a': 'rlc' } - - " Using shorthand notation - :EasyAlign = arlc - - " Right, left, center alignment over the 2nd to 4th occurrences of delimiters - :EasyAlign 2=arlc - - " (*) Repeating alignments (default: l, r, or c) - " Right, left, center, center, center, center, ... - :EasyAlign *=arlc - - " (**) Alternating alignments (default: lr or rl) - " Right, left, center, right, left, center, ... - :EasyAlign **=arlc - - " Right, left, center, center, center, ... repeating alignment - " over the 3rd to the last occurrences of delimiters - :EasyAlign 3=arlc* - - " Right, left, center, right, left, center, ... alternating alignment - " over the 3rd to the last occurrences of delimiters - :EasyAlign 3=arlc** -< - -< Extending alignment rules >_________________________________________________~ - *easy-align-extending-alignment-rules* - *easy-align-6-8* - -Although the default rules should cover the most of the use cases, you can -extend the rules by setting a dictionary named `g:easy_align_delimiters`. - -You may refer to the definitions of the default alignment rules {here}{7}. - -{7} https://github.com/junegunn/vim-easy-align/blob/2.9.6/autoload/easy_align.vim#L32-L46 - - -Examples~ - - *easy-align-6-8-1* -> - let g:easy_align_delimiters = { - \ '>': { 'pattern': '>>\|=>\|>' }, - \ '/': { - \ 'pattern': '//\+\|/\*\|\*/', - \ 'delimiter_align': 'l', - \ 'ignore_groups': ['!Comment'] }, - \ ']': { - \ 'pattern': '[[\]]', - \ 'left_margin': 0, - \ 'right_margin': 0, - \ 'stick_to_left': 0 - \ }, - \ ')': { - \ 'pattern': '[()]', - \ 'left_margin': 0, - \ 'right_margin': 0, - \ 'stick_to_left': 0 - \ }, - \ 'd': { - \ 'pattern': ' \(\S\+\s*[;=]\)\@=', - \ 'left_margin': 0, - \ 'right_margin': 0 - \ } - \ } -< - - *easy-align-7* -OTHER OPTIONS *easy-align-other-options* -============================================================================== - - -< Disabling &foldmethod during alignment >____________________________________~ - *easy-align-disabling-foldmethod-during-alignment* - *easy-align-7-1* - - *g:easy_align_bypass_fold* - -{It is reported}{8} that 'foldmethod' value of `expr` or `syntax` can -significantly slow down the alignment when editing a large, complex file with -many folds. To alleviate this issue, EasyAlign provides an option to -temporarily set 'foldmethod' to `manual` during the alignment task. In order -to enable this feature, set `g:easy_align_bypass_fold` switch to 1. -> - let g:easy_align_bypass_fold = 1 -< - {8} https://github.com/junegunn/vim-easy-align/issues/14 - - -< Left/right/center mode switch in interactive mode >_________________________~ - *easy-align-left-right-center-mode-switch-in-interactive-mode* - *easy-align-7-2* - -In interactive mode, you can choose the alignment mode you want by pressing -enter keys. The non-bang command, `:EasyAlign` starts in left-alignment mode -and changes to right and center mode as you press enter keys, while the bang -version first starts in right-alignment mode. - - - `:EasyAlign` - - Left, Right, Center - - `:EasyAlign!` - - Right, Left, Center - -If you do not prefer this default mode transition, you can define your own -settings as follows. - - *g:easy_align_interactive_modes* *g:easy_align_bang_interactive_modes* -> - let g:easy_align_interactive_modes = ['l', 'r'] - let g:easy_align_bang_interactive_modes = ['c', 'r'] -< - - *easy-align-8* -ADVANCED EXAMPLES AND USE CASES *easy-align-advanced-examples-and-use-cases* -============================================================================== - -See {EXAMPLES.md}{9} for more examples. - - {9} https://github.com/junegunn/vim-easy-align/blob/master/EXAMPLES.md - - - *easy-align-9* -RELATED WORK *easy-align-related-work* -============================================================================== - - - {DrChip's Alignment Tool for Vim}{10} - - {Tabular}{11} - - {10} http://www.drchip.org/astronaut/vim/align.html - {11} https://github.com/godlygeek/tabular - - - *easy-align-10* -AUTHOR *easy-align-author* -============================================================================== - -{Junegunn Choi}{12} - - {12} https://github.com/junegunn - - - *easy-align-11* -LICENSE *easy-align-license* -============================================================================== - -MIT - -============================================================================== -vim:tw=78:sw=2:ts=2:ft=help:norl:nowrap: diff --git a/vim/.config/vim/plugged/vim-easy-align/plugin/easy_align.vim b/vim/.config/vim/plugged/vim-easy-align/plugin/easy_align.vim deleted file mode 100644 index 1138911..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/plugin/easy_align.vim +++ /dev/null @@ -1,142 +0,0 @@ -" Copyright (c) 2014 Junegunn Choi -" -" MIT License -" -" Permission is hereby granted, free of charge, to any person obtaining -" a copy of this software and associated documentation files (the -" "Software"), to deal in the Software without restriction, including -" without limitation the rights to use, copy, modify, merge, publish, -" distribute, sublicense, and/or sell copies of the Software, and to -" permit persons to whom the Software is furnished to do so, subject to -" the following conditions: -" -" The above copyright notice and this permission notice shall be -" included in all copies or substantial portions of the Software. -" -" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -if exists("g:loaded_easy_align_plugin") - finish -endif -let g:loaded_easy_align_plugin = 1 - -command! -nargs=* -range -bang EasyAlign ,call easy_align#align(0, 0, 'command', ) -command! -nargs=* -range -bang LiveEasyAlign ,call easy_align#align(0, 1, 'command', ) - -let s:last_command = 'EasyAlign' - -function! s:abs(v) - return a:v >= 0 ? a:v : - a:v -endfunction - -function! s:remember_visual(mode) - let s:last_visual = [a:mode, s:abs(line("'>") - line("'<")), s:abs(col("'>") - col("'<"))] -endfunction - -function! s:repeat_visual() - let [mode, ldiff, cdiff] = s:last_visual - let cmd = 'normal! '.mode - if ldiff > 0 - let cmd .= ldiff . 'j' - endif - - let ve_save = &virtualedit - try - if mode == "\" - if cdiff > 0 - let cmd .= cdiff . 'l' - endif - set virtualedit+=block - endif - execute cmd.":\=g:easy_align_last_command\\" - call s:set_repeat() - finally - if ve_save != &virtualedit - let &virtualedit = ve_save - endif - endtry -endfunction - -function! s:repeat_in_visual() - if exists('g:easy_align_last_command') - call s:remember_visual(visualmode()) - call s:repeat_visual() - endif -endfunction - -function! s:set_repeat() - silent! call repeat#set("\(EasyAlignRepeat)") -endfunction - -function! s:generic_easy_align_op(type, vmode, live) - if !&modifiable - if a:vmode - normal! gv - endif - return - endif - let sel_save = &selection - let &selection = "inclusive" - - if a:vmode - let vmode = a:type - let [l1, l2] = ["'<", "'>"] - call s:remember_visual(vmode) - else - let vmode = '' - let [l1, l2] = [line("'["), line("']")] - unlet! s:last_visual - endif - - try - let range = l1.','.l2 - if get(g:, 'easy_align_need_repeat', 0) - execute range . g:easy_align_last_command - else - execute range . "call easy_align#align(0, a:live, vmode, '')" - end - call s:set_repeat() - finally - let &selection = sel_save - endtry -endfunction - -function! s:easy_align_op(type, ...) - call s:generic_easy_align_op(a:type, a:0, 0) -endfunction - -function! s:live_easy_align_op(type, ...) - call s:generic_easy_align_op(a:type, a:0, 1) -endfunction - -function! s:easy_align_repeat() - if exists('s:last_visual') - call s:repeat_visual() - else - try - let g:easy_align_need_repeat = 1 - normal! . - finally - unlet! g:easy_align_need_repeat - endtry - endif -endfunction - -nnoremap (EasyAlign) :set opfunc=easy_align_opg@ -vnoremap (EasyAlign) :call easy_align_op(visualmode(), 1) -nnoremap (LiveEasyAlign) :set opfunc=live_easy_align_opg@ -vnoremap (LiveEasyAlign) :call live_easy_align_op(visualmode(), 1) - -" vim-repeat support -nnoremap (EasyAlignRepeat) :call easy_align_repeat() -vnoremap (EasyAlignRepeat) :call repeat_in_visual() - -" Backward-compatibility (deprecated) -nnoremap (EasyAlignOperator) :set opfunc=easy_align_opg@ - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/README.md b/vim/.config/vim/plugged/vim-easy-align/test/README.md deleted file mode 100644 index 008303a..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/README.md +++ /dev/null @@ -1,13 +0,0 @@ -Test cases for vim-easy-align -============================= - -### Prerequisite - -- [Vader.vim](https://github.com/junegunn/vader.vim) - -### Run - -``` -./run -``` - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/blockwise.vader b/vim/.config/vim/plugged/vim-easy-align/test/blockwise.vader deleted file mode 100644 index 8a68ee7..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/blockwise.vader +++ /dev/null @@ -1,22 +0,0 @@ -Include: include/setup.vader - -Given clojure: - (def world [[1 1 1 1 1] - [999 999 999 999 1] - [1 1 1 1 1] - [1 999 999 999 999] - [1 1 1 1 1]]) - -Do (Recursive alignment in blockwise-visual mode): - f[; - \G - \*\ - -Expect clojure: - (def world [[1 1 1 1 1] - [999 999 999 999 1] - [1 1 1 1 1] - [1 999 999 999 999] - [1 1 1 1 1]]) - -Include: include/teardown.vader diff --git a/vim/.config/vim/plugged/vim-easy-align/test/commandline.vader b/vim/.config/vim/plugged/vim-easy-align/test/commandline.vader deleted file mode 100644 index 2c5a751..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/commandline.vader +++ /dev/null @@ -1,191 +0,0 @@ -Include: include/setup.vader - -Given (fruits): - apple;:;;banana::cake - data;;exchange:;::format - -Execute (regular expression): - %EasyAlign/[:;]\+/ - AssertEqual ':EasyAlign /[:;]\+/', g:easy_align_last_command - -Expect: - apple ;:;; banana::cake - data ;; exchange:;::format - -Execute (options dictionary): - %EasyAlign/[:;]\+/{ 'left_margin': '<', 'right_margin': 3 } - -Expect: - apple<;:;; banana::cake - data < ;; exchange:;::format - -Execute (fuzzy matching): - %EasyAlign/[:;]\+/{ 'l':'<', 'r': '>'} - -Expect: - apple<;:;;>banana::cake - data < ;;>exchange:;::format - -Execute (shorthand notation of margin): - %EasyAlign/[:;]\+/l0r0 - -Expect: - apple;:;;banana::cake - data ;;exchange:;::format - -Execute (delimiter align): - %EasyAlign*/[:;]\+/l0r0dc - -Expect: - apple;:;;banana :: cake - data ;; exchange:;::format - -Execute (DEPRECATED: shorthand notation of mode_sequence and margin): - %EasyAlign/[:;]\+/mrc*l2r2 - -Expect: - apple ;:;; banana :: cake - data ;; exchange :;:: format - -Execute (shorthand notation of align and margin): - %EasyAlign/[:;]\+/arc*l2r2 - -Expect: - apple ;:;; banana :: cake - data ;; exchange :;:: format - -Execute (DEPRECATED: deep indentation): - %EasyAlign/[:;]\+/mrc*l2r2 - %EasyAlign*/[:;]\+/idmrl* - -Expect: - apple ;:;; banana :: cake - data ;; exchange :;:: format - -Execute (deep indentation): - %EasyAlign/[:;]\+/arc*l2r2 - %EasyAlign*/[:;]\+/idarl* - -Expect: - apple ;:;; banana :: cake - data ;; exchange :;:: format - -Execute (stick_to_left): - %EasyAlign*/[:;]\+/stl1l0dlrm3 - -Expect: - apple;:;; banana:: cake - data;; exchange:;:: format - -Execute (<): - %EasyAlign*/[:;]\+/): - %EasyAlign*/[:;]\+/l0dl<>rm3 - -Expect: - apple;:;; banana :: cake - data ;; exchange:;:: format - -Execute (different regular expression): - %EasyAlign*/../{'lm':'<','rm':'>'} - -Expect: - ap><:;><;b><:c>e - da><;;><:;><::>' } - -Expect: - ap><:;><;b><:c>e - da><;;><:;><::> \\y - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/fixed.vader b/vim/.config/vim/plugged/vim-easy-align/test/fixed.vader deleted file mode 100644 index fb3adc2..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/fixed.vader +++ /dev/null @@ -1,263 +0,0 @@ -Include: include/setup.vader - -Given (Table): - |a|b|c|d| - | -|-|>-|-| - |aaa|bbb|ccc|ddd| - -Do (Partial alignment around 1st |): - \ljj\| - -Expect (Right margin should be correctly attached): - | a|b|c|d| - | -|-|>-|-| - | aaa|bbb|ccc|ddd| - -Given (empty buffer): - -Execute (Aligning lines with many delimiters should not fail): - call visualmode(1) - call setline(1, repeat('|', &maxfuncdepth + 1)) - %EasyAlign*| - AssertEqual (&maxfuncdepth + 1) * 3 - 2, len(getline(1)) - -Given: - a | b | c - aa | bb | cc - -Execute: - %EasyAlign*|iu0{'l':'<', 'r': '>'} - -Expect: - a <|>b <|>c - aa<|>bb<|>cc - -Given (Trailing delimiter): - a | b | c | - aa | bb | cc | - -Execute: - %EasyAlign*|iu0{'l':'<', 'r': '>'} - -Expect: - a <|>b <|>c <| - aa<|>bb<|>cc<| - -Given (Tab-indented code (#20)): - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Execute: - set tabstop=1 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Execute: - set tabstop=2 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Execute: - set tabstop=4 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Execute: - set tabstop=8 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Execute: - set tabstop=12 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - n2f = {} - n2v = {} - f2v = {} - n2gv = {} - n2vt = {} - -Given (Tab-indented code (#20)): - class MyUnitTest(unittest.TestCase): - def test_base(self): - # n2f= {} - ## n2v= {} - # f2v = {} - ## n2gv = {} - # n2vt = {} - -Execute: - set tabstop=12 - %EasyAlign= - -Expect: - class MyUnitTest(unittest.TestCase): - def test_base(self): - # n2f = {} - ## n2v = {} - # f2v = {} - ## n2gv = {} - # n2vt = {} - -Given (Some text): - a,b,c - - d,e,f - -Do (Select 1st line, align 3rd line): -- First line - V\ -- Last line - G -- Align - \Aip*, -- Previous selection - gv -- Upcase - U - -Expect: - A,B,C - - d, e, f - -Given c (#40 Ignored delimiters in LiveEasyAlign causes spurious undo): - printf("foo = %f\n", foo); - printf("foobar = %f\n", foobar); - -Do: - gUiw - :%LiveEasyAlign\ - =\== - -Expect c: - PRINTF("foo = %f\n", foo); - printf("foobar = %f\n", foobar); - -* #50 Error when using delimiter alignment option -Given: - a|bbb|c - aa|bb|cc - -Do (#50 EasyAlign command with 'a' option): - :%EasyAlign {'a': 'l'}\ - \ - *| - -Expect (Some text): - a | bbb | c - aa | bb | cc - -* #51 Repeat of visual (LiveEasyAlign) broken -Do (#51/#52 (EasyAlignRepeat) in visual mode): - V\\\*|| - G - V\. - -Expect: - a | bbb | c - aa | bb | cc - -* #65 ?= -Given: - a?=b - aa-=bb - aaa?=bbb - -Do (#65 Alignment around ?=): - \Aip= - -Expect: - a ?= b - aa -= bb - aaa ?= bbb - -* #67 \v -Given c: - bzero(&servaddr, sizeof(servaddr)); - servaddr.sin_family = AF_INET; - servaddr.sin_addr.s_addr = htonl(INADDR_ANY); - servaddr.sin_port = htons(SERV_PORT); - -Execute (#67 \v breaks surrounding regex): - %EasyAlign/\v(\=\s)@<=jj\ - \Aip= - -Expect: - hello = world bye all - hello world = bye all - hello world = foo all diff --git a/vim/.config/vim/plugged/vim-easy-align/test/fixme.vader b/vim/.config/vim/plugged/vim-easy-align/test/fixme.vader deleted file mode 100644 index 7988add..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/fixme.vader +++ /dev/null @@ -1,24 +0,0 @@ -Include: include/setup.vader - -# It is currently possible that EasyAlign command incorrectly judges -# that it was executed in block-wise visual mode -Given: - a|b|c - -Do (FIXME invalid judgement - block-wise visual mode): - \\ - :%EasyAlign|\ - -Expect: - a | b | c - -Do (TODO Workaround: reset visualmode() on error): - \\ - :%EasyAlign|\ - :%EasyAlign|\ - -Expect: - a | b | c - -Include: include/teardown.vader - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/include/setup.vader b/vim/.config/vim/plugged/vim-easy-align/test/include/setup.vader deleted file mode 100644 index 30f6d01..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/include/setup.vader +++ /dev/null @@ -1,38 +0,0 @@ -Execute (Clean up test environment): - Save g:easy_align_ignore_groups, g:easy_align_ignore_unmatched - Save g:easy_align_indentation, g:easy_align_delimiter_align - Save g:easy_align_interactive_modes, g:easy_align_bang_interactive_modes - Save g:easy_align_delimiters, g:easy_align_bypass_fold - Save &tabstop, mapleader - - unlet! g:easy_align_ignore_groups - unlet! g:easy_align_ignore_unmatched - unlet! g:easy_align_indentation - unlet! g:easy_align_delimiter_align - unlet! g:easy_align_interactive_modes - unlet! g:easy_align_bang_interactive_modes - unlet! g:easy_align_bypass_fold - - let g:easy_align_delimiters = {} - let mapleader = ' ' - vnoremap r :EasyAlign! - vnoremap r :LiveEasyAlign! - - " " Legacy - " vnoremap :EasyAlign - " vnoremap :LiveEasyAlign - " nmap A (EasyAlignOperator) - - set ts=2 - - vmap (EasyAlign) - vmap (LiveEasyAlign) - nmap A (EasyAlign) - vmap . (EasyAlignRepeat) - - silent! call plug#load('vim-easy-align') - -Before: -After: -Given: - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/include/teardown.vader b/vim/.config/vim/plugged/vim-easy-align/test/include/teardown.vader deleted file mode 100644 index 0e2fe6d..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/include/teardown.vader +++ /dev/null @@ -1,4 +0,0 @@ -Given: -Execute (Restoring test environment): - Restore - diff --git a/vim/.config/vim/plugged/vim-easy-align/test/interactive.vader b/vim/.config/vim/plugged/vim-easy-align/test/interactive.vader deleted file mode 100644 index e39fe57..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/interactive.vader +++ /dev/null @@ -1,1886 +0,0 @@ -Include: include/setup.vader - -########################################################### - -Given (space-separated columns): - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 33 444 555 66 777 8 - -Do (left-align): - vip - \ - *\ - -Expect: - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 33 444 555 66 777 8 - -Do (left-align / cursor position retained): - vGww - \ - *\D - -Expect: - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 - -Do (left-align using operator map): - \Aip*\ - -Expect: - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 33 444 555 66 777 8 - -Do (right-align): - vip - \\ - *\ - -Expect: - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 33 444 555 66 777 8 - -Do (center-align): - vip - \\\ - *\ - -Expect: - 1 22222 33 444 555 6666 7 888 - 11 222 3333 4 55 6666 77 888 - 111 22 333 444 55555 6666 7 88888 - 1111 2 33 444 555 66 777 8 - -Given (comma-separated columns): - a,,bbb - aa,,bb - aaa,,b - aaaa,, - aaa,b, - aa,bb, - a,bbb, - -Do (left-align): - vip - \ - *, - -Expect: - a, , bbb - aa, , bb - aaa, , b - aaaa, , - aaa, b, - aa, bb, - a, bbb, - -Do (right-align): - vip - \\ - *, - -Expect: - a, , bbb - aa, , bb - aaa, , b - aaaa, , - aaa, b, - aa, bb, - a, bbb, - -Do (center-align): - vip - \\\ - *, - -Expect: - a, , bbb - aa, , bb - aaa, , b - aaaa, , - aaa, b, - aa, bb, - a, bbb, - -########################################################### - -Given (the beatles): - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (around first space): - vip - \ - \ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (around second space): - vip - \ - 2\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (around all spaces): - vip - \ - *\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (right-align around all spaces): - vip - \\ - *\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (center-align around all spaces): - vip - \\\ - *\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (center-align around the last space): - vip - \\\ - -\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (right-align around second space): - vip - \\ - 2\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (left-right alternating alignment): - vip - \ - **\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (right-left alternating alignment): - vip - \\ - **\ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (with numeric left/right margin): - vip - \ - * - \2\ - \ - \5\ - * - \ - -Expect: - Paul McCartney 1942 - George Harrison 1943mmdd - Ringo Starr 1940mm - Pete Best 1941 - -Do (with string left/right margin): - vip - \ - \lft\ - \rgt\ - *\ - -Expect: - Paul lft rgtMcCartneylft rgt1942 - Georgelft rgtHarrison lft rgt1943mmdd - Ringo lft rgtStarr lft rgt1940mm - Pete lft rgtBest lft rgt1941 - -Execute (with regular expression): - 1,4EasyAlign*/../ - -Expect: - Pa ul Mc Ca rt ne y 19 42 - Ge or ge Ha rr is on 19 43 mm dd - Ri ng o St ar r 19 40 mm - Pe te Be st 19 41 - -########################################################### - -Given ruby (delimiters in comments and strings): - xyz="abc=def" - a=b#=c - -Do (align around all =): - vip - \*= - -Expect ruby (are not aligned): - xyz = "abc=def" - a = b#=c - -########################################################### - -Given javascript (json): - var jdbc = { - // JDBC driver for MySQL database: - driver: "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc:mysql://HOSTNAME/DATABASE) */ - url: 'jdbc:mysql://localhost/test', - database: "test", - "user:pass":"r00t:pa55" - }; - -Do (around colons): - vip\*: - -Expect javascript: - var jdbc = { - // JDBC driver for MySQL database: - driver: "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc:mysql://HOSTNAME/DATABASE) */ - url: 'jdbc:mysql://localhost/test', - database: "test", - "user:pass": "r00t:pa55" - }; - -Do (around colons, do not stick to left): - vip\*\: - -Expect javascript: - var jdbc = { - // JDBC driver for MySQL database: - driver : "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc:mysql://HOSTNAME/DATABASE) */ - url : 'jdbc:mysql://localhost/test', - database : "test", - "user:pass" : "r00t:pa55" - }; - -Do (around first colon, do not ignore comments and strings): - vip\\*: - -Expect javascript: - var jdbc = { - // JDBC driver for MySQL database: - driver: "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc: mysql: //HOSTNAME/DATABASE) */ - url: 'jdbc: mysql: //localhost/test', - database: "test", - "user: pass": "r00t: pa55" - }; - -Do (do not ignore comments and strings, do not ignore unmatched): - vip\\\*: - -Expect javascript: - var jdbc = { - // JDBC driver for MySQL database: - driver: "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc: mysql: //HOSTNAME/DATABASE) */ - url: 'jdbc: mysql: //localhost/test', - database: "test", - "user: pass": "r00t: pa55" - }; - -Execute (set g:easy_align_ignore_groups and g:easy_align_ignore_unmatched): - let g:easy_align_ignore_unmatched = 0 - let g:easy_align_ignore_groups = [] - -Do (do not ignore comments and strings, do not ignore unmatched using global vars): - vip\*: - -Expect javascript: - var jdbc = { - // JDBC driver for MySQL database: - driver: "com.mysql.jdbc.Driver", - /* JDBC URL for the connection (jdbc: mysql: //HOSTNAME/DATABASE) */ - url: 'jdbc: mysql: //localhost/test', - database: "test", - "user: pass": "r00t: pa55" - }; - -Execute (unset g:easy_align_ignore_groups and g:easy_align_ignore_unmatched): - unlet g:easy_align_ignore_unmatched - unlet g:easy_align_ignore_groups - -########################################################### - -Given (table): - | Option| Type | Default | Description | - |--|--|--|--| - | threads | Fixnum | 1 | number of threads in the thread pool | - |queues |Fixnum | 1 | number of concurrent queues | - |queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - |batch | Boolean | false | enables batch processing mode | - |batch_size | Fixnum | nil | number of maximum items to be assigned at once | - |logger | Logger | nil | logger instance for debug logs | - -Do (around all |): - vip\*| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Do (around all |, and right-align 3rd and center-align the last): - vip\*| - gv\\3| - gv\\\-| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Do (Left-right alternating alignment): - vip\**| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Do (Right-left alternating alignment): - vip\\**| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Do (Right-left alternating alignment, indent: deep): - vip\\**\\| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -# Doesn't work. Why? -# Do (Repeat the last command): -# :%\=g:easy_align_last_command\\ - -Execute (Repeat the last command): - Log g:easy_align_last_command - execute '%'.g:easy_align_last_command - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Do (around all | with no margin, right-align 2nd to last): - vip\\0\\0\*| - vip\\\0\\0\-2| - -Expect: - |Option |Type |Default|Description | - |-- |-- | --|-- | - |threads |Fixnum | 1|number of threads in the thread pool | - |queues |Fixnum | 1|number of concurrent queues | - |queue_size|Fixnum | 1000|size of each queue | - |interval |Numeric| 0|dispatcher interval for batch processing | - |batch |Boolean| false|enables batch processing mode | - |batch_size|Fixnum | nil|number of maximum items to be assigned at once| - |logger |Logger | nil|logger instance for debug logs | - -Do (live interactive mode): - vip\\ - | - \(\ - \)\ - *** - ** - \\\ - **|\| - -Expect: - |)Option (|) Type(|)Default(|) Description(| - |)-- (|) --(|)-- (|) --(| - |)threads (|) Fixnum(|)1 (|) number of threads in the thread pool(| - |)queues (|) Fixnum(|)1 (|) number of concurrent queues(| - |)queue_size(|) Fixnum(|)1000 (|) size of each queue(| - |)interval (|)Numeric(|)0 (|) dispatcher interval for batch processing(| - |)batch (|)Boolean(|)false (|) enables batch processing mode(| - |)batch_size(|) Fixnum(|)nil (|)number of maximum items to be assigned at once(| - |)logger (|) Logger(|)nil (|) logger instance for debug logs(| - -Do (Switching to live interactive mode): - vip\ -* Switch to live interactive mode - \ - | - \<\ - \>\ - *** - ** - \\\ - **|\| - -Expect: - |>Option <|> Type<|>Default<|> Description<| - |>-- <|> --<|>-- <|> --<| - |>threads <|> Fixnum<|>1 <|> number of threads in the thread pool<| - |>queues <|> Fixnum<|>1 <|> number of concurrent queues<| - |>queue_size<|> Fixnum<|>1000 <|> size of each queue<| - |>interval <|>Numeric<|>0 <|> dispatcher interval for batch processing<| - |>batch <|>Boolean<|>false <|> enables batch processing mode<| - |>batch_size<|> Fixnum<|>nil <|>number of maximum items to be assigned at once<| - |>logger <|> Logger<|>nil <|> logger instance for debug logs<| - -Do (Toggling live interactive mode (delimiter entered)): - vip\ -* Enable live mode - \ - |* -* Disable live mode - \ - gg2jdG - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - -Do (Toggling live interactive mode (delimiter not entered)): - vip\ -* Enable live mode - \ - \ -* Disable live mode - \ - *| - gg2jdG - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - -Do (live interactive mode!): - vip\r\ - | - \[\ - \]\ - *** - ** - \\\ - ** - \\ - \|\ - \ - \ - -Expect: - [|] Option[|]Type [|]Default[|]Description [| - [|] --[|]-- [|] --[|]-- [| - [|] threads[|]Fixnum [|] 1[|]number of threads in the thread pool [| - [|] queues[|]Fixnum [|] 1[|]number of concurrent queues [| - [|]queue_size[|]Fixnum [|] 1000[|]size of each queue [| - [|] interval[|]Numeric[|] 0[|]dispatcher interval for batch processing [| - [|] batch[|]Boolean[|] false[|]enables batch processing mode [| - [|]batch_size[|]Fixnum [|] nil[|]number of maximum items to be assigned at once[| - [|] logger[|]Logger [|] nil[|]logger instance for debug logs [| - -Execute (g:easy_align_last_command should be set): - Assert exists('g:easy_align_last_command') - unlet g:easy_align_last_command - -Do: - vip\\**|\ - -Execute (g:easy_align_last_command should not be set if interrupted): - Assert !exists('g:easy_align_last_command') - -Do (g:easy_align_nth is not set (work with default value 1)): - vip\| - -Expect: - | Option| Type | Default | Description | - | --|--|--|--| - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues |Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Execute (set g:easy_align_nth): - let g:easy_align_nth = '2' - -Do (g:easy_align_nth is set as 2): - vip\| - -Expect: - | Option | Type | Default | Description | - |-- | --|--|--| - | threads | Fixnum | 1 | number of threads in the thread pool | - |queues | Fixnum | 1 | number of concurrent queues | - |queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - |batch | Boolean | false | enables batch processing mode | - |batch_size | Fixnum | nil | number of maximum items to be assigned at once | - |logger | Logger | nil | logger instance for debug logs | - -Execute (unset g:easy_align_nth): - unlet g:easy_align_nth - -Execute (set g:easy_align_nth): - let g:easy_align_nth = '*' - -Do (g:easy_align_nth is set as *): - vip\| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Execute (unset g:easy_align_nth): - unlet g:easy_align_nth - -Execute (set g:easy_align_nth): - let g:easy_align_nth = '**' - -Do (g:easy_align_nth is set as **): - vip\| - -Expect: - | Option | Type | Default | Description | - | -- | -- | -- | -- | - | threads | Fixnum | 1 | number of threads in the thread pool | - | queues | Fixnum | 1 | number of concurrent queues | - | queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - | batch | Boolean | false | enables batch processing mode | - | batch_size | Fixnum | nil | number of maximum items to be assigned at once | - | logger | Logger | nil | logger instance for debug logs | - -Execute (unset g:easy_align_nth): - unlet g:easy_align_nth - -Execute (set g:easy_align_nth): - let g:easy_align_nth = '-' - -Do (g:easy_align_nth is set as -): - vip\| - -Expect: - | Option| Type | Default | Description | - |--|--|--|-- | - | threads | Fixnum | 1 | number of threads in the thread pool | - |queues |Fixnum | 1 | number of concurrent queues | - |queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - |batch | Boolean | false | enables batch processing mode | - |batch_size | Fixnum | nil | number of maximum items to be assigned at once | - |logger | Logger | nil | logger instance for debug logs | - -Execute (unset g:easy_align_nth): - unlet g:easy_align_nth - -Execute (set g:easy_align_nth): - let g:easy_align_nth = '-2' - -Do (g:easy_align_nth is set as -2): - vip\| - -Expect: - | Option| Type | Default | Description | - |--|--|-- | --| - | threads | Fixnum | 1 | number of threads in the thread pool | - |queues |Fixnum | 1 | number of concurrent queues | - |queue_size | Fixnum | 1000 | size of each queue | - | interval | Numeric | 0 | dispatcher interval for batch processing | - |batch | Boolean | false | enables batch processing mode | - |batch_size | Fixnum | nil | number of maximum items to be assigned at once | - |logger | Logger | nil | logger instance for debug logs | - -Execute (unset g:easy_align_nth): - unlet g:easy_align_nth - -########################################################### - -Given (comma-separated items): - aaa, bb,c - d,eeeeeee - fffff, gggggggggg, - h, , ii - j,,k - -Do (around all commas): - vip\*, - -Expect: - aaa, bb, c - d, eeeeeee - fffff, gggggggggg, - h, , ii - j, , k - -Do (around all commas, do not stick to left): - vip\\*, - -Expect: - aaa , bb , c - d , eeeeeee - fffff , gggggggggg , - h , , ii - j , , k - -Do (center-align around all commas): - vip\\\*, - -Expect: - aaa, bb, c - d, eeeeeee - fffff, gggggggggg, - h, , ii - j, , k - -########################################################### - -Given ruby (multi-line ruby Hash): - options = { :caching => nil, - :versions => 3, - "cache=blocks" => false }.merge(options) - -Do (around the last =): - vip\-= - -Expect ruby: - options = { :caching => nil, - :versions => 3, - "cache=blocks" => false }.merge(options) - -Do (partial alignment): - f: - \jj3E - \\= - -Expect ruby: - options = { :caching => nil, - :versions => 3, - "cache=blocks" => false }.merge(options) - -########################################################### - -Given c (C code with comments 1): - /* a */ b = c - aa >= bb - // aaa = bbb = cccc - /* aaaa = */ bbbb === cccc " = dddd = " = eeee - aaaaa /* bbbbb */ == ccccc /* != eeeee = */ === fffff - -Do: - vip\*= - -Expect c: - /* a */ b = c - aa >= bb - // aaa = bbb = cccc - /* aaaa = */ bbbb === cccc " = dddd = " = eeee - aaaaa /* bbbbb */ == ccccc /* != eeeee = */ === fffff - -Do: - vip\\\*= - -Expect c: - /* a */ b = c - aa >= bb - // aaa = bbb = cccc - /* aaaa = */ bbbb === cccc " = dddd = " = eeee - aaaaa /* bbbbb */ == ccccc /* != eeeee = */ === fffff - -########################################################### - -Given c (C code with comments 2): - int a = 1; - long b = 2; - float c = 3; - string d = 4; - // this line should not get aligned - long int e = 5; - std::map f; - std::map g; /* this? */ - short h /* how about this? */ = 6; - string i = "asdf"; - -Do (around =): - vip\= - -Expect c: - int a = 1; - long b = 2; - float c = 3; - string d = 4; - // this line should not get aligned - long int e = 5; - std::map f; - std::map g; /* this? */ - short h /* how about this? */ = 6; - string i = "asdf"; - -Do (right-align around =, comment lines are ignored): - vip\\= - -Expect c: - int a = 1; - long b = 2; - float c = 3; - string d = 4; - // this line should not get aligned - long int e = 5; - std::map f; - std::map g; /* this? */ - short h /* how about this? */ = 6; - string i = "asdf"; - -Do (right-align around =, do not ignore comment lines): - vip\\\= - -Expect c: - int a = 1; - long b = 2; - float c = 3; - string d = 4; - // this line should not get aligned - long int e = 5; - std::map f; - std::map g; /* this? */ - short h /* how about this? */ = 6; - string i = "asdf"; - -########################################################### - -Given ruby (= operators): - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee=f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (1st =): - vip\= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee=f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (LR =): - vip\**= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee = f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (DEPRECATED: Alignment using mode_sequence, delimiter_align): - vip\\\cr*\\= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee = f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (Alignment using align, delimiter_align): - vip\\\cr*\\= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee = f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - - -Do (DEPRECATED: mode_sequence starting from 2nd, delimiter_align = center): - vip\\\rc**\\\2= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee = f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (align starting from 2nd, delimiter_align = center): - vip\\\rc**\\\2= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee = f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -Do (around all =s, do not ignore unmatched): - vip\\ - \0\ - \0\ - \\ - *= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee ===eee = eee = eee=f - fff = ggg +=gg &&=gg - g != hhhhhhhh==# 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<=123 - aa >>=123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&=123 - dddddd ||=123 - dddddd /= 123 - gg <=>ee - -Do (Center-align around 2nd =): - vip\\\2= - -Expect ruby: - a = - a = 1 - bbbb .= 2 - ccccccc = 3 - ccccccccccccccc - ddd = # - eeee === eee = eee = eee=f - fff = ggg += gg &&= gg - g != hhhhhhhh == # 8 - i := 5 - i %= 5 - i *= 5 - j =~ 5 - j >= 5 - aa => 123 - aa <<= 123 - aa >>= 123 - bbb => 123 - c => 1233123 - d => 123 - dddddd &&= 123 - dddddd ||= 123 - dddddd /= 123 - gg <=> ee - -########################################################### - -Given ruby (Trailing ruby line comment): - apple = 1 # comment not aligned - apricot = 'DAD' + 'F#AD' - banana = 'Gros Michel' ## comment 2 - -Do (around the last spaces): - vip\-\ - -Expect ruby: - apple = 1 # comment not aligned - apricot = 'DAD' + 'F#AD' - banana = 'Gros Michel' ## comment 2 - -Do (using # rule): - vip\\# - -Expect ruby: - apple = 1 # comment not aligned - apricot = 'DAD' + 'F#AD' - banana = 'Gros Michel' ## comment 2 - -Do (using regular expression): - vip\= - gv\ - \\\ - \ - \#\+\ - -Expect ruby: - apple = 1 # comment not aligned - apricot = 'DAD' + 'F#AD' - banana = 'Gros Michel' ## comment 2 - -########################################################### - -Given (method chain): - my_object - .method1.chain - .second_method.call - .third.call - .method_4.execute - -Do (around all .): - vip\*. - -Expect: - my_object - .method1 .chain - .second_method.call - .third .call - .method_4 .execute - -Do (around all . with deep indentation): - vip\\\*. - -Expect: - my_object - .method1 .chain - .second_method.call - .third .call - .method_4 .execute - -Execute (set g:easy_align_indentation): - let g:easy_align_indentation = 'd' - -Do (around all . with deep indentation): - vip\*. - -Expect: - my_object - .method1 .chain - .second_method.call - .third .call - .method_4 .execute - -Execute (unset g:easy_align_indentation): - unlet g:easy_align_indentation - -Do (right-align around all .): - vip\\*. - -Expect: - my_object - . method1. chain - .second_method. call - . third. call - . method_4.execute - -########################################################### - -Execute (define d rule): - let g:easy_align_delimiters.d = - \ { 'pattern': '\s\+\(\S\+\s*[;=]\)\@=', 'left_margin': 0, 'right_margin': 0 } - -Given c (complex var dec): - const char* str = "Hello"; - int64_t count = 1 + 2; - static double pi = 3.14; - static std::map* scores = pointer; - -Do (using d rule): - vip\d - gv\= - -Expect c: - const char* str = "Hello"; - int64_t count = 1 + 2; - static double pi = 3.14; - static std::map* scores = pointer; - -########################################################### - -Given (indented code): - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do: - vip\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (shallow indentation): - vip\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (deep indentation): - vip\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (no indentation): - vip\\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (right-align, shallow indentation): - vip\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (center-align, shallow indentation): - vip\\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (right-align, deep indentation): - vip\\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (center-align, deep indentation): - vip\\\\\= - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Do (right-align, no indentation): - vip\\\\\= - -########################################################### - -Expect: - apple = 1 - banana = 2 - cake = 3 - daisy = 4 - eggplant = 5 - -Given (Center-align cases): - aaaa = 123456778901234567890 = - cccccccccccccc = 12345678 = - - aaaa = 123456778901234567890 = - bbbbbb = 4 - cccccccccccccccccc = 12345678 = - - aaaa = 123456778901234567890 = - cccccccccccccccccc = 12345678 = - - aaaaa = 123456778901234567890 = - cc = 12345678 = - - aaaaa = 123456778901234567890 = - bbbbbbbbbb = 12345 = - - aaaaa = 123456778901234567890 = - cccccccccccccccccc = 123 = - - aaaaa = 123456778901234567890 = - cccccccccccccccccc = 12345678 = - - aaaaa = 12345 = - bbbbbbbbbb = 123456778901234567890 = - - aaaaa = 12345 - bbbbbbbbbb = 123456778901234567890 - -Do: - vip\\\= - }jvip\\\= - }jvip\\\= - }jvip\\\= - }jvip\\\2= - }jvip\\\2= - }jvip\\\2= - }jvip\\\2= - }jvip\\\2= - -Expect: - aaaa = 123456778901234567890 = - cccccccccccccc = 12345678 = - - aaaa = 123456778901234567890 = - bbbbbb = 4 - cccccccccccccccccc = 12345678 = - - aaaa = 123456778901234567890 = - cccccccccccccccccc = 12345678 = - - aaaaa = 123456778901234567890 = - cc = 12345678 = - - aaaaa = 123456778901234567890 = - bbbbbbbbbb = 12345 = - - aaaaa = 123456778901234567890 = - cccccccccccccccccc = 123 = - - aaaaa = 123456778901234567890 = - cccccccccccccccccc = 12345678 = - - aaaaa = 12345 = - bbbbbbbbbb = 123456778901234567890 = - - aaaaa = 12345 - bbbbbbbbbb = 123456778901234567890 - -########################################################### - -Given (long delimiter): - ...-.----- - ..--..---- - .---...--- - ----....-- - .---.....- - ..--...... - ...-.....- - -Do: - vip\*\-\+\ - -Expect: - ... - . ----- - .. -- .. ---- - . --- ... --- - ---- .... -- - . --- ..... - - .. -- ...... - ... - ..... - - -Do: - vip\*\\-\+\ - -Expect: - ... - . ----- - .. -- .. ---- - . --- ... --- - ---- .... -- - . --- ..... - - .. -- ...... - ... - ..... - - -Do: - vip\*\\\-\+\ - -Expect: - ... - . ----- - .. -- .. ---- - . --- ... --- - ---- .... -- - . --- ..... - - .. -- ...... - ... - ..... - - -Execute (set g:easy_align_delimiter_align): - let g:easy_align_delimiter_align = 'c' - -Do: - vip\*\-\+\ - -Expect: - ... - . ----- - .. -- .. ---- - . --- ... --- - ---- .... -- - . --- ..... - - .. -- ...... - ... - ..... - - -Execute (unset g:easy_align_delimiter_align): - unlet g:easy_align_delimiter_align - -########################################################### - -Execute (set g:easy_align_interactive_modes): - let g:easy_align_interactive_modes = ['r', 'c'] - let g:easy_align_bang_interactive_modes = ['c', 'l'] - -Given (Test g:easy_align_interactive_modes): - a = 1 - bb = 2 - ccc = 3 - -Do: - vip\= - -Expect: - a = 1 - bb = 2 - ccc = 3 - -Do: - vip\\= - -Expect: - a = 1 - bb = 2 - ccc = 3 - -Do: - vipr\= - -Expect: - a = 1 - bb = 2 - ccc = 3 - -Do: - vipr\\= - -Expect: - a = 1 - bb = 2 - ccc = 3 - -Do: - vipr\\\= - -Expect: - a = 1 - bb = 2 - ccc = 3 - -Execute (unset g:easy_align_interactive_modes): - unlet g:easy_align_interactive_modes - unlet g:easy_align_bang_interactive_modes - -########################################################### - -Given (Test ignore_unmatched behavior): - a = b = c - aabba = bbbbb - -Do (left-align): - vip\*= - -Expect: - a = b = c - aabba = bbbbb - -Do (left-align, no ignore_unmatched): - vip\\*= - -Expect: - a = b = c - aabba = bbbbb - -Do (right-align): - vip\\*= - -Expect: - a = b = c - aabba = bbbbb - -Do (right-align, explicit ignore_unmatched): - vip\\\\*= - -Expect: - a = b = c - aabba = bbbbb - -Do (center-align): - vip\\\*= - -Expect: - a = b = c - aabba = bbbbb - -Do (center-align): - vip\\\\\*= - -Expect: - a = b = c - aabba = bbbbb - -########################################################### - -Given (test filter option): - aaa=aaa=aaa - aaaaa=aaaaa=aaaaa - aaaaaaa=aaaaaaa=aaaaaaab - bbbbb=bbbbb=bbbbb - aaa=aaa=aaa - -Do (g/a/): - vip\ - \g/a/\ - *= - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa = aaaaaaa = aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Do (g/a - you can omit the trailing /): - vip\ - \g/a\ - *= - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa = aaaaaaa = aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Do (v/b/): - vip\ - \v/b/\ - *= - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa=aaaaaaa=aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Do (invalid filter expression): - vip\ - \haha\ - *= - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa = aaaaaaa = aaaaaaab - bbbbb = bbbbb = bbbbb - aaa = aaa = aaa - -Execute (g-filter in shorthand notation): - %EasyAlign*=g/a/ - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa = aaaaaaa = aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Execute (v-filter in shorthand notation): - %EasyAlign*=v/b/ - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa=aaaaaaa=aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Execute (filter in dictionary format): - %EasyAlign*={'filter': 'v/b/'} - -Expect: - aaa = aaa = aaa - aaaaa = aaaaa = aaaaa - aaaaaaa=aaaaaaa=aaaaaaab - bbbbb=bbbbb=bbbbb - aaa = aaa = aaa - -Given clojure (filter with blockwise-visual mode): - (let [a 1 - bbb 2 - ccccc (range - 10 20)] - (prn [a bbb ccccc])) - -Do (filter with blockwise-visual mode): - f[ - vi[ - \ - \ - \g/^\S\ - \ - -Expect clojure: - (let [a 1 - bbb 2 - ccccc (range - 10 20)] - (prn [a bbb ccccc])) - -Given clojure: - {:user {:plugins [[cider/cider-nrepl "0.9.1"] - [lein-kibit "0.0.8"] - [lein-licenses "0.1.1"] - [lein-marginalia "0.8.0"] ; lein marg - [codox "0.8.13"] ; lein doc - [com.jakemccrary/lein-test-refresh "0.10.0"] ; lein test-refresh - [lein-pprint "1.1.2"] - [lein-exec "0.3.5"] - [jonase/eastwood "0.2.1"]] - :dependencies [[slamhound "1.5.5"]] - :aliases {"slamhound" ["run" "-m" "slam.hound"]} - :signing {:gpg-key "FEF9C627"}}} - -Do (Virtual column should be used in blockwise-visual mode): - :set ve=block\ - f[ - vi[ - \ - $20l - \\ - -Expect clojure: - {:user {:plugins [[cider/cider-nrepl "0.9.1"] - [lein-kibit "0.0.8"] - [lein-licenses "0.1.1"] - [lein-marginalia "0.8.0"] ; lein marg - [codox "0.8.13"] ; lein doc - [com.jakemccrary/lein-test-refresh "0.10.0"] ; lein test-refresh - [lein-pprint "1.1.2"] - [lein-exec "0.3.5"] - [jonase/eastwood "0.2.1"]] - :dependencies [[slamhound "1.5.5"]] - :aliases {"slamhound" ["run" "-m" "slam.hound"]} - :signing {:gpg-key "FEF9C627"}}} - -Then: - set ve= - -########################################################### - -Given (hard-tab indentation (#19)): - a=1=3 - bbb=2=4 - ccccc=4=5 - fff=4=6 - -Do (Left alignment): - vip\= - -Expect: - a = 1=3 - bbb = 2=4 - ccccc = 4=5 - fff = 4=6 - -Do (Right alignment): - vip\\= - -Expect: - a = 1=3 - bbb = 2=4 - ccccc = 4=5 - fff = 4=6 - -Do (Center alignment): - vip\\\= - -Expect: - a = 1=3 - bbb = 2=4 - ccccc = 4=5 - fff = 4=6 - -Do (Left alignment with shallow indentation): - vip\\= - -Expect: - a = 1=3 - bbb = 2=4 - ccccc = 4=5 - fff = 4=6 - -Do (Center alignment with deep indentation): - vip\\\\\= - -Expect: - a = 1=3 - bbb = 2=4 - ccccc = 4=5 - fff = 4=6 - -Given (hard-tab indentation - dictionary (#19)): - ddict={'homePage':'360452', - 'key':'TEST', - 'name':'DocumentationAPITestingSpace', - 'type':'global', - 'url':'http://localhost:8090/display/TEST'} - -Do (Right alignment): - vip\\: - -Expect: - ddict={'homePage': '360452', - 'key': 'TEST', - 'name': 'DocumentationAPITestingSpace', - 'type': 'global', - 'url': 'http://localhost:8090/display/TEST'} - -########################################################### - -Given (Two paragraphs (requires vim-repeat)): - a = 1 - bb = 2 - ccc = 3 - dddd = 4 - - d = 1 - cc = 2 - bbb = 3 - aaaa = 4 - _____ = 5 - -Do (Align and repeat): - \Aip\= - 6G - . - -Expect: - a = 1 - bb = 2 - ccc = 3 - dddd = 4 - - d = 1 - cc = 2 - bbb = 3 - aaaa = 4 - _____ = 5 - -Do (Visual-mode operator is also repeatable): - vip\\= - 6G - . - -Expect: - a = 1 - bb = 2 - ccc = 3 - dddd = 4 - - d = 1 - cc = 2 - bbb = 3 - aaaa = 4 - _____ = 5 - -Do (Repeatable in visual mode): - 2GvG\. - -Expect: - a = 1 - bb = 2 - ccc = 3 - dddd = 4 - - d = 1 - cc = 2 - bbb = 3 - aaaa = 4 - _____ = 5 - -Given: - :: a : 1 - :: bb : 2 - :: ccc : 3 - :: dd : 4 - :: e : 5 - - :: :: a:1 - :: :: b :2 - :: :: ccc : 3 - :: :: dd : 4 - :: :: e : 5 - :: :: f : 6 - -Do (Blockwise-visual-operator is also repeatable): - fa - \ - f1 - 4j - \: - 7G0 - fa - . - -Expect: - :: a: 1 - :: bb: 2 - :: ccc: 3 - :: dd: 4 - :: e: 5 - - :: :: a: 1 - :: :: b: 2 - :: :: ccc: 3 - :: :: dd: 4 - :: :: e: 5 - :: :: f : 6 - -########################################################### - -Include: include/teardown.vader diff --git a/vim/.config/vim/plugged/vim-easy-align/test/run b/vim/.config/vim/plugged/vim-easy-align/test/run deleted file mode 100755 index c5cdf35..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/run +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -cd $(dirname $BASH_SOURCE) - -vim -Nu <(cat << EOF -syntax on -for dep in ['vader.vim', 'vim-repeat'] - execute 'set rtp+=' . finddir(dep, expand('~/.vim').'/**') -endfor -set rtp+=.. -EOF) +Vader* diff --git a/vim/.config/vim/plugged/vim-easy-align/test/tex.vader b/vim/.config/vim/plugged/vim-easy-align/test/tex.vader deleted file mode 100644 index cf1b48b..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/test/tex.vader +++ /dev/null @@ -1,158 +0,0 @@ -# http://en.wikibooks.org/wiki/LaTeX/Tables - -Include: include/setup.vader - -Given tex (table with escaped &): - \begin{tabular}{ l c r } - 1&2&3\\ - 44&55&66\\ - 777&8\&8&999\\ - \end{tabular} - -# FIXME vip doesn't work if folded -Do (Align around all &s and \\s): - VG\*& - -Expect tex: - \begin{tabular}{ l c r } - 1 & 2 & 3 \\ - 44 & 55 & 66 \\ - 777 & 8\&8 & 999 \\ - \end{tabular} - -Do (right-align with explicit ignore_unmatched): - VG\\\\*& - -Expect tex: - \begin{tabular}{ l c r } - 1 & 2 & 3 \\ - 44 & 55 & 66 \\ - 777 & 8\&8 & 999 \\ - \end{tabular} - -Do (center-align with explicit ignore_unmatched): - VG\\\\\*& - -Expect tex: - \begin{tabular}{ l c r } - 1 & 2 & 3 \\ - 44 & 55 & 66 \\ - 777 & 8\&8 & 999 \\ - \end{tabular} - -Given tex (simple table with \hline): - \begin{tabular}{ l c r } - 1&2&3\\ \hline - 44&55&66\\ \hline - 777&8\&&999\\ \hline - \end{tabular} - -Do: - VG\*& - -Expect tex: - \begin{tabular}{ l c r } - 1 & 2 & 3 \\ \hline - 44 & 55 & 66 \\ \hline - 777 & 8\& & 999 \\ \hline - \end{tabular} - -Given tex (table with lines w/o &s): - \begin{tabular}{|r|l|} - \hline - 7C0 & hexadecimal \\ - 3700&octal \\ \cline{2-2} - 1111100000 & binary \\ - \hline \hline - 1984 & decimal \\ - \hline - \end{tabular} - -Do (left-align*): - VG\*& - -Expect tex: - \begin{tabular}{|r|l|} - \hline - 7C0 & hexadecimal \\ - 3700 & octal \\ \cline{2-2} - 1111100000 & binary \\ - \hline \hline - 1984 & decimal \\ - \hline - \end{tabular} - -Do(left-align* and right-align around 2nd): - VG\*& - gv\\2& - -Expect tex: - \begin{tabular}{|r|l|} - \hline - 7C0 & hexadecimal \\ - 3700 & octal \\ \cline{2-2} - 1111100000 & binary \\ - \hline \hline - 1984 & decimal \\ - \hline - \end{tabular} - -Given tex: - \begin{tabular}{} - 32&1.14\e1&&5.65\e2&&&&1.16\e1&&1.28\e1&\\ - 64&1.03\e1&0.1&4.98\e2&0.2&&&9.21\e2&0.3&1.02\e1&0.3\\ - 128&9.86\e2&0.1&4.69\e2&0.1&&&8.46\e2&0.1&9.45\e2&0.1\\ - 256&9.65\e2&0.0&4.59\e2&0.0&&&8.15\e2&0.1&9.11\e2&0.1\\ - % 512&9.55\e2&0.0&4.56\e2&0.0&&&8.01\e2&0.0&8.96\e2&0.0\\ - 1024&9.49\e2&0.0&4.53\e2&0.0&&&7.94\e2&0.0&8.89\e2&0.0\\ - 2048&9.47\e2&0.0&4.52\e2&0.0&&&7.91\e2&0.0&8.85\e2&0.0\\ - 4096&9.46\e2&0.0&4.51\e2&0.0%&&&7.90\e2&0.0&8.83\e2&0.0\\ - 8192&9.45\e2&0.0&4.51\e2&0.0&&&&&&\\ - \end{tabular} - -Execute (Alignment around &s, foldmethod should not change): - setlocal foldmethod=syntax - %EasyAlign*& - AssertEqual 'syntax', &l:foldmethod - - setlocal foldmethod=manual - %EasyAlign*& - AssertEqual 'manual', &l:foldmethod - -Expect tex: - \begin{tabular}{} - 32 & 1.14\e1 & & 5.65\e2 & & & & 1.16\e1 & & 1.28\e1 & \\ - 64 & 1.03\e1 & 0.1 & 4.98\e2 & 0.2 & & & 9.21\e2 & 0.3 & 1.02\e1 & 0.3 \\ - 128 & 9.86\e2 & 0.1 & 4.69\e2 & 0.1 & & & 8.46\e2 & 0.1 & 9.45\e2 & 0.1 \\ - 256 & 9.65\e2 & 0.0 & 4.59\e2 & 0.0 & & & 8.15\e2 & 0.1 & 9.11\e2 & 0.1 \\ - % 512&9.55\e2&0.0&4.56\e2&0.0&&&8.01\e2&0.0&8.96\e2&0.0\\ - 1024 & 9.49\e2 & 0.0 & 4.53\e2 & 0.0 & & & 7.94\e2 & 0.0 & 8.89\e2 & 0.0 \\ - 2048 & 9.47\e2 & 0.0 & 4.52\e2 & 0.0 & & & 7.91\e2 & 0.0 & 8.85\e2 & 0.0 \\ - 4096 & 9.46\e2 & 0.0 & 4.51\e2 & 0.0%&&&7.90\e2&0.0&8.83\e2&0.0\\ - 8192 & 9.45\e2 & 0.0 & 4.51\e2 & 0.0 & & & & & & \\ - \end{tabular} - -Execute (g:easy_align_bypass_fold set, foldmethod should not change): - let g:easy_align_bypass_fold = 1 - setlocal foldmethod=syntax - %EasyAlign*& - AssertEqual 'syntax', &l:foldmethod - - setlocal foldmethod=manual - %EasyAlign*& - AssertEqual 'manual', &l:foldmethod - -Expect tex: - \begin{tabular}{} - 32 & 1.14\e1 & & 5.65\e2 & & & & 1.16\e1 & & 1.28\e1 & \\ - 64 & 1.03\e1 & 0.1 & 4.98\e2 & 0.2 & & & 9.21\e2 & 0.3 & 1.02\e1 & 0.3 \\ - 128 & 9.86\e2 & 0.1 & 4.69\e2 & 0.1 & & & 8.46\e2 & 0.1 & 9.45\e2 & 0.1 \\ - 256 & 9.65\e2 & 0.0 & 4.59\e2 & 0.0 & & & 8.15\e2 & 0.1 & 9.11\e2 & 0.1 \\ - % 512&9.55\e2&0.0&4.56\e2&0.0&&&8.01\e2&0.0&8.96\e2&0.0\\ - 1024 & 9.49\e2 & 0.0 & 4.53\e2 & 0.0 & & & 7.94\e2 & 0.0 & 8.89\e2 & 0.0 \\ - 2048 & 9.47\e2 & 0.0 & 4.52\e2 & 0.0 & & & 7.91\e2 & 0.0 & 8.85\e2 & 0.0 \\ - 4096 & 9.46\e2 & 0.0 & 4.51\e2 & 0.0%&&&7.90\e2&0.0&8.83\e2&0.0\\ - 8192 & 9.45\e2 & 0.0 & 4.51\e2 & 0.0 & & & & & & \\ - \end{tabular} - -Include: include/teardown.vader diff --git a/vim/.config/vim/plugged/vim-easy-align/zip b/vim/.config/vim/plugged/vim-easy-align/zip deleted file mode 100755 index c600013..0000000 --- a/vim/.config/vim/plugged/vim-easy-align/zip +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -git archive -o vim-easy-align.zip HEAD diff --git a/vim/.config/vim/plugged/vim-fireplace/.github/FUNDING.yml b/vim/.config/vim/plugged/vim-fireplace/.github/FUNDING.yml deleted file mode 100644 index 05a4968..0000000 --- a/vim/.config/vim/plugged/vim-fireplace/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: tpope -custom: ["https://www.paypal.me/vimpope"] diff --git a/vim/.config/vim/plugged/vim-fireplace/.gitignore b/vim/.config/vim/plugged/vim-fireplace/.gitignore deleted file mode 100644 index 6a82714..0000000 --- a/vim/.config/vim/plugged/vim-fireplace/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/doc/tags -*.pyc diff --git a/vim/.config/vim/plugged/vim-fireplace/CONTRIBUTING.markdown b/vim/.config/vim/plugged/vim-fireplace/CONTRIBUTING.markdown deleted file mode 100644 index e5d54ab..0000000 --- a/vim/.config/vim/plugged/vim-fireplace/CONTRIBUTING.markdown +++ /dev/null @@ -1,10 +0,0 @@ -## Contributing - -Open [GitHub issues][] for bug reports and feature requests. - -I'm a stickler for [commit messages][], so if you send me a pull -request with so much as superfluous period in the subject line, I will -reject it, then TP your house. - -[GitHub issues]: http://github.com/tpope/vim-fireplace/issues -[commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html diff --git a/vim/.config/vim/plugged/vim-fireplace/README.markdown b/vim/.config/vim/plugged/vim-fireplace/README.markdown deleted file mode 100644 index 655f9f6..0000000 --- a/vim/.config/vim/plugged/vim-fireplace/README.markdown +++ /dev/null @@ -1,128 +0,0 @@ -# fireplace.vim - -There's a REPL in Fireplace, but you probably wouldn't have noticed if I hadn't -told you. Such is the way with fireplace.vim. By the way, this plugin is for -Clojure. - -## Installation - -First, set up [cider-nrepl][]. (If you skip this step, only a subset of -functionality will be available.) - -Install Fireplace using your favorite package manager, or use Vim's built-in -package support: - - mkdir -p ~/.vim/pack/tpope/start - cd ~/.vim/pack/tpope/start - git clone https://tpope.io/vim/fireplace.git - vim -u NONE -c "helptags fireplace/doc" -c q - -You might also want [salve.vim][] for assorted static project support. - -## Features - -This list isn't exhaustive; see the `:help` for details. - -### Transparent setup - -Fireplace talks to nREPL. With Leiningen and Boot, it connects automatically -using the `.nrepl-port` file created when you run `lein repl` or `boot repl`. -If you are starting nREPL some other way, run `:FireplaceConnect host:port`. -You can connect to multiple instances of nREPL for different projects, and it -will use the right one automatically. ClojureScript support is just as -seamless with [Piggieback][]. - -If you're using the new [Clojure CLI][], you can follow the instructions for -[running cider-nrepl with `clj`][cider-nrepl-via-clj]. -Briefly, `clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.21.1"} }}' --m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"` should do the trick. -The [cider-nrepl][cider-nrepl-via-clj] docs also show you how you can add an alias to -your user's `~/.clojure/deps.edn` file, letting you more simply run `clj -A:cider-clj`. - -Oh, and if you don't have an nREPL connection, installing [salve.vim][] -lets it fall back to using `java clojure.main` for some of the basics, using a -class path based on your Leiningen or Boot config. It's a bit slow, but a -two-second delay is vastly preferable to being forced out of my flow for a -single command, in my book. - -[cider-nrepl]: https://docs.cider.mx/cider-nrepl/usage.html -[cider-nrepl-via-clj]: https://docs.cider.mx/cider-nrepl/usage.html#via-clj -[Piggieback]: https://github.com/nrepl/piggieback -[Clojure CLI]: https://clojure.org/guides/deps_and_cli -[classpath.vim]: https://github.com/tpope/vim-classpath -[salve.vim]: https://github.com/tpope/vim-salve - -### Not quite a REPL - -You know that one plugin that provides a REPL in a split window and works -absolutely flawlessly, never breaking just because you did something innocuous -like backspace through part of the prompt? No? Such a shame, you really -would have liked it. - -I've taken a different approach in Fireplace. `cq` (Think "Clojure -Quasi-REPL") is the prefix for a set of commands that bring up a *command-line -window* — the same thing you get when you hit `q:` — but set up for Clojure -code. - -`cqq` prepopulates the command-line window with the expression under the -cursor. `cqc` gives you a blank line in insert mode. - -### Evaluating from the buffer - -Standard stuff here. `:Eval` evaluates a range (`:%Eval` gets the whole -file), `:Require` requires a namespace with `:reload` (`:Require!` does -`:reload-all`), either the current buffer or a given argument. `:RunTests` -kicks off `(clojure.test/run-tests)` and loads the results into the quickfix -list. - -There's a `cp` operator that evaluates a given motion (`cpp` for the -innermost form under the cursor). `cm` and `c1m` are similar, but they only -run `clojure.walk/macroexpand-all` and `macroexpand-1` instead of evaluating -the form entirely. - -Any failed evaluation loads the stack trace into the location list, which -can be easily accessed with `:lopen`. - -### Navigating and Comprehending - -I was brand new to Clojure when I started this plugin, so stuff that helped me -understand code was a top priority. - -* `:Source`, `:Doc`, and `:FindDoc`, which map to the underlying - `clojure.repl` macro (with tab complete, of course). - -* `K` is mapped to look up the symbol under the cursor with `doc`. - -* `[d` is mapped to look up the symbol under the cursor with `source`. - -* `[` jumps to the definition of a symbol (even if it's inside a jar - file). `` does the same and uses the tag stack. - -* `gf`, everybody's favorite "go to file" command, works on namespaces. - -Where possible, I favor enhancing built-ins over inventing a bunch of -`` maps. - -### Omnicomplete - -Because why not? It works in the quasi-REPL too. - -## FAQ - -> Why does it take so long for Vim to start up? - -That's either [classpath.vim][] or [salve.vim][]. - -## Self-Promotion - -Like fireplace.vim? Follow the repository on -[GitHub](https://github.com/tpope/vim-fireplace) and vote for it on -[vim.org](http://www.vim.org/scripts/script.php?script_id=4978). And if -you're feeling especially charitable, follow [tpope](http://tpo.pe/) on -[Twitter](http://twitter.com/tpope) and -[GitHub](https://github.com/tpope). - -## License - -Copyright © Tim Pope. Distributed under the same terms as Vim itself. -See `:help license`. diff --git a/vim/.config/vim/plugged/vim-fireplace/autoload/fireplace.vim b/vim/.config/vim/plugged/vim-fireplace/autoload/fireplace.vim deleted file mode 100644 index 11bab6d..0000000 --- a/vim/.config/vim/plugged/vim-fireplace/autoload/fireplace.vim +++ /dev/null @@ -1,2589 +0,0 @@ -" Location: autoload/fireplace.vim -" Author: Tim Pope - -if exists('g:autoloaded_fireplace') - finish -endif -let g:autoloaded_fireplace = 1 - -" Section: Utilities - -function! s:map(mode, lhs, rhs, ...) abort - if get(g:, 'fireplace_no_maps') - return - endif - let flags = (a:0 ? a:1 : '') . (a:rhs =~# '^' ? '' : '