nixvim
nixvim copied to clipboard
Few remarks/questions about nixvim
hi,
I contribute regularly to nix+neovim issues and while I dont use nixvim (I prefer a more laid back approach)m I have a few changes in mind I would like to apply to the nixpkgs neovim wrapper. I had a (quick) look at nixvim code to see how it could impact it and I have a few questions/remarks
- toLuaObject could be replaced by lib.generators.toLua
- if you really want to go hardcore and generate nix code for options, there is https://github.com/neovim/neovim/blob/master/src/nvim/options.lua
- I was surprised
nix run github:nix-community/nixvim
wouldn't showcase some example config ? - do you check the generated config ? aka start nvim and see if it launches errors ? I would like to have this (optionnally) in nixpkgs ?
- does a nixvim generated executable read ~/.config ? I would like to make it easier to generate the hybrid neovim that has a nix base but reads from XDG config and a hardened pure nix config as requested in https://github.com/NixOS/nixpkgs/issues/ (maybe using NVIM_APPNAME)