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.swapname

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

The result is the swap file path of the buffer {expr}. For the use of {expr}, see |bufname()| above. If buffer {expr} is the current buffer, the result is equal to |:swapname| (unless no swap file). If buffer {expr} has no swap file, returns an empty string. Can also be used as a |method|: GetBufname()->swapname()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>