mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 08:34:41 +02:00
plugins/neotest: add playwright adapter
This commit is contained in:
parent
4708aac141
commit
50038f6c8f
4 changed files with 57 additions and 2 deletions
|
@ -8,7 +8,10 @@
|
|||
with lib; let
|
||||
supportedAdapters = import ./adapters-list.nix;
|
||||
|
||||
mkAdapter = name: {treesitter-parser}: {
|
||||
mkAdapter = name: {
|
||||
treesitter-parser,
|
||||
settingsSuffix ? settingsLua: "(${settingsLua})",
|
||||
}: {
|
||||
options.plugins.neotest.adapters.${name} = {
|
||||
enable = mkEnableOption name;
|
||||
|
||||
|
@ -37,7 +40,7 @@ with lib; let
|
|||
settingsString =
|
||||
optionalString
|
||||
(cfg.settings != {})
|
||||
"(${helpers.toLuaObject cfg.settings})";
|
||||
(settingsSuffix (helpers.toLuaObject cfg.settings));
|
||||
in [
|
||||
"require('neotest-${name}')${settingsString}"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue