From 89720ebf8f098a191b2a5ba028f5b16d87b8eb9c Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sat, 17 Oct 2026 08:05:12 +0200 Subject: [PATCH] Updated configs --- configs/git/.gitconfig | 32 +++++++++++++++-- configs/helix/config.toml | 76 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 103 insertions(+), 5 deletions(-) diff --git a/configs/git/.gitconfig b/configs/git/.gitconfig index 870baa9..4859055 100644 --- a/configs/git/.gitconfig +++ b/configs/git/.gitconfig @@ -1,4 +1,32 @@ -[core] - autocrlf = true +[alias] + lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all + lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' + lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' + lg = lg1 +[push] + autoSetupRemote = true + followTags = true + default = current [init] defaultBranch = main +[column] + ui = auto +[branch] + sort = -committerdate +[tag] + sort = version:refname +[diff] + algorithm = histogram +[fetch] + prune = true + pruneTags = true + all = true +[help] + autocorrect = prompt +[commit] + verbose = true +[rerere] + enabled = true + autoupdate = true +[core] + editor = hx diff --git a/configs/helix/config.toml b/configs/helix/config.toml index 384665f..85130f0 100644 --- a/configs/helix/config.toml +++ b/configs/helix/config.toml @@ -1,5 +1,75 @@ -theme = "base16_default_dark" - +theme = "sonokai" [editor] +scroll-lines = 3 +bufferline = "always" +mouse = false +# scroll-lines = 0 +end-of-line-diagnostics = "hint" line-number = "relative" -mouse = true + +[editor.inline-diagnostics] +cursor-line = "hint" + +[editor.cursor-shape] +insert = "bar" +normal = "block" +select = "underline" + +[editor.lsp] +display-messages = true +display-inlay-hints = true + + +[keys.normal] +"ret" = ["move_line_down", "goto_first_nonwhitespace"] # Maps the enter key to move to start of next line +X = "extend_line_above" +D = "delete_char_backward" +# d = "delete_selection_noyank" +# A-d = "delete_selection" +c = "change_selection_noyank" +A-c = "change_selection" +u = "redo" +U = "undo" +j = "move_visual_line_up" +k = "move_visual_line_down" +"#" = "rotate_selection_contents_forward" +"£" = "rotate_selection_contents_backward" +# A-6 = "rotate_selection_contents_forward" +esc =[ "collapse_selection", "keep_primary_selection"] +"!" = "command_mode" +"I" = "shell_insert_output" +# // + = { b = "normal_mode" } # Maps `jk` to exit insert mode +# a = ["ensure_selections_forward", "collapse_selection", "move_char_right", "insert_mode"] + +[keys.normal."g"] +k = "move_line_down" +j = "move_line_up" + +# create a new minor mode bound to `+` +[keys.normal."+"] +m = ":sh make" +b = ":sh cargo build" +t = ":sh cargo test" +d = ":sh cargo doc" +i = ":sh cargo install --path ." +# u = ":sh echo ${INPUT}" + +[keys.normal." "] +A-y = "yank_joined_to_clipboard" +A-Y = "yank_joined_to_primary_clipboard" + +[editor.soft-wrap] +enable = true +max-wrap = 25 # increase value to reduce forced mid-word wrapping +max-indent-retain = 0 +wrap-indicator = "" # set wrap-indicator to "" to hide it + +[[language]] +name = "typst" +auto-format = true +language-servers = ["tinymist"] +#formatter = { command = "prettypst", args = ["--use-std-in", "--use-std-out", "--style=otbs"] } +formatter = { command = "typstyle", args = [] } + +[language-server.tinymist] +command = "tinymist"