Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/nvim/mod.ts>nvim_get_color_by_name

📚 Standard module for denops.vim
Go to Latest
function nvim_get_color_by_name
import { nvim_get_color_by_name } from "https://deno.land/x/denops_std@v5.1.0/function/nvim/mod.ts";

Returns the 24-bit RGB value of a nvim_get_color_map() color name or "#rrggbb" hexadecimal string.

Example:

:echo nvim_get_color_by_name("Pink")
:echo nvim_get_color_by_name("#cbcbcb")

Parameters: {name} Color name or "#rrggbb" string

Return: 24-bit RGB value, or -1 for invalid argument.

Parameters

denops: Denops
name: unknown

Returns

Promise<unknown>