mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/flutter-tools: add warnings for dap integration
This commit is contained in:
parent
d9c4e154a8
commit
33ad2c729d
1 changed files with 12 additions and 0 deletions
|
@ -18,6 +18,18 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.flutterPackage ];
|
||||
|
||||
warnings =
|
||||
lib.optional
|
||||
(
|
||||
(cfg.settings ? debugger.enable)
|
||||
&& (lib.isBool cfg.settings.debugger.enable)
|
||||
&& cfg.settings.debugger.enable
|
||||
&& (!config.plugins.dap.enable)
|
||||
)
|
||||
''
|
||||
Nixvim (plugins.flutter-tools): You have enabled the dap integration (`settings.debugger.enable`) but `plugins.dap` is disabled.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsOptions = import ./settings-options.nix lib;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue