hook -group lsp-filetype-rust global BufSetOption filetype=rust %{
set-option buffer lsp_servers %{
[rust-analyzer]
root_globs = ["Cargo.toml"]
single_instance = true
[rust-analyzer.experimental]
commands.commands = ["rust-analyzer.runSingle"]
hoverActions = true
[rust-analyzer.settings.rust-analyzer]
# See https://rust-analyzer.github.io/manual.html#configuration
cargo.features = [ "task" ]
check.command = "clippy"
}
}