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

x/ddu_vim/deps.ts>fn.indent

Dark deno-powered UI framework for neovim/Vim
Go to Latest
function fn.indent
import { fn } from "https://deno.land/x/ddu_vim@v4.0.0/deps.ts";
const { indent } = fn;

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

Can also be used as a method:

GetLnum()->indent()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<number>