aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorJesse van der Pluijm <jessevdp@hey.com>2026-01-15 15:27:10 +0100
committerJesse van der Pluijm <jessevdp@hey.com>2026-02-06 16:12:01 +0100
commit5c51b45a8223035f1aa178eeb0f008b2eb818655 (patch)
treeeafcdb74f1f79b5cc2911341300548ee059112fe /test/functional/vimscript/executable_spec.lua
parentf899045adc16d19dd55f4d4af7f6b300bbe43acc (diff)
downloadrneovim-5c51b45a8223035f1aa178eeb0f008b2eb818655.tar.gz
rneovim-5c51b45a8223035f1aa178eeb0f008b2eb818655.tar.bz2
rneovim-5c51b45a8223035f1aa178eeb0f008b2eb818655.zip
fix(startup): respect $NVIM_APPNAME in $XDG_CONFIG_DIRS paths
Problem: $NVIM_APPNAME was not respected when searching $XDG_CONFIG_DIRS for config files. Nvim hardcoded "nvim" when constructing paths like `$XDG_CONFIG_DIRS/nvim/init.lua`, ignoring the $NVIM_APPNAME environment variable. This meant that config files like `$XDG_CONFIG_DIRS/myapp/init.lua` were not loaded, even though $NVIM_APPNAME was set to "myapp". Solution: Use `get_appname()` instead of hardcoded "nvim" for $XDG_CONFIG_DIRS paths in `do_system_initialization()` and `do_user_initialization()`. This makes $XDG_CONFIG_DIRS behave consistently with $XDG_CONFIG_HOME, which already respected $NVIM_APPNAME. As documented in `runtime/doc/starting.txt` (L1440-L1441): "In the help wherever `$XDG_CONFIG_…/nvim` is mentioned it is understood as `$XDG_CONFIG_…/$NVIM_APPNAME`." See: https://github.com/neovim/neovim/blob/43339dee40aa7731cc644315c15080e30aa1a67c/runtime/doc/starting.txt#L1440-L1441 Relates to #37405
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions