font
Sets the editor font.
[font]family = "JetBrains Mono"size = 14linespace = 2| Key | Description |
|---|---|
family |
Font family name |
size |
Font size in points |
linespace |
Extra line spacing in pixels (default 0). May be negative to pull rows together, as Neovim’s 'linespace' allows; the resulting row height is kept positive |
Changing the font at runtime
Section titled “Changing the font at runtime”:set guifont=*opens the native font picker dialog.:set columns=N/:set lines=Nare honored as window resize requests.
Per-window fonts
Section titled “Per-window fonts”Any window or float can use its own font or scale via the zonvie Lua helper:
zonvie.set_window_font(0, { guifont = "Iosevka:h18" }) -- 0 = current windowzonvie.set_window_font(win, { scale = 1.5 })zonvie.set_window_font(win, {}) -- back to the global fontThe helper writes vim.w.zonvie_guifont / vim.w.zonvie_font_scale and asks
Zonvie to apply them; setting those window variables directly also works and is
picked up on the next update. A split keeps its frame and Neovim resizes its
grid to fit the new cell; a float keeps its rows and columns and grows or
shrinks on screen. vim.w.neovide_font_scale is honored on floats, and
zonvie_* wins when both are set.