diff options
author | James McCoy <jamessan@jamessan.com> | 2021-12-22 19:45:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-22 19:45:28 +0000 |
commit | a80aad717464760a5a50ac2201ce35b24a0cf7a5 (patch) | |
tree | 968eca4115530a2d08a151f5c3cc957b4b43d69d /runtime | |
parent | 82b3b4c6cf2973fe767f8e2311482af0bd95267e (diff) |
patch 8.2.3874: cannot highlight the number column for a signv8.2.3874
Problem: Cannot highlight the number column for a sign.
Solution: Add the "numhl" argument. (James McCoy, closes #9381)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 4 | ||||
-rw-r--r-- | runtime/doc/sign.txt | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 3e71ba14e5..b4e7761659 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5601,8 +5601,8 @@ A jump table for the options with a short description can be found at |Q_op|. number. When a long, wrapped line doesn't start with the first character, '-' characters are put before the number. - See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for - the number. + For highlighting see |hl-LineNr|, and |hl-CursorLineNr|, and the + |:sign-define| "numhl" argument. *number_relativenumber* The 'relativenumber' option changes the displayed number to be relative to the cursor. Together with 'number' there are these diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt index 7976cecca8..125e592158 100644 --- a/runtime/doc/sign.txt +++ b/runtime/doc/sign.txt @@ -140,6 +140,11 @@ See |sign_define()| for the equivalent Vim script function. Highlighting group used for the whole line the sign is placed in. Most useful is defining a background color. + numhl={group} + Highlighting group used for the line number on the line where + the sign is placed. Overrides |hl-LineNr|, |hl-LineNrAbove|, + |hl-LineNrBelow|, and |hl-CursorLineNr|. + text={text} *E239* Define the text that is displayed when there is no icon or the GUI is not being used. Only printable characters are allowed @@ -396,6 +401,8 @@ sign_define({list}) icon full path to the bitmap file for the sign. linehl highlight group used for the whole line the sign is placed in. + numhl highlight group used for the line number where + the sign is placed. text text that is displayed when there is no icon or the GUI is not being used. texthl highlight group used for the text item @@ -443,6 +450,8 @@ sign_getdefined([{name}]) *sign_getdefined()* linehl highlight group used for the whole line the sign is placed in; not present if not set name name of the sign + numhl highlight group used for the line number where + the sign is placed; not present if not set text text that is displayed when there is no icon or the GUI is not being used. texthl highlight group used for the text item; not |