updoot
This commit is contained in:
@@ -70,6 +70,6 @@ base_volume = "100%" # global volume multiplier
|
||||
# r = "job:run"
|
||||
# ctrl-e = "export:analysis"
|
||||
|
||||
[jobs.cl]
|
||||
command = ["cargo", "cl"]
|
||||
[jobs.clippy-all]
|
||||
command = ["cargo", "clippy-all"]
|
||||
need_stdout = false
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
recurseSubmodules = check
|
||||
[merge]
|
||||
conflictStyle = zdiff3
|
||||
[rerere]
|
||||
enabled = true
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[delta]
|
||||
|
||||
@@ -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
|
||||
]
|
||||
|
||||
@@ -216,6 +216,8 @@ bind = SHIFT, L, exec, swaylock -C ~/.config/hypr/other/swaylock.conf
|
||||
bind = SHIFT, L, submap, reset
|
||||
bind =, H, exec, killall hyprpaper || hyprpaper
|
||||
bind =, H, submap, reset
|
||||
bind = SHIFT, H, exec, helvum
|
||||
bind = SHIFT, H, submap, reset
|
||||
bind =, W, exec, pkill -USR1 waybar
|
||||
#bind =, W, exec, hyprctl keyword general:gaps_out 0, 0, $(hyprctl getoption general:gaps_out | rg -q '0 0 0 0' && echo 10 || echo 0 ), 0
|
||||
bind =, W, submap, reset
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
[alias]
|
||||
cl = "clippy -- --no-deps -Wclippy::correctness -Wclippy::complexity -Wclippy::suspicious -Wclippy::style -Wclippy::perf -Wclippy::pedantic -Wclippy::nursery -Aclippy::cargo -Aclippy::restriction -Aclippy::must_use_candidate"
|
||||
clippy-all = [
|
||||
"clippy",
|
||||
"--",
|
||||
"--no-deps", # run Clippy only on the given crate
|
||||
# Deny, Warn, Allow, Forbid
|
||||
"-Wclippy::correctness", # code that is outright wrong or useless
|
||||
"-Wclippy::complexity", # code that does something simple but in a complex way
|
||||
"-Wclippy::suspicious", # code that is most likely wrong or useless
|
||||
"-Wclippy::style", # code that should be written in a more idiomatic way
|
||||
"-Wclippy::perf", # code that can be written to run faster
|
||||
"-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
|
||||
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
||||
# 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
|
||||
|
||||
]
|
||||
|
||||
[build]
|
||||
rustc-wrapper = "sccache"
|
||||
|
||||
Reference in New Issue
Block a user