-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Improve config files and rtp handling #1920
Comments
We may be able to do that with the There's also However this wouldn't allow us to drop
I think there's value in the rtp changes being shown transparently in
Not sure what you mean by "directory with init file is known to neovim"? My understanding is neovim computes this dir internally using But I'm not confident I fully understand this. I think I need to read https://neovim.io/doc/user/starting.html#initialization a few times 😂
|
Year, I was completely wrong about it. I thought that since --cmd is run before init.lua, I can set rtp there, and Nvim will find init.lua in rtp, but that's not the case. In that case wrapRc is unavoidable (or $VIMRUNTIME can be set manually in wrapper args, but it's basically the same thing). With this information fourth point is invalid. There is not a single reason to use --cmd args for rtp, only -u for init.lua. Settings rtp and packpath in extraConfigLuPre with mkBefore is perfectly OK. Fourth point can be changed to similar issue as filesPlugin, but with home-manager. Nixpkgs by default is adding plugin dir to rtp with |
I'm also trying to wrap my head around whether there's ever a good reason to have a user-configured The only time I can think of where specifying the vimrc via Even in that scenario, I don't think setting the vimrc with Historical contextThe The rtp modification to get an "isolated" config is a more recent change (c359761), that is not part of the nixpkgs implementation. IMO the isolated rtp doesn't conceptually relate to specifying the vimrc via the wrapper, so this may also benefit from either being a separate option or not being configurable at all. Simple option:Can we just remove the Is anyone aware of a legitimate use case for setting |
None comes to mind, but maybe someone relies on it and will explain their use case if we do something with it |
When |
True, but we could export that ourselves in the wrapper |
Still I think it's better to put init.lua in xdg_config_home to better emulate regular, non-nix neovim. So I'd say to make this option internal/readonly and set it to true by default. Home-manager wrapper can override it to false. In other cases it's unavoidable (unless maybe settings XDG_CONFIG_HOME in the wrapper? But it's worse than setting If |
Whatever approach we use, config will be installed to Anything in the wrapper (such as So I'm trying to think if there's any downsides to doing this universally, without a wrapRc option 🤔 |
I'm not aware of any side effects, if neovim is ran with |
@stasjok has an implementation here: stasjok/nixvim@
optimize-rtp
(commits) (last two commits), where the rtp is optimized as a "performance" option.#1886 (comment)
Related issues:
wrapRc
with "isolating" the rtp - these are really separate issues.wrapRc
should just be about listing the init file in the wrapper args, using-u
wrapRc
is enabled?filesPlugin
)Ping: @traxys @GaetanLepage
The text was updated successfully, but these errors were encountered: