mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -60,14 +60,22 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
copilot-lua-cfg = config.plugins.copilot-lua.settings;
|
||||
isEnabled = b: (lib.isBool b && b);
|
||||
in
|
||||
lib.optional (isEnabled copilot-lua-cfg.suggestion.enabled) ''
|
||||
It is recommended to disable copilot's `suggestion` module, as it can interfere with
|
||||
completions properly appearing in copilot-cmp.
|
||||
''
|
||||
++ lib.optional (isEnabled copilot-lua-cfg.panel.enabled) ''
|
||||
It is recommended to disable copilot's `panel` module, as it can interfere with completions
|
||||
properly appearing in copilot-cmp.
|
||||
'';
|
||||
lib.nixvim.mkWarnings "plugins.copilot-cmp" [
|
||||
{
|
||||
when = isEnabled copilot-lua-cfg.suggestion.enabled;
|
||||
message = ''
|
||||
It is recommended to disable copilot's `suggestion` module, as it can interfere with
|
||||
completions properly appearing in copilot-cmp.
|
||||
'';
|
||||
}
|
||||
{
|
||||
when = isEnabled copilot-lua-cfg.panel.enabled;
|
||||
message = ''
|
||||
It is recommended to disable copilot's `panel` module, as it can interfere with completions
|
||||
properly appearing in copilot-cmp.
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
plugins.copilot-lua.enable = lib.mkDefault true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue