mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide: use mkAssertions where possible
This commit is contained in:
parent
12e658eca8
commit
ce82e5859d
14 changed files with 94 additions and 104 deletions
|
@ -176,15 +176,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
};
|
||||
|
||||
extraConfig = {
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.plugins.copilot-vim.enable;
|
||||
message = ''
|
||||
You currently have both `copilot-vim` and `copilot-lua` enabled.
|
||||
Please disable one of them.
|
||||
'';
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "plugins.copilot-lua" {
|
||||
assertion = !config.plugins.copilot-vim.enable;
|
||||
message = ''
|
||||
You currently have both `copilot-vim` and `copilot-lua` enabled.
|
||||
Please disable one of them.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: introduced 2025-01-07: remove after 25.05
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue