Skip to main content
Module

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

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

Returns standard-path locations of various default files and directories.

{what} Type Description cache String Cache directory: arbitrary temporary storage for plugins, etc. config String User configuration directory. init.vim is stored here. config_dirs List Other configuration directories. data String User data directory. data_dirs List Other data directories. log String Logs directory (for use by plugins too). run String Run directory: temporary, local storage for sockets, named pipes, etc. state String Session state directory: storage for file drafts, swap, undo, shada.

Example:

:echo stdpath("config")

Parameters

denops: Denops
what: unknown

Returns

Promise<string | unknown[]>