mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
feat(api): nvim_set_hl{update:boolean} #37546
Problem: nvim_set_hl always replaces all attributes. Solution: Add update field. When true, merge with existing attributes instead of replacing. Unspecified attributes are preserved. If highlight group doesn't exist, falls back to reset mode.
This commit is contained in:
1
runtime/lua/vim/_meta/api.lua
generated
1
runtime/lua/vim/_meta/api.lua
generated
@@ -2253,6 +2253,7 @@ function vim.api.nvim_set_decoration_provider(ns_id, opts) end
|
||||
--- - underdotted: boolean
|
||||
--- - underdouble: boolean
|
||||
--- - underline: boolean
|
||||
--- - update: boolean false by default; true updates only specified attributes, leaving others unchanged.
|
||||
function vim.api.nvim_set_hl(ns_id, name, val) end
|
||||
|
||||
--- Set active namespace for highlights defined with `nvim_set_hl()`. This can be set for
|
||||
|
||||
1
runtime/lua/vim/_meta/api_keysets.lua
generated
1
runtime/lua/vim/_meta/api_keysets.lua
generated
@@ -329,6 +329,7 @@ error('Cannot require a meta file')
|
||||
--- @field fg_indexed? boolean
|
||||
--- @field bg_indexed? boolean
|
||||
--- @field force? boolean
|
||||
--- @field update? boolean
|
||||
--- @field url? string
|
||||
|
||||
--- @class vim.api.keyset.highlight_cterm
|
||||
|
||||
Reference in New Issue
Block a user