nix-community.nixvim/lib
traxys 6d7e429537
tests: Introduce a way to disable options when running in tests (#1095)
In our basic template we used to provide a check based on
`mkTestDerivationFromNvim`. The issue with this check (that is handled
correctly internally) is that some plugins _can't_ be used in the test
environment, for example image.nvim like in #1085.

This commit introduces a new function to generate such checks,
`mkTestDerivationFromNixvimModule`, that wraps a nixvim configuration
instead of a built nvim instance.

Then a configuration can rely on the newly added
`helpers.enableExceptInTests` attribute to disable parts of the
configuration depending if it is evaluated in tests or in a real final
configuration.

Resolves #1085
2024-02-15 14:27:45 +01:00
..
autocmd-helpers.nix helpers/autocmd-helpers: do not import helpers.nix directly 2024-02-11 11:50:35 +01:00
default.nix tests: Introduce a way to disable options when running in tests (#1095) 2024-02-15 14:27:45 +01:00
helpers.nix tests: Introduce a way to disable options when running in tests (#1095) 2024-02-15 14:27:45 +01:00
keymap-helpers.nix helpers/keymaps: factor out mkModeOption 2024-02-14 22:38:45 +01:00
maintainers.nix Add maintainers entry for Alison Jenkins 2024-02-13 16:53:39 +01:00
neovim-plugin.nix helpers/neovim-plugin: add mkNeovimPlugin 2024-02-14 09:53:29 +01:00
options.nix helpers/vim-plugin/mkVimPlugin: remove useless 'with types;' 2024-02-13 10:34:49 +01:00
to-lua.nix lib/helpers: internal refactoring 2024-01-25 16:38:59 +01:00
types.nix docs: Use a nixpkgs patch instead of copy/pasting nixpkgs functions (#1011) 2024-02-03 19:04:09 +01:00
utils.nix tests: Introduce a way to disable options when running in tests (#1095) 2024-02-15 14:27:45 +01:00
vim-plugin.nix helpers/vim-plugin/mkVimPlugin: rename package option to defaultPackage 2024-02-15 10:13:39 +01:00