mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 10:18:36 +02:00
plugins/rustaceanvim: add lsp assertion
This commit is contained in:
parent
68aeb57a35
commit
6df273540c
1 changed files with 10 additions and 0 deletions
|
@ -56,6 +56,16 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
|
|
||||||
globals.rustaceanvim = cfg.settings;
|
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
|
# TODO: remove after 24.11
|
||||||
warnings =
|
warnings =
|
||||||
optional
|
optional
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue