From 1033739b60662661af61a07eb848552f2ce87e47 Mon Sep 17 00:00:00 2001 From: glepnir Date: Sun, 12 Apr 2026 23:19:40 +0800 Subject: 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(). --- runtime/lua/vim/_meta/api.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/vim/_meta/api.lua') 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` -- cgit