aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-17 06:33:15 +0800
committerGitHub <noreply@github.com>2024-06-17 06:33:15 +0800
commit7746c54e108ebfccde5fa8748deab31e996d412d (patch)
tree8003189cf17f40eb2f299ed278f7426554341990 /src/nvim/options.lua
parentc3cb56d8ec2cab6842a8678c84d7fed4776822ca (diff)
parentad70c9892d5b5ebcc106742386c99524f074bcea (diff)
downloadrneovim-7746c54e108ebfccde5fa8748deab31e996d412d.tar.gz
rneovim-7746c54e108ebfccde5fa8748deab31e996d412d.tar.bz2
rneovim-7746c54e108ebfccde5fa8748deab31e996d412d.zip
Merge pull request #29357 from luukvbaal/statuscol
feat(column)!: rework 'statuscolumn' %r/l items
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index b6e6a83508..efa2ea7dd9 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -8040,8 +8040,7 @@ return {
Some of the items from the 'statusline' format are different for
'statuscolumn':
- %l line number of currently drawn line
- %r relative line number of currently drawn line
+ %l line number column for currently drawn line
%s sign column for currently drawn line
%C fold column for currently drawn line
@@ -8068,11 +8067,8 @@ return {
handler should be written with this in mind.
Examples: >vim
- " Relative number with bar separator and click handlers:
- set statuscolumn=%@SignCb@%s%=%T%@NumCb@%r│%T
-
- " Right aligned relative cursor line number:
- let &stc='%=%{v:relnum?v:relnum:v:lnum} '
+ " Line number with bar separator and click handlers:
+ set statuscolumn=%@SignCb@%s%=%T%@NumCb@%l│%T
" Line numbers in hexadecimal for non wrapped part of lines:
let &stc='%=%{v:virtnum>0?"":printf("%x",v:lnum)} '