diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f80a1c..f604408 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ ### Added - `:ChopsticksStatus` diagnostic command — checks system tools, LSP servers, linters, formatters +- `,af` toggle format-on-save (ALE `fix_on_save`) +- `,gL` git log graph (last 20 commits) +- `,gC` FZF git commits search, `,gB` buffer commits + +### Fixed +- `g:loaded_logipat` typo → `g:loaded_logiPat` — logiPat was loading fully (0.478ms wasted) + +### Changed +- Skip 2 more built-in plugins: openPlugin, manpager (10 → 12 total) ## 2.1.0 — 2025-04-22 diff --git a/README.md b/README.md index 3bc5395..569efac 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ jk exit insert mode ,? cheat sheet ### Git -`,gs` status | `,gd` diff | `,gb` blame | `,gc` commit | `,gp` push | `,gl` pull | `]x` `[x` conflict +`,gs` status | `,gd` diff | `,gb` blame | `,gc` commit | `,gp` push | `,gl` pull | `,gL` log graph | `,gC` FZF commits | `,gB` buffer commits | `]x` `[x` conflict ### Windows @@ -104,7 +104,7 @@ jk exit insert mode ,? cheat sheet ### Toggle -`F2` paste | `F3` line numbers | `F4` relative numbers | `F6` invisible chars | `,ss` spell check +`F2` paste | `F3` line numbers | `F4` relative numbers | `F6` invisible chars | `,ss` spell check | `,af` format on save ### Utilities @@ -150,7 +150,7 @@ Each module is self-contained. Comment out one line in `.vimrc` to disable it. A | Metric | Value | |--------|-------| | Lazy-loaded | 7 plugins (on command or filetype) | -| Built-in plugins skipped | 10 (gzip, tar, zip, vimball, etc.) | +| Built-in plugins skipped | 12 (gzip, tar, zip, vimball, logiPat, etc.) | | Large file threshold | 10MB (auto-disables syntax + undo) | | TTY large file | 500KB (syntax disabled) | diff --git a/modules/env.vim b/modules/env.vim index 308b86f..396ce4c 100644 --- a/modules/env.vim +++ b/modules/env.vim @@ -7,13 +7,15 @@ let g:is_tty = empty($TERM) || $TERM ==# 'dumb' || $TERM =~# 'linux' let g:has_true_color = ($COLORTERM ==# 'truecolor' || $COLORTERM ==# '24bit') " Skip built-in plugins we never use -let g:loaded_2html_plugin = 1 -let g:loaded_getscriptPlugin = 1 -let g:loaded_gzip = 1 -let g:loaded_logipat = 1 -let g:loaded_rrhelper = 1 -let g:loaded_tarPlugin = 1 -let g:loaded_vimballPlugin = 1 -let g:loaded_zipPlugin = 1 +let g:loaded_2html_plugin = 1 +let g:loaded_getscriptPlugin = 1 +let g:loaded_gzip = 1 +let g:loaded_logiPat = 1 +let g:loaded_rrhelper = 1 +let g:loaded_tarPlugin = 1 +let g:loaded_vimballPlugin = 1 +let g:loaded_zipPlugin = 1 let g:loaded_tutor_mode_plugin = 1 -let g:loaded_spellfile_plugin = 1 +let g:loaded_spellfile_plugin = 1 +let g:loaded_openPlugin = 1 +let g:loaded_manpager_plugin = 1 diff --git a/modules/git.vim b/modules/git.vim index 9ba0e53..3bd4b1d 100644 --- a/modules/git.vim +++ b/modules/git.vim @@ -18,6 +18,7 @@ if exists('g:plugs["vim-fugitive"]') nnoremap gl :Git pull nnoremap gd :Gdiffsplit nnoremap gb :Git blame + nnoremap gL :Git log --oneline --graph -20 endif " ── Conflict Navigation ──────────────────────────────────────────────────── diff --git a/modules/lint.vim b/modules/lint.vim index 2e76a7e..be6efa8 100644 --- a/modules/lint.vim +++ b/modules/lint.vim @@ -50,4 +50,6 @@ if exists('g:plugs["ale"]') nnoremap [e :ALEPrevious nnoremap ]e :ALENext nnoremap aD :ALEDetail + nnoremap af :let g:ale_fix_on_save = !g:ale_fix_on_save + \ echo 'Format on save: ' . (g:ale_fix_on_save ? 'ON' : 'OFF') endif diff --git a/modules/navigation.vim b/modules/navigation.vim index caa710f..28d7a30 100644 --- a/modules/navigation.vim +++ b/modules/navigation.vim @@ -60,6 +60,8 @@ if exists('g:plugs["fzf.vim"]') nnoremap fL :Lines nnoremap f/ :History/ nnoremap f: :History: + nnoremap gC :Commits + nnoremap gB :BCommits endif let g:fzf_layout = { 'down': '40%' } diff --git a/modules/tools.vim b/modules/tools.vim index 78d5d2e..3e32b3f 100644 --- a/modules/tools.vim +++ b/modules/tools.vim @@ -248,6 +248,7 @@ function! s:CheatSheet() abort \ ' ,mt table of contents', \ ' [g ]g LSP diagnostics', \ ' [e ]e ALE errors', + \ ' ,af format on save', \ ' :LspInstallServer setup LSP', \ '', \ ' ── edit ──────────────────', @@ -268,6 +269,8 @@ function! s:CheatSheet() abort \ ' ,gc commit', \ ' ,gp push', \ ' ,gl pull', + \ ' ,gL log graph', + \ ' ,gC FZF commits', \ ' [x ]x conflict markers', \ '', \ ' ── windows ───────────────',