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

x/ddc_vim/deps.ts>fn.setloclist

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.setloclist
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { setloclist } = fn;

Create or replace or add to the location list for window {nr}. {nr} can be the window number or the window-ID. When {nr} is zero the current window is used.

For a location list window, the displayed location list is modified. For an invalid window number {nr}, -1 is returned. Otherwise, same as setqflist(). Also see location-list.

For {action} see setqflist-action.

If the optional {what} dictionary argument is supplied, then only the items listed in {what} are set. Refer to setqflist() for the list of supported keys in {what}.

Can also be used as a method, the base is passed as the second argument:

GetLoclist()->setloclist(winnr)

Parameters

denops: Denops
nr: unknown
list: unknown
optional
action: unknown
optional
what: unknown

Returns

Promise<number>