index : dotfiles.git

ascending towards madness

author holly sparkles <sparkles@holly.sh> 2024-04-28 18:36:23.0 +00:00:00
committer holly sparkles <sparkles@holly.sh> 2024-04-28 18:36:23.0 +00:00:00
commit
4267d95e5165c4cf1babac6a2da7cb90d95b405c [patch]
tree
8ac1b4c0abf2778ec96233c00a7c2f527fad43f8
parent
c091b15b39b62f5f148edf9decdcffde4f8df722
download
4267d95e5165c4cf1babac6a2da7cb90d95b405c.tar.gz

update helix config

https://theari.dev/blog/enhanced-helix-config/

Diff

 .config/helix/config.toml | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/.config/helix/config.toml b/.config/helix/config.toml
index cac5718..7d28a13 100644
--- a/.config/helix/config.toml
+++ b/.config/helix/config.toml
@@ -2,6 +2,9 @@ theme = "catppuccin_mocha"

[editor]
rulers = [80, 120]
bufferline = "multiple"
cursorline = true
true-color = true

[editor.cursor-shape]
insert = "bar"
@@ -18,9 +21,16 @@ display-messages = true
display-inlay-hints = true

[keys.normal]
"backspace"= { f = ":pipe fmt -w 80"}
A-x = "extend_to_line_bounds"
X = ["extend_line_up", "extend_to_line_bounds"]

[keys.normal.backspace]
f = ":pipe fmt -w 80"

[keys.normal."+"]
m = ":run-shell-command make"
c = ":run-shell-command cargo build"
t = ":run-shell-command cargo test"
\ No newline at end of file
t = ":run-shell-command cargo test"

[keys.select]
A-x = "extend_to_line_bounds"
X = ["extend_line_up", "extend_to_line_bounds"]