mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 11:08:53 +02:00
plugins/neotest: simplify implementation
This commit is contained in:
parent
57d1062c04
commit
4708aac141
2 changed files with 12 additions and 40 deletions
|
@ -33,11 +33,13 @@ with lib; let
|
|||
You might want to set `plugins.treesitter.enable = true` and ensure that the `${props.treesitter-parser}` parser is enabled.
|
||||
'';
|
||||
|
||||
plugins.neotest.enabledAdapters = [
|
||||
{
|
||||
inherit name;
|
||||
inherit (cfg) settings;
|
||||
}
|
||||
plugins.neotest.settings.adapters = let
|
||||
settingsString =
|
||||
optionalString
|
||||
(cfg.settings != {})
|
||||
"(${helpers.toLuaObject cfg.settings})";
|
||||
in [
|
||||
"require('neotest-${name}')${settingsString}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue