Skip to main content
Module

x/denops_std/function/mod.ts>indent

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

The result is a Number, which is indent of line {lnum} in the current buffer. 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. Can also be used as a |method|: GetLnum()->indent()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<unknown>