mirror of
https://github.com/neovim/neovim.git
synced 2026-04-18 05:20:40 +00:00
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:
1
runtime/lua/vim/_meta/api.lua
generated
1
runtime/lua/vim/_meta/api.lua
generated
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user