updoot
This commit is contained in:
@@ -70,6 +70,6 @@ base_volume = "100%" # global volume multiplier
|
|||||||
# r = "job:run"
|
# r = "job:run"
|
||||||
# ctrl-e = "export:analysis"
|
# ctrl-e = "export:analysis"
|
||||||
|
|
||||||
[jobs.cl]
|
[jobs.clippy-all]
|
||||||
command = ["cargo", "cl"]
|
command = ["cargo", "clippy-all"]
|
||||||
need_stdout = false
|
need_stdout = false
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
recurseSubmodules = check
|
recurseSubmodules = check
|
||||||
[merge]
|
[merge]
|
||||||
conflictStyle = zdiff3
|
conflictStyle = zdiff3
|
||||||
|
[rerere]
|
||||||
|
enabled = true
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
[delta]
|
[delta]
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ file-types = ["dts", "dtsi", "keymap"]
|
|||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "rust"
|
name = "rust"
|
||||||
|
# language-servers = ["rust-analyzer", "bacon-ls"]
|
||||||
|
|
||||||
[language.debugger]
|
[language.debugger]
|
||||||
name = "lldb-dap"
|
name = "lldb-dap"
|
||||||
@@ -152,10 +153,16 @@ args = { program = "{0}", initCommands = [
|
|||||||
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
|
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
|
[language-server.bacon-ls]
|
||||||
|
command = "bacon-ls"
|
||||||
|
|
||||||
[language-server.rust-analyzer.config]
|
[language-server.rust-analyzer.config]
|
||||||
checkOnSave = true
|
checkOnSave = true
|
||||||
procMacro.enable = true
|
procMacro.enable = true
|
||||||
cargo.features = "all"
|
cargo.features = "all"
|
||||||
|
# for bacon
|
||||||
|
# checkOnSave = { enable = false }
|
||||||
|
# diagnostics = { enable = false }
|
||||||
|
|
||||||
# [language-server.rust-analyzer.config.cargo]
|
# [language-server.rust-analyzer.config.cargo]
|
||||||
# loadOutDirsFromCheck = true
|
# loadOutDirsFromCheck = true
|
||||||
@@ -176,11 +183,11 @@ extraArgs = [
|
|||||||
"-Wclippy::pedantic", # lints which are rather strict or have occasional false positives
|
"-Wclippy::pedantic", # lints which are rather strict or have occasional false positives
|
||||||
"-Wclippy::nursery", # new lints that are still under development
|
"-Wclippy::nursery", # new lints that are still under development
|
||||||
"-Aclippy::cargo", # lints for the cargo manifest
|
"-Aclippy::cargo", # lints for the cargo manifest
|
||||||
# Use in production
|
|
||||||
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
||||||
# Other
|
# Specific
|
||||||
"-Aclippy::must_use_candidate", # must_use is rather annoing
|
"-Aclippy::must_use_candidate", # must_use is rather annoing
|
||||||
"-Aclippy::cognitive_complexity",
|
"-Aclippy::cognitive_complexity",
|
||||||
"-Aclippy::too_many_lines",
|
"-Aclippy::too_many_lines",
|
||||||
"-Aclippy::missing_errors_doc",
|
"-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 = SHIFT, L, submap, reset
|
||||||
bind =, H, exec, killall hyprpaper || hyprpaper
|
bind =, H, exec, killall hyprpaper || hyprpaper
|
||||||
bind =, H, submap, reset
|
bind =, H, submap, reset
|
||||||
|
bind = SHIFT, H, exec, helvum
|
||||||
|
bind = SHIFT, H, submap, reset
|
||||||
bind =, W, exec, pkill -USR1 waybar
|
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, 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
|
bind =, W, submap, reset
|
||||||
|
|||||||
@@ -1,5 +1,26 @@
|
|||||||
[alias]
|
[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]
|
[build]
|
||||||
rustc-wrapper = "sccache"
|
rustc-wrapper = "sccache"
|
||||||
|
|||||||
Reference in New Issue
Block a user