feat(editors): ignore cfg_eval proc macros in rust-analyzer

This commit is contained in:
Felix Schröter 2023-10-24 19:10:14 +02:00
parent f803b8a0f6
commit 58f60e0c62
Signed by: felschr
GPG key ID: 671E39E6744C807D
4 changed files with 15 additions and 3 deletions
home/editors
helix
neovim/lsp

View file

@ -12,6 +12,11 @@
cargo.buildScripts.enable = true;
checkOnSave.command = "clippy";
procMacro.enable = true;
procMacro.ignored = {
# cfg_eval can cause types to be unavailable
core = [ "cfg_eval" ];
cfg_eval = [ "cfg_eval" ];
};
};
}
{

View file

@ -119,7 +119,14 @@ config.rust_analyzer.setup {
["rust-analyzer"] = {
cargo = { buildScripts = { enable = true } },
checkOnSave = { command = "clippy" },
procMacro = { enable = true },
procMacro = {
enable = true,
ignored = {
-- cfg_eval can cause types to be unavailable
core = { "cfg_eval" },
cfg_eval = { "cfg_eval" },
},
},
},
},
}