Update lua/lazyvim/plugins/extras/lang/rust.lua

Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com>
This commit is contained in:
Matteo Bigoi 2024-06-25 17:27:32 +02:00 committed by GitHub
parent 7f83021b50
commit dc7968799d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,9 +81,7 @@ return {
}, },
}, },
-- Add clippy lints for Rust if using rust-analyzer -- Add clippy lints for Rust if using rust-analyzer
checkOnSave = { checkOnSave = diagnostics == "rust-analyzer",
enable = diagnostics == "rust-analyzer",
},
-- Enable diagnostics if using rust-analyzer -- Enable diagnostics if using rust-analyzer
diagnostics = { diagnostics = {
enable = diagnostics == "rust-analyzer", enable = diagnostics == "rust-analyzer",