updoot
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user