Skip to content

Export/build the nixvim configuration for usage outside of Nix ecosystem #2550

Answered by MattSturgeon
DataHearth asked this question in Q&A
Discussion options

You must be logged in to vote

You can use nixvim-print-init to view init.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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DataHearth
Comment options

Answer selected by DataHearth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants