plugins/neotest: add more adapters

This commit is contained in:
Gaetan Lepage 2024-03-18 14:43:48 +01:00 committed by Gaétan Lepage
parent 975f1ca526
commit 5004178c0c
6 changed files with 109 additions and 2 deletions

View file

@ -8,7 +8,7 @@
with lib; let
supportedAdapters = import ./adapters-list.nix;
mkAdapter = name: props: {
mkAdapter = name: {treesitter-parser}: {
options.plugins.neotest.adapters.${name} = {
enable = mkEnableOption name;
@ -30,7 +30,7 @@ with lib; let
(!config.plugins.treesitter.enable)
''
Nixvim (plugins.neotest.adapters.${name}): This adapter requires `treesitter` to be enabled.
You might want to set `plugins.treesitter.enable = true` and ensure that the `${props.treesitter-parser}` is enabled.
You might want to set `plugins.treesitter.enable = true` and ensure that the `${props.treesitter-parser}` parser is enabled.
'';
plugins.neotest.enabledAdapters = [