Nightly no longer supports a path in NVIM_APPNAME #24954
Replies: 5 comments 3 replies
-
Don't you already see in the issue #23056 that it wasn't working properly? |
Beta Was this translation helpful? Give feedback.
-
Update: I cannot reliably reproduce this. It appears Using Neovim 0.9.1 and a configuration in a subdirectory with NVIM_APPNAME set to that path, I am able to successfully call My guess is that some change(s) in nightly broke Neovim version used in test on macOS:
|
Beta Was this translation helpful? Give feedback.
-
The issue with const char *appname = get_appname();
xstrlcat(tmp, appname, sizeof(tmp)); where But, I didn't open this discussion to fix an issue, I just wanted to know why a feature I was using in 0.9 was curtailed in nightly. The answer thus far is "It wasn't working properly with |
Beta Was this translation helpful? Give feedback.
-
NVIM_APPNAME now supports relative (not absolute) paths: #25233 |
Beta Was this translation helpful? Give feedback.
-
Nice work! I am closing this discussion. |
Beta Was this translation helpful? Give feedback.
-
Neovim 0.9 introduced
NVIM_APPNAME
as a way to specify the location of the configuration folder, rather than always using~/.config/nvim
. I maintain a project that installs, initializes, and manages multiple Neovim configurations using this feature.In version 0.9 it is possible to specify a path like
neovim/my-cool-config
as theNVIM_APPNAME
environment variable value. This is especially nice if you have a lot of Neovim configurations to manage, put them all in a subdirectory of~/.config
.However, nightly Neovim has removed this capability. With nightly if you use a path for
NVIM_APPNAME
then you get an error message and nvim exits. The issue where this was decided indicates thatNVIM_APPNAME
was never intended to support paths, simply and strictly the name of a subdirectory in~/.config
.I do not know what the history or reasoning or intent was with implementation of this feature. But it was working pretty nicely and now it's not. What reasons do people have for disallowing support of a path in
NVIM_APPNAME
?Beta Was this translation helpful? Give feedback.
All reactions