summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-30 01:24:14 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-30 10:20:00 +0200
commit5884cc2ecba6a23ee960bdd190653fe33f28474b (patch)
tree42095fd5b75fbf987d9444598d2cbfc45b344358 /plugin
parent61efaa62c405c6f0c03f4f52e1003bc1a3569b88 (diff)
downloadnvim-config-5884cc2ecba6a23ee960bdd190653fe33f28474b.tar.gz
nvim-config-5884cc2ecba6a23ee960bdd190653fe33f28474b.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.lua4
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