aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorJesse van der Pluijm <jessevdp@hey.com>2026-01-15 14:19:43 +0100
committerJesse van der Pluijm <jessevdp@hey.com>2026-02-06 16:11:22 +0100
commitc785d5cdf062c8167e6de1b58d649707765c2c03 (patch)
treeaec5e2b78db3150b01635b088d92d91aea3384e4 /test/functional/vimscript/executable_spec.lua
parent6082b7f850b592a9d2e3a55b00b22dc862ad1858 (diff)
downloadrneovim-c785d5cdf062c8167e6de1b58d649707765c2c03.tar.gz
rneovim-c785d5cdf062c8167e6de1b58d649707765c2c03.tar.bz2
rneovim-c785d5cdf062c8167e6de1b58d649707765c2c03.zip
fix(startup): source init.lua from XDG_CONFIG_DIRS
Problem: `init.lua` files in `$XDG_CONFIG_DIRS` directories were not being sourced during startup, even though the documentation states they should be searched alongside `init.vim`. See: https://github.com/neovim/neovim/blob/e51f5e17e18429b847be4e0d99698727dec47ca9/runtime/doc/starting.txt#L495-L496 Solution: Modify `do_user_initialization()` to search for `init.lua` in each `$XDG_CONFIG_DIRS` directory before falling back to `init.vim`, matching the behavior for `$XDG_CONFIG_HOME`. Also show `E5422` error if both `init.lua` and `init.vim` exist in the same directory. Fixes #37405
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions