mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide: use mkAssertions wherever possible
This commit is contained in:
parent
a7e516b322
commit
af6e4b0bad
13 changed files with 63 additions and 72 deletions
|
@ -57,15 +57,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
globals.rustaceanvim = cfg.settings;
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = cfg.enable -> !config.plugins.lsp.servers.rust_analyzer.enable;
|
||||
message = ''
|
||||
Nixvim (plugins.rustaceanvim): Both `plugins.rustaceanvim.enable` and `plugins.lsp.servers.rust_analyzer.enable` are true.
|
||||
Disable one of them otherwise you will have multiple clients attached to each buffer.
|
||||
'';
|
||||
}
|
||||
];
|
||||
assertions = lib.nixvim.mkAssertions "plugins.rustaceanvim" {
|
||||
assertion = cfg.enable -> !config.plugins.lsp.servers.rust_analyzer.enable;
|
||||
message = ''
|
||||
Both `plugins.rustaceanvim.enable` and `plugins.lsp.servers.rust_analyzer.enable` are true.
|
||||
Disable one of them otherwise you will have multiple clients attached to each buffer.
|
||||
'';
|
||||
};
|
||||
|
||||
# TODO: remove after 24.11
|
||||
warnings = lib.nixvim.mkWarnings "plugins.rustaceanvim" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue