Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.synIDtrans

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.synIDtrans
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { synIDtrans } = fn;

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>