feat: add dap support for dart

This commit is contained in:
Ching Pei Yang 2023-06-27 00:04:48 +02:00
parent ae0a2389ff
commit b5efd5cba7
2 changed files with 13 additions and 1 deletions

View file

@ -55,8 +55,12 @@ in {
on_attach = default_on_attach;
flags = lsp_flags,
},
${optionalString cfg.dap.enable ''
debugger = {
enabled = true,
},
''}
}
'';
})
]);

View file

@ -49,6 +49,14 @@ in {
};
};
dap = {
enable = mkOption {
description = "Enable Dart DAP support via flutter-tools";
type = types.bool;
default = config.vim.languages.enableDAP;
};
};
flutter-tools = {
enable = mkOption {
description = "Enable flutter-tools for flutter support";