Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v6.4.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>