nix-community.nixvim/tests
Stanislav Asunkin 299d0406bb modules/output: refactor config generation
The motivation for this change was to avoid generating empty
config sections like

    vim.cmd([[

    ]])

To make a config generation cleaner several helper functions introduced:

* `hasContent` have been moved to helpers
* `concatNonEmptyLines` joins strings (which has content) separated with
  newlines
* `wrapVimscriptForLua` wraps a lua string for using in Vimscript, but
  only if the string has content, otherwise empty string is returned
* `wrapLuaForVimscript` wraps Vimscript for using in lua, but only if
  the string has content, otherwise empty string is returned

Added tests:

* testing that all possible config sections are present in the final
  generated config
* testing that the config files generated by empty `files` definitions
  don't have any content in it
2024-07-22 23:18:53 +02:00
..
modules modules/files: fix creating configs of vim type 2024-07-19 14:45:34 +03:00
test-sources modules/output: refactor config generation 2024-07-22 23:18:53 +02:00
default.nix dev: Make the tests command able to select which test to launch 2024-07-21 15:17:17 +02:00
enable-except-in-tests.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extend.nix standalone: rename nixvimExtend to extend 2024-07-01 15:54:29 +01:00
extra-args.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
extra-files.nix flake/checks: test extraFiles are in the build 2024-07-07 16:43:06 +01:00
fetch-tests.nix tests: Reduce the number of calls to mkTestDerivationFromNixvimModule 2024-07-19 11:11:17 +02:00
lib-tests.nix lib/to-lua: handle derivations as path strings 2024-07-22 13:24:16 +01:00
maintainers.nix tests: add check for nixpkgs maintainers 2024-07-10 09:18:18 +01:00
no-flake.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
test-derivation.nix tests: Allow to test multiple derivations in a single test derivation 2024-07-19 11:11:17 +02:00