Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.histnr

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

The result is the Number of the current entry in {history}. See hist-names for the possible values of {history}. If an error occurred, -1 is returned.

Example:

:let inp_index = histnr("expr")

Can also be used as a method:

GetHistory()->histnr()

Parameters

denops: Denops
history: unknown

Returns

Promise<number>