general
This commit is contained in:
@@ -15,6 +15,7 @@ set -gx XDG_DOWNLOAD_DIR /tmp
|
|||||||
|
|
||||||
set -gx GOPATH $XDG_DATA_HOME/go # GOOUT my home
|
set -gx GOPATH $XDG_DATA_HOME/go # GOOUT my home
|
||||||
set -gx CARGO_HOME $XDG_DATA_HOME/cargo
|
set -gx CARGO_HOME $XDG_DATA_HOME/cargo
|
||||||
|
# set -gx CARGO_TARGET_DIR ~/.exclude/cargo # bad idea
|
||||||
set -gx CLIPPY_CONF_DIR $XDG_DATA_HOME/cargo/
|
set -gx CLIPPY_CONF_DIR $XDG_DATA_HOME/cargo/
|
||||||
|
|
||||||
# Can't use '~' in universal variables
|
# Can't use '~' in universal variables
|
||||||
|
|||||||
+3
-2
@@ -3,7 +3,7 @@
|
|||||||
[fetch]
|
[fetch]
|
||||||
prune = true
|
prune = true
|
||||||
[core]
|
[core]
|
||||||
editor = helix
|
editor = hx
|
||||||
pager = delta
|
pager = delta
|
||||||
[diff]
|
[diff]
|
||||||
tool = nvimdiff
|
tool = nvimdiff
|
||||||
@@ -50,7 +50,8 @@
|
|||||||
# gpgsign = true
|
# gpgsign = true
|
||||||
[includeIf "gitdir:~/src/"]
|
[includeIf "gitdir:~/src/"]
|
||||||
path = ~/src/.gitconfig
|
path = ~/src/.gitconfig
|
||||||
|
[includeIf "gitdir:~/uni/"]
|
||||||
|
path = ~/uni/.gitconfig
|
||||||
|
|
||||||
# [filter "lfs"]
|
# [filter "lfs"]
|
||||||
# required = true
|
# required = true
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ auto-format = true
|
|||||||
auto-info = true # TODO: idle-timeout?
|
auto-info = true # TODO: idle-timeout?
|
||||||
# true-color = true
|
# true-color = true
|
||||||
# undercurl = true
|
# undercurl = true
|
||||||
|
# terminal-background-color = true
|
||||||
rulers = [80, 100]
|
rulers = [80, 100]
|
||||||
bufferline = "multiple" # never, always, multiple
|
bufferline = "multiple" # never, always, multiple
|
||||||
color-modes = false # mode indicator color
|
color-modes = false # mode indicator color
|
||||||
|
|||||||
@@ -192,9 +192,10 @@ extraArgs = [
|
|||||||
"-Aclippy::cargo", # lints for the cargo manifest
|
"-Aclippy::cargo", # lints for the cargo manifest
|
||||||
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
"-Aclippy::restriction", # lints which prevent the use of language and library features
|
||||||
# Specific
|
# 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::struct_excessive_bools",
|
||||||
# "-Aclippy::from_iter_instead_of_collect", # formats better
|
# "-Aclippy::from_iter_instead_of_collect", # formats better
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ bind =, S, exec, killall signal-desktop || signal-desktop
|
|||||||
bind =, S, submap, reset
|
bind =, S, submap, reset
|
||||||
bind =, M, exec, mpv --force-window --idle
|
bind =, M, exec, mpv --force-window --idle
|
||||||
bind =, M, submap, reset
|
bind =, M, submap, reset
|
||||||
bind =, E, exec, kitty helix
|
bind =, E, exec, kitty hx
|
||||||
bind =, E, submap, reset
|
bind =, E, submap, reset
|
||||||
bind =, N, exec, nemo
|
bind =, N, exec, nemo
|
||||||
bind =, N, submap, reset
|
bind =, N, submap, reset
|
||||||
@@ -188,7 +188,7 @@ bind = SHIFT, B, exec, flatpak run com.usebottles.bottles
|
|||||||
bind = SHIFT, B, submap, reset
|
bind = SHIFT, B, submap, reset
|
||||||
bind =, Q, exec, qbittorrent
|
bind =, Q, exec, qbittorrent
|
||||||
bind =, Q, submap, reset
|
bind =, Q, submap, reset
|
||||||
bind =, A, exec, anki
|
bind =, A, exec, anytype
|
||||||
bind =, A, submap, reset
|
bind =, A, submap, reset
|
||||||
# utilities
|
# utilities
|
||||||
bind =, P, exec, pavucontrol
|
bind =, P, exec, pavucontrol
|
||||||
|
|||||||
+17
-13
@@ -69,28 +69,32 @@ focus_follows_mouse no
|
|||||||
# Mouse actions {{{
|
# Mouse actions {{{
|
||||||
clear_all_mouse_actions yes
|
clear_all_mouse_actions yes
|
||||||
|
|
||||||
|
# Click the link under the mouse or move the cursor
|
||||||
mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
||||||
|
# Click the link under the mouse or move the cursor even when grabbed
|
||||||
mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
|
mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
|
||||||
|
# Click the link under the mouse cursor. Present because simple click based version has delay of click_interval
|
||||||
mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_handle_click link
|
mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_handle_click link
|
||||||
|
# Discard press event for link click
|
||||||
mouse_map ctrl+shift+left press grabbed discard_event
|
mouse_map ctrl+shift+left press grabbed discard_event
|
||||||
|
|
||||||
mouse_map middle release ungrabbed paste_from_selection
|
|
||||||
mouse_map left press ungrabbed mouse_selection normal
|
mouse_map left press ungrabbed mouse_selection normal
|
||||||
mouse_map ctrl+alt+left press ungrabbed mouse_selection rectangle
|
|
||||||
mouse_map left doublepress ungrabbed mouse_selection word
|
mouse_map left doublepress ungrabbed mouse_selection word
|
||||||
mouse_map left triplepress ungrabbed mouse_selection line
|
mouse_map left triplepress ungrabbed mouse_selection line
|
||||||
mouse_map ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point
|
|
||||||
mouse_map right press ungrabbed mouse_selection extend
|
|
||||||
|
|
||||||
mouse_map shift+middle release ungrabbed,grabbed paste_selection
|
|
||||||
mouse_map shift+middle press grabbed discard_event
|
|
||||||
mouse_map shift+left press ungrabbed,grabbed mouse_selection normal
|
mouse_map shift+left press ungrabbed,grabbed mouse_selection normal
|
||||||
mouse_map ctrl+shift+alt+left press ungrabbed,grabbed mouse_selection rectangle
|
|
||||||
mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word
|
mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word
|
||||||
mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line
|
mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line
|
||||||
mouse_map ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point
|
mouse_map ctrl+shift+left press ungrabbed,grabbed mouse_selection rectangle
|
||||||
|
mouse_map ctrl+shift+left doublepress ungrabbed,grabbed mouse_selection line_from_point
|
||||||
|
|
||||||
|
mouse_map middle release ungrabbed paste_from_selection
|
||||||
|
mouse_map shift+middle release ungrabbed,grabbed paste_selection
|
||||||
|
mouse_map shift+middle press grabbed discard_event
|
||||||
|
|
||||||
|
mouse_map right press ungrabbed mouse_selection extend
|
||||||
mouse_map shift+right press ungrabbed,grabbed mouse_selection extend
|
mouse_map shift+right press ungrabbed,grabbed mouse_selection extend
|
||||||
mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
|
mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
@@ -221,7 +225,7 @@ background_opacity 0.65
|
|||||||
# Advanced {{{
|
# Advanced {{{
|
||||||
|
|
||||||
# shell .
|
# shell .
|
||||||
editor nvim
|
# editor hx
|
||||||
# close_on_child_death no
|
# close_on_child_death no
|
||||||
# remote_control_password
|
# remote_control_password
|
||||||
# allow_remote_control no
|
# allow_remote_control no
|
||||||
@@ -278,7 +282,7 @@ map kitty_mod+u kitten unicode_input
|
|||||||
map kitty_mod+c copy_to_clipboard
|
map kitty_mod+c copy_to_clipboard
|
||||||
map kitty_mod+y open_url_with_hints
|
map kitty_mod+y open_url_with_hints
|
||||||
map kitty_mod+s launch librewolf --search "@selection"
|
map kitty_mod+s launch librewolf --search "@selection"
|
||||||
map ctrl+alt+s launch --stdin-source=@selection --type=tab nvim
|
map ctrl+alt+s launch --stdin-source=@selection --type=tab hx
|
||||||
map kitty_mod+p kitten hints --type path --program yazi
|
map kitty_mod+p kitten hints --type path --program yazi
|
||||||
map ctrl+alt+p kitten hints --type hyperlink --program yazi
|
map ctrl+alt+p kitten hints --type hyperlink --program yazi
|
||||||
map kitty_mod+/ show_kitty_doc overview
|
map kitty_mod+/ show_kitty_doc overview
|
||||||
@@ -303,7 +307,7 @@ map ctrl+alt+up scroll_page_up
|
|||||||
map ctrl+shift+alt+e scroll_end
|
map ctrl+shift+alt+e scroll_end
|
||||||
map ctrl+shift+alt+i scroll_home
|
map ctrl+shift+alt+i scroll_home
|
||||||
map ctrl+shift+alt+down scroll_end
|
map ctrl+shift+alt+down scroll_end
|
||||||
map ctrl+shift+alt+up scroll_home
|
map ctrl+shift+alt+up scroll_home
|
||||||
|
|
||||||
map kitty_mod+z scroll_to_prompt -1
|
map kitty_mod+z scroll_to_prompt -1
|
||||||
map kitty_mod+x scroll_to_prompt 1
|
map kitty_mod+x scroll_to_prompt 1
|
||||||
@@ -373,7 +377,7 @@ map ctrl+alt+= goto_tab 100
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Hints {{{
|
# Hints {{{
|
||||||
map kitty_mod+h>n kitten hints --type linenum nvim +{line} {path}
|
map kitty_mod+h>n kitten hints --type linenum hx {path}:{line}
|
||||||
# paste to cmd
|
# paste to cmd
|
||||||
map kitty_mod+h>w kitten hints --type word --program -
|
map kitty_mod+h>w kitten hints --type word --program -
|
||||||
map kitty_mod+h>l kitten hints --type line --program -
|
map kitty_mod+h>l kitten hints --type line --program -
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ return {
|
|||||||
cargo = {
|
cargo = {
|
||||||
features = "all",
|
features = "all",
|
||||||
loadOutDirsFromCheck = true,
|
loadOutDirsFromCheck = true,
|
||||||
runBuildScripts = true,
|
-- runBuildScripts = true,
|
||||||
},
|
},
|
||||||
-- Add clippy lints for Rust.
|
-- Add clippy lints for Rust.
|
||||||
checkOnSave = true,
|
checkOnSave = true,
|
||||||
@@ -14,20 +14,23 @@ return {
|
|||||||
command = "clippy",
|
command = "clippy",
|
||||||
extraArgs = {
|
extraArgs = {
|
||||||
"--",
|
"--",
|
||||||
"--no-deps", -- run Clippy only on the given crate
|
"--no-deps", -- run Clippy only on the given crate
|
||||||
-- Deny, Warn, Allow, Forbid
|
-- Deny, Warn, Allow, Forbid
|
||||||
"-Wclippy::correctness", -- code that is outright wrong or useless
|
"-Wclippy::correctness", -- code that is outright wrong or useless
|
||||||
"-Wclippy::complexity", -- code that does something simple but in a complex way
|
"-Wclippy::complexity", -- code that does something simple but in a complex way
|
||||||
"-Wclippy::suspicious", -- code that is most likely wrong or useless
|
"-Wclippy::suspicious", -- code that is most likely wrong or useless
|
||||||
"-Wclippy::style", -- code that should be written in a more idiomatic way
|
"-Wclippy::style", -- code that should be written in a more idiomatic way
|
||||||
"-Wclippy::perf", -- code that can be written to run faster
|
"-Wclippy::perf", -- code that can be written to run faster
|
||||||
"-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
|
||||||
"-Wclippy::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
|
-- Specific
|
||||||
-- Other
|
"-Aclippy::must_use_candidate", -- must_use is rather annoing
|
||||||
"-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
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
procMacro = {
|
procMacro = {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ end)
|
|||||||
Lmap("lcs", "Show", diag.show)
|
Lmap("lcs", "Show", diag.show)
|
||||||
Lmap("lch", "Hide", diag.hide)
|
Lmap("lch", "Hide", diag.hide)
|
||||||
Lmap("lce", "Enable", diag.enable)
|
Lmap("lce", "Enable", diag.enable)
|
||||||
Lmap("lcd", "Disable", diag.disable)
|
-- Lmap("lcd", "Disable", diag.disable)
|
||||||
-- List
|
-- List
|
||||||
Lmap("lld", "Diagnostics all Q", diag.setqflist)
|
Lmap("lld", "Diagnostics all Q", diag.setqflist)
|
||||||
Lmap("llD", "Diagnostics buf L", diag.setloclist)
|
Lmap("llD", "Diagnostics buf L", diag.setloclist)
|
||||||
|
|||||||
@@ -17,6 +17,6 @@ UpgradeMenu
|
|||||||
#KeepRepoCache # keep old AUR package versions
|
#KeepRepoCache # keep old AUR package versions
|
||||||
|
|
||||||
[bin]
|
[bin]
|
||||||
Sudo = doas
|
# Sudo = doas
|
||||||
FileManager = yazi
|
FileManager = yazi
|
||||||
#MFlags = --skippgpcheck
|
#MFlags = --skippgpcheck
|
||||||
|
|||||||
@@ -233,4 +233,4 @@
|
|||||||
"format": "{}",
|
"format": "{}",
|
||||||
"format-alt": "{alt}"
|
"format-alt": "{alt}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user