diff options
author | rktjmp <rktjmp@users.noreply.github.com> | 2024-02-22 00:25:08 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 21:25:08 +0800 |
commit | 6d8bbfe19df2175637a1e47ac1aafb0e96e35b38 (patch) | |
tree | 16e9c210405f4e1c928a1e0eb4bb5242d0803053 | |
parent | ac0e8323dc82622a201f49efcdfcb79567a8f75e (diff) | |
download | rneovim-6d8bbfe19df2175637a1e47ac1aafb0e96e35b38.tar.gz rneovim-6d8bbfe19df2175637a1e47ac1aafb0e96e35b38.tar.bz2 rneovim-6d8bbfe19df2175637a1e47ac1aafb0e96e35b38.zip |
docs: remove mention of foreground/background/special keys in nvim_set_hl (#27558)
To align the output of `nvim_get_hl` with its documentation -- which
points to `nvim_set_hl`, remove mentions of the keys `foreground`,
`background` and `special`.
The long keys are are still supported (via fallback checks inside
`dict2hlattrs`), but the `fg`, `bg` and `sp` keys are preferenced.
-rw-r--r-- | runtime/doc/api.txt | 6 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 6 | ||||
-rw-r--r-- | src/nvim/api/vim.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 503529dd01..c6e706d6c5 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1473,9 +1473,9 @@ nvim_set_hl({ns_id}, {name}, {*val}) *nvim_set_hl()* activate them. • {name} Highlight group name, e.g. "ErrorMsg" • {val} Highlight definition map, accepts the following keys: - • fg (or foreground): color name or "#RRGGBB", see note. - • bg (or background): color name or "#RRGGBB", see note. - • sp (or special): color name or "#RRGGBB" + • fg: color name or "#RRGGBB", see note. + • bg: color name or "#RRGGBB", see note. + • sp: color name or "#RRGGBB" • blend: integer between 0 and 100 • bold: boolean • standout: boolean diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 31ef3dd64b..cfdb65c2b5 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1819,9 +1819,9 @@ function vim.api.nvim_set_decoration_provider(ns_id, opts) end --- activate them. --- @param name string Highlight group name, e.g. "ErrorMsg" --- @param val vim.api.keyset.highlight Highlight definition map, accepts the following keys: ---- • fg (or foreground): color name or "#RRGGBB", see note. ---- • bg (or background): color name or "#RRGGBB", see note. ---- • sp (or special): color name or "#RRGGBB" +--- • fg: color name or "#RRGGBB", see note. +--- • bg: color name or "#RRGGBB", see note. +--- • sp: color name or "#RRGGBB" --- • blend: integer between 0 and 100 --- • bold: boolean --- • standout: boolean diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 2888656a7a..b3d38cde69 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -141,9 +141,9 @@ Dictionary nvim_get_hl(Integer ns_id, Dict(get_highlight) *opts, Arena *arena, E /// |nvim_set_hl_ns()| or |nvim_win_set_hl_ns()| to activate them. /// @param name Highlight group name, e.g. "ErrorMsg" /// @param val Highlight definition map, accepts the following keys: -/// - fg (or foreground): color name or "#RRGGBB", see note. -/// - bg (or background): color name or "#RRGGBB", see note. -/// - sp (or special): color name or "#RRGGBB" +/// - fg: color name or "#RRGGBB", see note. +/// - bg: color name or "#RRGGBB", see note. +/// - sp: color name or "#RRGGBB" /// - blend: integer between 0 and 100 /// - bold: boolean /// - standout: boolean |