Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configdir does not take into account HOME env #28350

Open
perrin4869 opened this issue Apr 15, 2024 · 0 comments
Open

configdir does not take into account HOME env #28350

perrin4869 opened this issue Apr 15, 2024 · 0 comments
Labels
bug issues reporting wrong behavior needs:repro We need minimal steps to reproduce the issue startup Nvim startup sequence (`:h startup`)

Comments

@perrin4869
Copy link
Contributor

Problem

I haven't been able to reproduce it reliably outside of github actions, but I am having trouble with the &rtp setting here, which will choose ~/.config/nvim regardless of the value of HOME. This is as opposed to, for example, datadir, which will be correctly added to rtp: /home/runner/work/dotfiles/dotfiles/home/.local/share/nvim

Steps to reproduce

run:

$ HOME=./home nvim --headless -c "echo &rtp" +qa
/home/runner/.config/nvim,/etc/xdg/nvim,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/pack/*/start/*,/usr/local/share/nvim/site,/usr/share/nvim/site,/home/runner/nvim-nightly/share/nvim/runtime,/home/runner/nvim-nightly/share/nvim/runtime/pack/dist/opt/matchit,/home/runner/nvim-nightly/lib/nvim,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/pack/*/start/*/after,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/after,/etc/xdg/nvim/after,/home/runner/.config/nvim/after

Expected behavior

$ HOME=./home nvim --headless -c "echo &rtp" +qa
/home/runner/work/dotfiles/dotfiles/home/.config/nvim,/etc/xdg/nvim,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/pack/*/start/*,/usr/local/share/nvim/site,/usr/share/nvim/site,/home/runner/nvim-nightly/share/nvim/runtime,/home/runner/nvim-nightly/share/nvim/runtime/pack/dist/opt/matchit,/home/runner/nvim-nightly/lib/nvim,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/pack/*/start/*/after,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/home/runner/work/dotfiles/dotfiles/home/.local/share/nvim/site/after,/etc/xdg/nvim/after,/home/runner/.config/nvim/after

Neovim version (nvim -v)

0.10.0_dev_2913+g5371ed36b

Vim (not Nvim) behaves the same?

irrelevant

Operating system/version

ubuntu-22.04

Terminal name/version

irrelevant

$TERM environment variable

irrelevant

Installation

build from repo

@perrin4869 perrin4869 added the bug issues reporting wrong behavior label Apr 15, 2024
@justinmk justinmk added needs:repro We need minimal steps to reproduce the issue startup Nvim startup sequence (`:h startup`) labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior needs:repro We need minimal steps to reproduce the issue startup Nvim startup sequence (`:h startup`)
Projects
None yet
Development

No branches or pull requests

2 participants