diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-30 01:24:14 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-30 15:53:15 +0200 |
| commit | b9c839f3ee349fd3761308a992bbe04872689936 (patch) | |
| tree | c0b2ed89ad68d1e14cab5c1d253ab8f2aea0a1ec /plugin | |
| parent | 60f1f324d6ad8150b2f94c38b065671a74ba169d (diff) | |
| download | nvim-config-b9c839f3ee349fd3761308a992bbe04872689936.tar.gz nvim-config-b9c839f3ee349fd3761308a992bbe04872689936.zip | |
feat(terminal): follow output by default, toggle with G
Terminal buffers track their latest output by default: leaving
terminal mode or the window, and re-entering the window, jumps to the
bottom (G). Toggle per terminal with G in terminal mode or the
:TerminalFollow command; an active follow shows as +T in the
statusline.
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/50-color.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/50-color.lua b/plugin/50-color.lua index 4cdbad0..c88e34b 100644 --- a/plugin/50-color.lua +++ b/plugin/50-color.lua @@ -80,11 +80,13 @@ local function spell_status() end --[[ Custom status flags: `+F` when formatting is on for the buffer, `+H` when LSP inlay hints are on, -`+R` when disk-change autoreload is enabled (see 50-autoreload.lua), followed by the spell flag. ]] +`+R` when disk-change autoreload is enabled (see 50-autoreload.lua), `+T` when terminal follow is on +(see :TerminalFollow), followed by the spell flag. ]] local function statuses() return (vim.b.format and "+F" or "") .. (vim.lsp.inlay_hint.is_enabled({ bufnr = 0 }) and "+H" or "") .. (vim.g.autoreload and "+R" or "") + .. (vim.b.terminal_follow and "+T" or "") .. (vim.o.spell and spell_status() or "") end |
