Skip to main content
The Deno 2 Release Candidate is here
Learn more
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@v4.1.4/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, undo, |shada|, etc. Example: :echo stdpath("config")

Parameters

denops: Denops
what: unknown

Returns

Promise<unknown>