helix: add tinymist pin command

This commit is contained in:
2026-04-13 15:37:07 +02:00
parent 1e1a3f3f74
commit 6260584877

View File

@@ -26,9 +26,15 @@ display-inlay-hints = true
"_" = ["extend_line_up", "extend_to_line_bounds"]
"+" = ["extend_line_down", "extend_to_line_bounds"]
# Normally `goto`, but `git` works aswell
[keys.normal.g]
"b" = ":sh git show %sh{git blame -L %{cursor_line},+1 %{buffer_name} | awk '{print $1}'}"
# N, like German _Nachricht_ to the lsp
[keys.normal.n]
"p" = ':lsp-workspace-command tinymist.pinMain "%sh{realpath %{buffer_name}}"'
# Z is everything with view, so soft-wrap fits well
[keys.normal.z]
s = ":set soft-wrap.enable true"
S = ":set soft-wrap.enable false"