You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Modularize
Use standard lua dirnames (lua, colors, ...)
Regroup configs per category instead of package
lsp_installer + lsp + ... -> lsp.lua
lualine + bufferline + ... -> visual.lua (not sure about this one but you get the idea)
...
Add a config module with all our 'common' variables (colors, settings, ...)
Make possible to switch easily between configs
Improve
Fix the runtime !
Remove useless packages (starting to get a bit bloated around here)
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
default.nix
will get exponentially bigger.config/nvim
andprograms/neovim
TODO
category
instead of packageconfig
module with all our 'common' variables (colors, settings, ...)runtime
!References
The text was updated successfully, but these errors were encountered: