lsp: RA use the same target dir to check

This commit is contained in:
lelgenio 2022-05-20 21:09:25 -03:00
parent 79f987141b
commit cfd141cff4
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ filetypes = ["rust"]
roots = ["rust-toolchain.toml", "rust-toolchain", "Cargo.toml"]
command = "rust-analyzer"
[language.rust.settings.rust-analyzer]
checkOnSave.extraArgs = ["--target-dir", "./target/check"]
## this can use too much space and processing power
# checkOnSave.extraArgs = ["--target-dir", "./target/check"]
hoverActions.enable = false # kak-lsp doesn't support this at the moment
# procMacro.enable = true
# cargo.loadOutDirsFromCheck = true