mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
docs: nvim_set_hl fg_index, bg_indexed #37534
This commit is contained in:
@@ -1548,6 +1548,10 @@ nvim_set_hl({ns_id}, {name}, {val}) *nvim_set_hl()*
|
||||
accepts the following keys:
|
||||
• fg: color name or "#RRGGBB", see note.
|
||||
• bg: color name or "#RRGGBB", see note.
|
||||
• fg_indexed: boolean When true, fg is a terminal palette
|
||||
index (0-255). Default is false.
|
||||
• bg_indexed: boolean Same as fg_indexed, but for background
|
||||
color.
|
||||
• sp: color name or "#RRGGBB"
|
||||
• blend: integer between 0 and 100
|
||||
• bold: boolean
|
||||
|
||||
5
runtime/lua/vim/_meta/api.lua
generated
5
runtime/lua/vim/_meta/api.lua
generated
@@ -2200,6 +2200,11 @@ function vim.api.nvim_set_decoration_provider(ns_id, opts) end
|
||||
--- @param val vim.api.keyset.highlight Highlight definition map, accepts the following keys:
|
||||
--- - fg: color name or "#RRGGBB", see note.
|
||||
--- - bg: color name or "#RRGGBB", see note.
|
||||
--- - fg_indexed: boolean
|
||||
--- When true, fg is a terminal palette index (0-255).
|
||||
--- Default is false.
|
||||
--- - bg_indexed: boolean
|
||||
--- Same as fg_indexed, but for background color.
|
||||
--- - sp: color name or "#RRGGBB"
|
||||
--- - blend: integer between 0 and 100
|
||||
--- - bold: boolean
|
||||
|
||||
@@ -144,6 +144,11 @@ DictAs(get_hl_info) nvim_get_hl(Integer ns_id, Dict(get_highlight) *opts, Arena
|
||||
/// @param val Highlight definition map, accepts the following keys:
|
||||
/// - fg: color name or "#RRGGBB", see note.
|
||||
/// - bg: color name or "#RRGGBB", see note.
|
||||
/// - fg_indexed: boolean
|
||||
/// When true, fg is a terminal palette index (0-255).
|
||||
/// Default is false.
|
||||
/// - bg_indexed: boolean
|
||||
/// Same as fg_indexed, but for background color.
|
||||
/// - sp: color name or "#RRGGBB"
|
||||
/// - blend: integer between 0 and 100
|
||||
/// - bold: boolean
|
||||
|
||||
Reference in New Issue
Block a user