Skip to main content
Module

x/denops_std/function/mod.ts>synIDtrans

📚 Standard module for denops.vim
Go to Latest
function synIDtrans
import { synIDtrans } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

The result is a Number, which is the translated syntax ID of {synID}. This is the syntax group ID of what is being used to highlight the character. Highlight links given with ":highlight link" are followed.

Returns zero on error.

Can also be used as a method:

:echo synID(line("."), col("."), 1)->synIDtrans()->synIDattr("fg")

Parameters

denops: Denops
synID: unknown

Returns

Promise<number>