Skip to main content
Module

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

📚 Standard module for denops.vim
Latest
function nvim_get_runtime_file
import { nvim_get_runtime_file } from "https://deno.land/x/denops_std@v6.5.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.

Attributes: api-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>