mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-11 15:33:18 +00:00
feat(rust): add better assertions
This commit is contained in:
parent
dedbe5e9db
commit
612c2d1386
1 changed files with 2 additions and 2 deletions
|
|
@ -292,8 +292,8 @@ in {
|
|||
|
||||
assertions = [
|
||||
{
|
||||
assertion = !cfg.lsp.enable;
|
||||
message = "rustaceanvim and `vim.languages.rust.lsp.enable` are mutually exclusive. Please ensure `vim.lsp.rust-analyzer.enable` is false, or disable `vim.languages.rust.lsp.enable`.";
|
||||
assertion = !(builtins.elem "rust-analyzer" cfg.lsp.server) && !config.vim.lsp.rust-analyzer.enable;
|
||||
message = "rustaceanvim and rust-analyzer are mutually exclusive. Please ensure that rust-analyzer is disabled.";
|
||||
}
|
||||
];
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue