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
checkOnSave = {
enable = diagnostics == "rust-analyzer",
},
checkOnSave = diagnostics == "rust-analyzer",
-- Enable diagnostics if using rust-analyzer
diagnostics = {
enable = diagnostics == "rust-analyzer",