Skip to main content
Module

x/denops_std/function/mod.ts>lispindent

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

Get the amount of indent for line {lnum} according the lisp indenting rules, as with 'lisp'. The indent is counted in spaces, the value of 'tabstop' is relevant. {lnum} is used just like in |getline()|. When {lnum} is invalid or Vim was not compiled the |+lispindent| feature, -1 is returned. Can also be used as a |method|: GetLnum()->lispindent()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<unknown>