Skip to content

Commit 8c6c81f

Browse files
committed
[helix] Add a keymap to run prek on the current file and reload
This is kind of hacky because Helix's `:run-shell-command` is asynchronous. Hopefully someday helix-editor/helix#14166 or similar is merged and this can be simplified.
1 parent baf0e04 commit 8c6c81f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.config/helix.symlink/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ y = ["hsplit", "jump_view_down", "goto_type_definition"]
5252
[keys.normal."+"]
5353
r = ":reflow"
5454
u = ":pipe sort -u"
55+
# Run prek on the current file and reload
56+
p = [":echo %sh{prek run --files %{buffer_name}}", ":reload"]
5557

5658
[keys.normal.space]
5759
# Print the current line's git blame information to the statusline.

0 commit comments

Comments
 (0)