Add some integrations directly with helix

This commit is contained in:
Daniel Lynn 2025-04-16 14:26:03 -05:00
parent 7ffcd8b922
commit 8d9a798078
Signed by: daniel
GPG Key ID: 28496A140E180A9D
2 changed files with 40 additions and 1 deletions

View File

@ -28,3 +28,42 @@ _ = { n = ":set whitespace.render none", a = ":set whitespace.render all" }
[keys.normal.space] [keys.normal.space]
i = ":toggle lsp.display-inlay-hints" i = ":toggle lsp.display-inlay-hints"
# Git integration with lazygit
[keys.normal]
C-g = [
":write-all",
":insert-output lazygit >/dev/tty",
":redraw",
":reload-all"
]
# File explorer with yazi
[keys.normal.space]
e = [
":sh rm -f /tmp/unique-file-c5140c67",
":insert-output yazi '%{buffer_name}' --chooser-file=/tmp/unique-file-c5140c67",
":insert-output echo \"x1b[?1049h\" > /dev/tty",
":open %sh{cat /tmp/unique-file-c5140c67}",
":redraw",
":set mouse false",
":set mouse true",
]
E = [
":sh rm -f /tmp/unique-file-bea21125",
":insert-output yazi '%{workspace_directory}' --chooser-file=/tmp/unique-file-bea21125",
":insert-output echo \"x1b[?1049h\" > /dev/tty",
":open %sh{cat /tmp/unique-file-bea21125}",
":redraw",
":set mouse false",
":set mouse true",
]
# Search and replace with scooter
[keys.normal]
C-r = [
":write-all",
":insert-output scooter >/dev/tty",
":redraw",
":reload-all"
]

View File

@ -5,7 +5,7 @@ keybinds {
// bind "Alt c" { Copy; } // bind "Alt c" { Copy; }
} }
locked { locked {
bind "Ctrl g" { SwitchToMode "Normal"; } bind "Alt g" { SwitchToMode "Normal"; }
} }
resize { resize {
bind "Ctrl n" { SwitchToMode "Normal"; } bind "Ctrl n" { SwitchToMode "Normal"; }