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

x/ddc_vim/deps.ts>fn.exepath

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

If {expr} is an executable and is either an absolute path, a relative path or found in $PATH, return the full path. Note that the current directory is used when {expr} starts with "./", which may be a problem for Vim:

echo exepath(v:progpath)

If {expr} cannot be found in $PATH or is not executable then an empty string is returned.

Can also be used as a method:

GetCommand()->exepath()

Parameters

denops: Denops
expr: unknown

Returns

Promise<string>