Rust
- Tree Sitter: tree-sitter-rust
- Language Server: rust-analyzer
Target directory
The rust-analyzer target directory can be set in initialization_options:
{
"lsp": {
"rust-analyzer": {
"initialization_options": {
"rust": {
"analyzerTargetDir": true
}
}
}
}
}
A true setting will set the target directory to target/rust-analyzer. You can set a custom directory with a string like "target/analyzer" instead of true.