Skip to content

Neovim Integration

Zonvie exposes several Neovim-side variables and RPC notifications for runtime customization.

Set automatically on startup. Contains the RPC channel ID for communication with Zonvie. Send notifications to this channel rather than channel 0, which would broadcast to every RPC client (such as coc.nvim).

Any window can use its own font or scale:

zonvie.set_window_font(0, { guifont = "Iosevka:h18" }) -- 0 = current window
zonvie.set_window_font(win, { scale = 1.5 })
zonvie.set_window_font(win, {}) -- back to the global font

The 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.

Zonvie exports CLAUDE_CODE_NATIVE_CURSOR=1 to the Neovim process it spawns (on both macOS and Windows), so Claude Code running in a :terminal inside Zonvie renders its cursor natively.

Configure a bloom/glow post-processing effect for specific highlight groups:

vim.g.zonvie_glow = {
groups = { "Keyword", "String", "Function" }, -- or "all" for every cell
radius = 6, -- blur radius in pixels (2-16)
intensity = 0.8, -- glow brightness (0.0-1.0)
}

Zonvie reads this variable on startup (with automatic retry for lazy plugin initialization) and applies a Dual Kawase bloom shader to matching highlight groups.

Dynamically change the Option-as-Meta behavior at runtime, equivalent to Neovim-Qt’s macmeta option:

vim.rpcnotify(vim.g.zonvie_channel, "zonvie_option_as_meta", "both")
-- Values: "both", "none", "only_left", "only_right"

This can also be set statically via the [input] option_as_meta config key.

Programmatically disable the IME input method:

vim.rpcnotify(vim.g.zonvie_channel, "zonvie_ime_off")

Useful for automatically switching off IME when entering normal mode via autocommands.