Skip to main content
Module

x/denops_std/function/mod.ts>cindent

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

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>