diff options
| author | glepnir <glephunter@gmail.com> | 2026-04-12 23:19:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-12 11:19:40 -0400 |
| commit | 1033739b60662661af61a07eb848552f2ce87e47 (patch) | |
| tree | 6b6635bf396996e61e211664c291bfa98d6cc7a8 /runtime/lua/vim/_meta/api.lua | |
| parent | 37eb1b99792c81c5f437e6d5a2fbb8dfba7c1472 (diff) | |
feat(api): nvim_set_hl can set "font" #37668
Problem: Cannot set highlight group fonts via API, only via :highlight
command.
Solution: Add font parameter in nvim_set_hl().
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index e9754ed8b5..44b4bd219a 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -2240,6 +2240,7 @@ function vim.api.nvim_set_decoration_provider(ns_id, opts) end --- - dim: boolean --- - fg: color name or "#RRGGBB", see note. --- - fg_indexed: boolean (default false) If true, fg is a terminal palette index (0-255). +--- - font: GUI font name (string). Sets `highlight-font`. Use "NONE" to clear. --- - force: if true force update the highlight group when it exists. --- - italic: boolean --- - link: Name of highlight group to link to. `:hi-link` |
