Skip to content

Instantly share code, notes, and snippets.

@prnk28
Created April 26, 2024 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prnk28/7755da7ef2ae229fb80616dff92a2d06 to your computer and use it in GitHub Desktop.
Save prnk28/7755da7ef2ae229fb80616dff92a2d06 to your computer and use it in GitHub Desktop.
Helix Configuration
theme = "kanagawa"
[editor]
true-color = true
bufferline = "multiple"
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.file-picker]
hidden = false
[editor.lsp]
display-messages = true
display-inlay-hints = true
[keys.normal]
C-f = [":new", ":insert-output lf -print-selection", "split_selection_on_newline", "goto_file", "goto_last_modification", "goto_last_modified_file", ":buffer-close!", ":redraw"]
C-s = ":w" # Maps Ctrl-s to the typable command :w which is an alias for :write (save file)
C-o = ":open ~/.config/helix/config.toml" # Maps Ctrl-o to opening of the helix config file
"C-S-esc" = "extend_line" # Maps Ctrl-Shift-Escape to extend_line
"ret" = [
"open_below",
"normal_mode",
] # Maps the enter key to open_below then re-enter normal mode
"pageup" = ["code_action"]
[keys.normal.g]
a = "code_action" # Maps `ga` to show possible code actions
# create a new minor mode bound to `+`
[keys.normal."+"]
s = ":run-shell-command task dev"
d = ":run-shell-command task compose-down"
u = ":run-shell-command task compose-up"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment