#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/memory.h"
#include "nvim/os/os.h"
#include "nvim/os/stdpaths_defs.h"
#include "nvim/path.h"
Functions | |
char * | stdpaths_get_xdg_var (const XDGVarType idx) FUNC_ATTR_WARN_UNUSED_RESULT |
char * | get_xdg_home (const XDGVarType idx) FUNC_ATTR_WARN_UNUSED_RESULT |
char * | stdpaths_user_cache_subpath (const char *fname) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET |
char * | stdpaths_user_conf_subpath (const char *fname) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET |
char * | stdpaths_user_data_subpath (const char *fname) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET |
char * | stdpaths_user_state_subpath (const char *fname, const size_t trailing_pathseps, const bool escape_commas) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET |
char* get_xdg_home | ( | const XDGVarType | idx | ) |
Return Nvim-specific XDG directory subpath.
Windows: Uses "…/nvim-data" for kXDGDataHome to avoid storing configuration and data files in the same path. #4403
[in] | idx | XDG directory to use. |
char* stdpaths_get_xdg_var | ( | const XDGVarType | idx | ) |
Return XDG variable value
[in] | idx | XDG variable to use. |
char* stdpaths_user_cache_subpath | ( | const char * | fname | ) |
Return subpath of $XDG_CACHE_HOME
[in] | fname | New component of the path. |
$XDG_CACHE_HOME/nvim/{fname}
char* stdpaths_user_conf_subpath | ( | const char * | fname | ) |
Return subpath of $XDG_CONFIG_HOME
[in] | fname | New component of the path. |
$XDG_CONFIG_HOME/nvim/{fname}
char* stdpaths_user_data_subpath | ( | const char * | fname | ) |
Return subpath of $XDG_DATA_HOME
[in] | fname | New component of the path. |
$XDG_DATA_HOME/nvim/{fname}
char* stdpaths_user_state_subpath | ( | const char * | fname, |
const size_t | trailing_pathseps, | ||
const bool | escape_commas | ||
) |
Return subpath of $XDG_STATE_HOME
[in] | fname | New component of the path. |
[in] | trailing_pathseps | Amount of trailing path separators to add. |
[in] | escape_commas | If true, all commas will be escaped. |
$XDG_STATE_HOME/nvim/{fname}
.