Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/nvim/mod.ts>nvim_get_runtime_file

📚 Standard module for denops.vim
Go to Latest
function nvim_get_runtime_file
import { nvim_get_runtime_file } from "https://deno.land/x/denops_std@v3.6.0/function/nvim/mod.ts";

Find files in runtime directories 'name' can contain wildcards. For example nvim_get_runtime_file("colors/*.vim", true) will return all color scheme files. Always use forward slashes (/) in the search pattern for subdirectories regardless of platform. It is not an error to not find any files. An empty array is returned then. To find a directory, name must end with a forward slash, like "rplugin/python/". Without the slash it would instead look for an ordinary file called "rplugin/python". Attributes: ~ {fast} Parameters: ~ {name} pattern of files to search for {all} whether to return all matches or only the first Return: ~ list of absolute paths to the found files

Parameters

denops: Denops
name: unknown
all: unknown

Returns

Promise<unknown>