aboutsummaryrefslogtreecommitdiff
path: root/runtime/optwin.vim
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-01-09 18:12:06 +0100
committerGitHub <noreply@github.com>2023-01-09 17:12:06 +0000
commit364b131f42509326c912c9b0fef5dfc94ed23b41 (patch)
tree654f24fde95819257002aa9b36990efd6a80535c /runtime/optwin.vim
parent50f03773f4b9f4638489ccfd0503dc9e39e5de78 (diff)
downloadrneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.tar.gz
rneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.tar.bz2
rneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.zip
feat(ui): add 'statuscolumn' option
Problem: Unable to customize the column next to a window ('gutter'). Solution: Add 'statuscolumn' option that follows the 'statusline' syntax, allowing to customize the status column. Also supporting the %@ click execute function label. Adds new items @C and @s which will print the fold and sign columns. Line numbers and signs can be clicked, highlighted, aligned, transformed, margined etc.
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r--runtime/optwin.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim
index b29b60e145..200254321e 100644
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -452,6 +452,9 @@ call <SID>Header(gettext("multiple windows"))
call <SID>AddOption("laststatus", gettext("0, 1, 2 or 3; when to use a status line for the last window"))
call append("$", " \tset ls=" . &ls)
if has("statusline")
+ call <SID>AddOption("statuscolumn", gettext("custom format for the status column"))
+ call append("$", "\t" .. s:local_to_window)
+ call <SID>OptionG("stc", &stc)
call <SID>AddOption("statusline", gettext("alternate format to be used for a status line"))
call <SID>OptionG("stl", &stl)
endif