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().
This commit is contained in:
glepnir
2026-04-12 23:19:40 +08:00
committed by GitHub
parent 37eb1b9979
commit 1033739b60
10 changed files with 106 additions and 5 deletions

View File

@@ -337,6 +337,7 @@ error('Cannot require a meta file')
--- @field force? boolean
--- @field update? boolean
--- @field url? string
--- @field font? string
--- @class vim.api.keyset.highlight_cterm
--- @field bold? boolean