Current state
In the spirit of #1, our neovim config could use a bit of modularization.
The way my neovim config is currently setup is kind of a workaround working with Nix.
I'm basically just storing the path in a global variable and loading each file using luafile.
This causes problem with my neovim's runtimepath not being set correctly (a hassle when configuring as it causes the LSP to not be able to fetch the packages' parameters).
To be honest I'm not really sure it would fix things but this has been on my todolist for a while now, and modularizing this config would make switching between setups easier.
Solutions
- Keeping as is, finding how to fix my lua config
- Already broke a tooth or two trying, didn't work
- Not really documented elsewhere (Am I messing up elsewhere ?)
- Using the better way to include nvim packages when working with home-manager
- Cold work, but may not resolve my issues with runtime path not being set correctly
- The
default.nix will get exponentially bigger
- Not really fitting with "typical" nvim configurations, hence hard to extract later if needed
- Use a symlink between
.config/nvim and programs/neovim
- More in the style of the usual neovim configurations
TODO
References
Current state
In the spirit of #1, our
neovimconfig could use a bit of modularization.The way my neovim config is currently setup is kind of a workaround working with Nix.
I'm basically just storing the path in a global variable and loading each file using
luafile.This causes problem with my neovim's
runtimepathnot being set correctly (a hassle when configuring as it causes the LSP to not be able to fetch the packages' parameters).To be honest I'm not really sure it would fix things but this has been on my todolist for a while now, and modularizing this config would make switching between setups easier.
Solutions
default.nixwill get exponentially bigger.config/nvimandprograms/neovimTODO
categoryinstead of packageconfigmodule with all our 'common' variables (colors, settings, ...)runtime!References