diff --git a/plugins/languages/rust/rustaceanvim/default.nix b/plugins/languages/rust/rustaceanvim/default.nix index a269f894..5bce6dad 100644 --- a/plugins/languages/rust/rustaceanvim/default.nix +++ b/plugins/languages/rust/rustaceanvim/default.nix @@ -56,6 +56,16 @@ helpers.neovim-plugin.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. + ''; + } + ]; + # TODO: remove after 24.11 warnings = optional