Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ddc_vim/deps.ts>fn.settagstack

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

Modify the tag stack of the window {nr} using {dict}. {nr} can be the window number or the |window-ID|. For a list of supported items in {dict}, refer to |gettagstack()| If {action} is not present or is set to 'r', then the tag stack is replaced. If {action} is set to 'a', then new entries from {dict} are pushed onto the tag stack. Returns zero for success, -1 for failure. Examples: Set current index of the tag stack to 4: call settagstack(1005, {'curidx' : 4}) Empty the tag stack of window 3: call settagstack(3, {'items' : []}) Push a new item onto the tag stack: let pos = [bufnr('myfile.txt'), 10, 1, 0] let newtag = [{'tagname' : 'mytag', 'from' : pos}] call settagstack(2, {'items' : newtag}, 'a') Save and restore the tag stack: let stack = gettagstack(1003) " do something else call settagstack(1003, stack) unlet stack Can also be used as a |method|, the base is passed as the second argument: GetStack()->settagstack(winnr)

Parameters

denops: Denops
nr: unknown
dict: unknown
optional
action: unknown

Returns

Promise<unknown>