Export/build the nixvim configuration for usage outside of Nix ecosystem #2550
-
Hey there! I have a quick, but quick annoying and weird given the context of Nixvim ^^. Over time, I've build my development workflow, OSs around Nix and NixOS, and I'm not willing to give it up! So I thought, is there a way to export my current Nixvim configuration as plain lua, even the ugliest is OK, as long I can use it at work. It doesn't even need to be up-to-date or easy to update. Just works once, it's ok! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use Assuming you don't use any Going forward it'd be nice to be able to also access all output files via But currently we only have If you use that lua file, you'll have to edit anything that references the nix store. You'll also need to find another way to install any plugins you use and add them to vim's runtimepath. By default nixvim installs vim plugins to the nix store. |
Beta Was this translation helpful? Give feedback.
You can use
nixvim-print-init
to viewinit.lua
.Assuming you don't use any
extraFiles
, that will be the entirety of your config.Going forward it'd be nice to be able to also access all output files via
passthru
attrs and/or option values, but currently that may not be super easy. Certainly not well documented.But currently we only have
nixvim-print-init
.If you use that lua file, you'll have to edit anything that references the nix store.
You'll also need to find another way to install any plugins you use and add them to vim's runtimepath. By default nixvim installs vim plugins to the nix store.