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

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" },
},
},
},
},
}

View file

@ -9,7 +9,7 @@ in {
enable = true;
package = pkgs.unstable.nushell;
configFile.text = ''
let-env config = {
$env.config = {
edit_mode: "vi"
show_banner: false
}

View file

@ -14,6 +14,6 @@
# kitty/neovim don't play well with multi-width emojis
nix_shell.symbol = " ";
};
enableNushellIntegration = true;
# enableNushellIntegration = true;
};
}