aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/stdpaths.c
Commit message (Collapse)AuthorAge
* refactor: format files with uncrustify #15663dundargoc2021-09-14
|
* logging: move to XDG_CACHE_HOME (#13739)Michael Lingelbach2021-01-13
| | | | | while there is some controversy, stdpath('cache') looks like a better fit for logs than stdpath('data'): you can remove logs without preventing nvim to work which fits the XDG_CACHE_HOME definition of `user specific non-essential data files`.
* stdpaths_get_xdg_var: consider empty env vars #10953Daniel Hahler2019-09-06
| | | | | Without this "sysinit uses VIM if XDG_CONFIG_DIRS unset" fails with an existing `/etc/xdg/nvim/sysinit.vim` file, because `XDG_CONFIG_DIRS=` is not considered, but the default ("/etc/xdg") used then.
* win/defaults: Use "…/nvim-data/site" in 'runtimepath'Justin M. Keyes2019-04-28
| | | | | | | | | | On Windows we store non-config data in "$XDG_DATA_HOME/nvim-data". But the "…/site" items in 'runtimepath' did not correctly point to that location, they used "…/nvim/site". Fix the init logic to use "…/nvim-data/site". closes #9910
* do not pass NULL to os_getenvJustin M. Keyes2018-05-18
| | | | closes #8393
* eval: Add stdpath() method (#5297)Christian Höltje2018-03-29
| | | | | | Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
* *: Add comment to all C filesZyX2017-04-19
|
* XDG: Windows: resolve $LOCALAPPDATA, $TEMP (#5278)Rui Abreu Ferreira2017-01-08
| | | | | | | | | | After #4964 environment variables in the XDG "fallback" table are no longer expanded. Fallback to correctly expanded $LOCALAPPDATA, $TEMP. If that fails (unlikely), fallback to hard-coded paths (e.g. ~/AppData/Local). Closes #5255
* option: Also escape commas in options other then &runtimepathZyX2016-07-10
|
* Lint: fix line length >80Marco Hinz2016-03-04
| | | | | | Introduced here: https://github.com/neovim/neovim/commit/4bfac00aa389487c4f11d34e7a3e96e4a1116800#diff-2bf87eef9f7b99dcea4b0c55beee2d63R78
* Windows: XDG: Update default paths. #4403Rui Abreu Ferreira2016-03-03
| | | | | | | | | | | | | | | The previous defaults were including the nvim suffix, causing it to apear twice in the final paths. kXDGDataHome and kXDGConfigHome are now set as %LOCALAPPDATA%, kXDGCacheHome is set as $TEMP. In Windows there is no distinction between configuration and data storage, but we don't want to place all files under the same path. get_xdg_home() now appends a different path suffix for kXDGDataHome. - Configuration files are saved under %LOCALAPPDATA%\nvim - Data files are saved under %LOCALAPPDATA%\nvim-data
* stdpaths: Document that stdpaths_*_subpath is not returning NULLZyX2015-10-29
|
* stdpaths: Use NULL in place of empty stringsZyX2015-10-29
|
* stdpaths: Remove outdated commentZyX2015-10-23
|
* stdpaths: Add Windows-specific directoriesZyX2015-10-23
|
* stdpaths: Add missing includeZyX2015-10-23
|
* stdpaths: Remove Apple defaults, use \*nix ones insteadZyX2015-10-23
|
* option: Add `//` to the end of default `&directory`ZyX2015-10-23
|
* stdpaths: Add documentationZyX2015-10-23
|
* stdpaths: Do NOT create data directoriesZyX2015-10-23
| | | | | | This is none of option.c business to create *possibly unneeded* **default** directories **before** user specified where he actually wants to place the files.
* stdpaths: Give proper error message in case directory creation failedZyX2015-10-23
|
* stdpaths,main: Remove all remaining memory leaksZyX2015-10-23
|
* stdpaths: Export get_xdg function (renamed) and use it for runtimepathZyX2015-10-23
|
* stdpaths: Rename export functions so that they have common prefixZyX2015-10-23
|
* stdpaths: Remove useless functions get_user_*_dirZyX2015-10-23
|
* stdpaths: Fix some issues, specificallyZyX2015-10-23
| | | | | | | - Remove/add includes - Do not pretend that returns are const - Add function attributes - Allocate memory always in get_xdg
* option,main: Partial support of XDG base directory specificationKeerthan Jaic2015-10-23
- Add functions that are able to query XDG. - Replace defaults for - &runtimepath. Does not follow #78. - &viewdir. - &undodir. - &directory. - &backupdir. Does not follow #78. - vimrc location. - Remove user vimrc file line from :version message.