mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 18:11:47 +00:00
eval: Add stdpath() method (#5297)
Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
This commit is contained in:
committed by
James McCoy
parent
e54ff10d44
commit
868b84199e
@@ -2286,6 +2286,7 @@ split({expr} [, {pat} [, {keepempty}]])
|
||||
List make |List| from {pat} separated {expr}
|
||||
sqrt({expr}) Float square root of {expr}
|
||||
stdioopen({dict}) Number open stdio in a headless instance.
|
||||
stdpath({what}) String/List returns the standard path(s) for {what}
|
||||
str2float({expr}) Float convert String to Float
|
||||
str2nr({expr} [, {base}]) Number convert String to Number
|
||||
strchars({expr} [, {skipcc}]) Number character length of the String {expr}
|
||||
@@ -7271,6 +7272,23 @@ stdioopen({opts}) *stdioopen()*
|
||||
- 0 on invalid arguments
|
||||
|
||||
|
||||
stdpath({what}) *stdpath()* *E6100*
|
||||
Returns the standard path(s) for {what}.
|
||||
|
||||
These directories are the default locations for various files
|
||||
used by Neovim.
|
||||
|
||||
{what} Type Description ~
|
||||
cache String Cache directory. Useful for plugins
|
||||
that need temporary files to work.
|
||||
config String User configuration directory. The
|
||||
|init.vim| is stored here.
|
||||
config_dirs List Additional configuration directories.
|
||||
data String User data directory. The |shada-file|
|
||||
is stored here.
|
||||
data_dirs List Additional data directories.
|
||||
|
||||
|
||||
str2float({expr}) *str2float()*
|
||||
Convert String {expr} to a Float. This mostly works the same
|
||||
as when using a floating point number in an expression, see
|
||||
|
||||
Reference in New Issue
Block a user