Skip to main content
Module

x/denops_std/mapping/mod.ts>list

📚 Standard module for denops.vim
Go to Latest
function list
import { list } from "https://deno.land/x/denops_std@v4.3.0/mapping/mod.ts";

List mappings which starts from lhs.

import { Denops } from "../mod.ts";
import * as mapping from "../mapping/mod.ts";

export async function main(denops: Denops): Promise<void> {
  const result = await mapping.list(denops, "<Plug>");
  console.log(result);
  // [
  //   {
  //     mode: "",
  //     lhs: "<Plug>(...)",
  //     // ...
  //   },
  //   // ...
  // ]
}

Parameters

denops: Denops
lhs: string
optional
options: ListOptions = [UNSUPPORTED]

Returns

Promise<Mapping[]>