plugins/rustaceanvim: add lsp assertion

This commit is contained in:
Austin Horstman 2024-09-08 22:19:02 -05:00
parent 68aeb57a35
commit 6df273540c
No known key found for this signature in database

View file

@ -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