Skip to content

Instantly share code, notes, and snippets.

@gj1118
Created April 28, 2023 19:09
Show Gist options
  • Save gj1118/ece02947ec8b94015adee3fbbaeb95ea to your computer and use it in GitHub Desktop.
Save gj1118/ece02947ec8b94015adee3fbbaeb95ea to your computer and use it in GitHub Desktop.
my helix config
# this seems to be a nice resource for keybindings
# https://github.com/matejc/helper_scripts/blob/71b0040640da989afa5c618e879ca2d3de263d9d/dotfiles/helix.nix#L166
theme="harneet"
[editor.cursor-shape]
insert = "block"
normal = "block"
select = "underline"
[editor.file-picker]
hidden = false # enables ignoring hidden files
parents = true # enables reading ignore files from parent directories
ignore = true # enables reading .ignore files
git-ignore = true #enables reading .gitignore files
git-global = true
git-exclude = true
[editor.statusline]
left=["mode","spinner","version-control", "file-name"]
right = ["diagnostics", "selections", "position"]
[editor]
bufferline="multiple"
line-number="relative"
gutters = ["diff", "diagnostics", "line-numbers", "spacer"]
mouse=true
color-modes=false # this will enable the modes highlighting in the status line
cursorline = true
auto-format = true
true-color=true
[editor.indent-guides]
render = true
# character = "|" # Some characters that work well: "▏", "┆", "┊", "⸽"
skip-levels = 1
[editor.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'
'<' = '>'
[editor.lsp]
display-inlay-hints = true
# display-signature-help-docs = true
[editor.soft-wrap]
enable=true
[keys.normal]
A-v = ":vsplit-new"
A-h = ":hsplit-new"
A-c = ":bclose"
S-C-left = "rotate_view"
S-C-right = "rotate_view_reverse"
A-S-left = "swap_view_left"
A-S-right = "swap_view_right"
C-p = "file_picker"
C-f = "global_search"
C-z = "undo"
C-r = "redo"
C-x=["yank_joined_to_clipboard", "delete_selection_noyank"]
C-c=["yank_joined_to_clipboard"]
C-a="goto_line_start"
C-e="goto_line_end"
p="toggle_comments"
S-right = ":bnext"
S-left = ":bprev"
"*" = [
"move_char_right",
"move_prev_word_start",
"move_next_word_end",
"search_selection",
"search_next",
]
[keys.insert]
C-space = "completion"
S-tab = "unindent"
C-z = "undo"
C-r = "redo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment