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

x/ddc_vim/deps.ts>fn.cindent

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

Get the amount of indent for line {lnum} according the C indenting rules, as with 'cindent'. The indent is counted in spaces, the value of 'tabstop' is relevant. {lnum} is used just like in getline(). When {lnum} is invalid -1 is returned. See C-indenting.

Can also be used as a method:

GetLnum()->cindent()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<number>