1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 11:19:47 +01:00
home-manager/tests/modules/programs/neovim
Andrew Marshall 478610aa37
neovim: Source neovimRcContent directly from store (#3444)
The previous version linked the file into home, then sourced that. Since
nothing else expects that file to be there, this is unnecessary.
Additionally, doing so made it impossible to test a built config without
switching, e.g. using `XDG_CONFIG_HOME=… nvim` or `nvim -u`. This
remedies that, at least for this particular reference.

To test this, change from asserting contents of the config file to
actually starting nvim, outputting sentinel values, and then asserting
their values are present. This way it’s tested that nvim loaded the
config, rather than that some config is in a specific place.

This is all in one commit as the test, as written now, would not have
worked before since the previously hard-coded home path was not an
actual file in the test environment.
2022-11-30 17:19:31 +01:00
..
coc-config.expected neovim: Add coc support (#2154) 2021-07-25 22:40:07 -04:00
coc-config.nix neovim: Add coc support (#2154) 2021-07-25 22:40:07 -04:00
default.nix neovim runtime (#3168) 2022-08-23 22:02:05 +02:00
no-init.nix programs.neovim: default to init.lua (#3233) 2022-09-22 10:39:55 +02:00
plugin-config.nix neovim: Source neovimRcContent directly from store (#3444) 2022-11-30 17:19:31 +01:00
runtime.nix neovim runtime (#3168) 2022-08-23 22:02:05 +02:00