Skip to main content

set_hl

Function set_hl 

Source
fn set_hl(ns_id: u32, hl_name: &str, hl_opts: &LuaHlOpts)
Expand description

Sets a highlight group in the specified namespace via Lua, bypassing the broken C FFI path.

Executes vim.api.nvim_set_hl(ns_id, hl_name, opts) through Neovim’s Lua interpreter. On failure, it notifies the error to Neovim instead of propagating it, ensuring the colorscheme setup continues gracefully.