Skip to main content
Module

x/ddc_vim/deps.ts>fn.append

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

When {text} is a |List|: Append each item of the |List| as a text line below line {lnum} in the current buffer. Otherwise append {text} as one text line below line {lnum} in the current buffer. Any type of item is accepted and converted to a String. {lnum} can be zero to insert a line before the first one. Returns 1 for failure ({lnum} out of range or out of memory), 0 for success. Example: :let failed = append(line('$'), "# THE END") :let failed = append(0, ["Chapter 1", "the beginning"]) Can also be used as a |method| after a List, the base is passed as the second argument: mylist->append(lnum)

Parameters

denops: Denops
lnum: unknown
text: unknown

Returns

Promise<unknown>