diff options
author | glepnir <glephunter@gmail.com> | 2023-09-18 14:50:27 +0800 |
---|---|---|
committer | glepnir <glephunter@gmail.com> | 2023-09-26 19:41:23 +0800 |
commit | f8ea49cfe1f4f3ed30da160d346553f0949ec1de (patch) | |
tree | f6ce262e040b6bdd5f47ae9e3a470933f546f324 /runtime | |
parent | 71530cc972576e6656431b6d000aec9b69a0997e (diff) | |
download | rneovim-f8ea49cfe1f4f3ed30da160d346553f0949ec1de.tar.gz rneovim-f8ea49cfe1f4f3ed30da160d346553f0949ec1de.tar.bz2 rneovim-f8ea49cfe1f4f3ed30da160d346553f0949ec1de.zip |
fix(highlight): add force in nvim_set_hl
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api_keysets.lua | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index ffd90ec3d7..d30bb4851c 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1458,6 +1458,8 @@ nvim_set_hl({ns_id}, {name}, {*val}) *nvim_set_hl()* • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above. + • force: if true force update the highlight group when it + exists. nvim_set_hl_ns({ns_id}) *nvim_set_hl_ns()* Set active namespace for highlights defined with |nvim_set_hl()|. This can diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 6573c68493..3822e5ff5b 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1857,6 +1857,8 @@ function vim.api.nvim_set_decoration_provider(ns_id, opts) end --- • cterm: cterm attribute map, like `highlight-args`. If not --- set, cterm attributes will match those from the attribute --- map documented above. +--- • force: if true force update the highlight group when it +--- exists. function vim.api.nvim_set_hl(ns_id, name, val) end --- Set active namespace for highlights defined with `nvim_set_hl()`. This can diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua index 4d08563ce2..349c68f8f9 100644 --- a/runtime/lua/vim/_meta/api_keysets.lua +++ b/runtime/lua/vim/_meta/api_keysets.lua @@ -164,6 +164,7 @@ error('Cannot require a meta file') --- @field blend? integer --- @field fg_indexed? boolean --- @field bg_indexed? boolean +--- @field force? boolean --- @class vim.api.keyset.highlight_cterm --- @field bold? boolean |