fix(highlight): add create param in nvim_get_hl

This commit is contained in:
glepnir
2023-09-07 18:42:38 +08:00
parent 82150ca51b
commit 8afb3a49c0
7 changed files with 23 additions and 1 deletions

View File

@@ -1193,6 +1193,8 @@ function vim.api.nvim_get_current_win() end
--- • id: (integer) Get a highlight definition by id.
--- • link: (boolean, default true) Show linked group name
--- instead of effective definition `:hi-link`.
--- • create: (boolean, default true) When highlight group
--- doesn't exist create it.
--- @return table<string,any>
function vim.api.nvim_get_hl(ns_id, opts) end