This commit is contained in:
2026-02-10 19:26:12 +02:00
parent f2cc5cab23
commit 711205ac7b
5 changed files with 38 additions and 6 deletions
+10 -3
View File
@@ -138,6 +138,7 @@ file-types = ["dts", "dtsi", "keymap"]
[[language]]
name = "rust"
# language-servers = ["rust-analyzer", "bacon-ls"]
[language.debugger]
name = "lldb-dap"
@@ -152,10 +153,16 @@ args = { program = "{0}", initCommands = [
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
] }
[language-server.bacon-ls]
command = "bacon-ls"
[language-server.rust-analyzer.config]
checkOnSave = true
procMacro.enable = true
cargo.features = "all"
# for bacon
# checkOnSave = { enable = false }
# diagnostics = { enable = false }
# [language-server.rust-analyzer.config.cargo]
# loadOutDirsFromCheck = true
@@ -176,11 +183,11 @@ extraArgs = [
"-Wclippy::pedantic", # lints which are rather strict or have occasional false positives
"-Wclippy::nursery", # new lints that are still under development
"-Aclippy::cargo", # lints for the cargo manifest
# Use in production
"-Aclippy::restriction", # lints which prevent the use of language and library features
# Other
"-Aclippy::must_use_candidate", # must_use is rather annoing
# Specific
"-Aclippy::must_use_candidate", # must_use is rather annoing
"-Aclippy::cognitive_complexity",
"-Aclippy::too_many_lines",
"-Aclippy::missing_errors_doc",
"-Aclippy::from_iter_instead_of_collect", # formats better
]