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

x/ddc_vim/deps.ts>fn.lispindent

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.lispindent
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { lispindent } = fn;

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 -1 is returned. In Vim9 script an error is given.

Can also be used as a method:

GetLnum()->lispindent()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<number>