feat(editors): ignore cfg_eval proc macros in rust-analyzer
This commit is contained in:
parent
f803b8a0f6
commit
58f60e0c62
|
@ -12,6 +12,11 @@
|
||||||
cargo.buildScripts.enable = true;
|
cargo.buildScripts.enable = true;
|
||||||
checkOnSave.command = "clippy";
|
checkOnSave.command = "clippy";
|
||||||
procMacro.enable = true;
|
procMacro.enable = true;
|
||||||
|
procMacro.ignored = {
|
||||||
|
# cfg_eval can cause types to be unavailable
|
||||||
|
core = [ "cfg_eval" ];
|
||||||
|
cfg_eval = [ "cfg_eval" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -119,7 +119,14 @@ config.rust_analyzer.setup {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
cargo = { buildScripts = { enable = true } },
|
cargo = { buildScripts = { enable = true } },
|
||||||
checkOnSave = { command = "clippy" },
|
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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.nushell;
|
package = pkgs.unstable.nushell;
|
||||||
configFile.text = ''
|
configFile.text = ''
|
||||||
let-env config = {
|
$env.config = {
|
||||||
edit_mode: "vi"
|
edit_mode: "vi"
|
||||||
show_banner: false
|
show_banner: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
# kitty/neovim don't play well with multi-width emojis
|
# kitty/neovim don't play well with multi-width emojis
|
||||||
nix_shell.symbol = " ";
|
nix_shell.symbol = " ";
|
||||||
};
|
};
|
||||||
enableNushellIntegration = true;
|
# enableNushellIntegration = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue