From 5884cc2ecba6a23ee960bdd190653fe33f28474b Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 30 Jun 2026 01:24:14 +0200 Subject: 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. --- plugin/50-color.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin') 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 -- cgit v1.3.1