Helix keymaps
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
theme = "ao"
|
||||
theme = "custom" # monokai_soda, kaolin-valley-dark, material_deep_ocean, carbonfox
|
||||
|
||||
[editor]
|
||||
# no you don't
|
||||
@ -50,12 +50,14 @@ right = [
|
||||
"selections",
|
||||
"primary-selection-length",
|
||||
"position",
|
||||
"position-percentage",
|
||||
"total-line-numbers",
|
||||
]
|
||||
|
||||
[editor.lsp]
|
||||
display-progress-messages = true # looks cool
|
||||
display-inlay-hints = true # feels good
|
||||
auto-signature-help = true
|
||||
display-inlay-hints = false # meh
|
||||
|
||||
[editor.cursor-shape]
|
||||
normal = "block"
|
||||
@ -85,37 +87,48 @@ skip-levels = 1
|
||||
|
||||
[editor.gutters]
|
||||
layout = ["diff", "diagnostics", "line-numbers", "spacer"] # TODO: don't like
|
||||
line-numbers.min-width = 0
|
||||
line-numbers.min-width = 1
|
||||
|
||||
[editor.soft-wrap]
|
||||
enable = true
|
||||
max-wrap = 20 # increase to reduce forced wrapping
|
||||
max-indent-retain = 0 # 40
|
||||
max-wrap = 20 # increase to reduce forced wrapping
|
||||
max-indent-retain = 24 # 40
|
||||
wrap-indicator = "↪"
|
||||
|
||||
|
||||
[keys.insert]
|
||||
C-space = "signature_help"
|
||||
S-tab = "move_parent_node_start"
|
||||
|
||||
[keys.select]
|
||||
x = "extend_line"
|
||||
# a = ["append_mode", "collapse_selection"]
|
||||
tab = "extend_parent_node_end"
|
||||
S-tab = "extend_parent_node_start"
|
||||
";" = ["collapse_selection", "normal_mode"]
|
||||
V = "extend_to_line_end"
|
||||
|
||||
[keys.normal]
|
||||
tab = "move_parent_node_end"
|
||||
S-tab = "move_parent_node_start"
|
||||
|
||||
x = "extend_line"
|
||||
"=" = ":format"
|
||||
"A-=" = "format_selections"
|
||||
|
||||
D = ["extend_to_line_end", "delete_selection"]
|
||||
C-space = "signature_help"
|
||||
space.'.' = ":config-reload"
|
||||
|
||||
tab = "move_parent_node_end"
|
||||
S-tab = "move_parent_node_start"
|
||||
|
||||
V = ["goto_first_nonwhitespace", "extend_to_line_end"]
|
||||
D = ["ensure_selections_forward", "extend_to_line_end"]
|
||||
|
||||
L = "goto_next_buffer"
|
||||
H = "goto_previous_buffer"
|
||||
|
||||
C-k = "jump_view_up"
|
||||
C-h = "jump_view_left"
|
||||
C-j = "jump_view_down"
|
||||
C-l = "jump_view_right"
|
||||
L = "goto_next_buffer"
|
||||
H = "goto_previous_buffer"
|
||||
|
||||
A-j = ["extend_to_line_bounds", "delete_selection", "paste_after"]
|
||||
A-k = [
|
||||
@ -127,5 +140,35 @@ A-k = [
|
||||
A-J = ["extend_to_line_bounds", "yank", "paste_after"]
|
||||
A-K = ["extend_to_line_bounds", "yank", "paste_before"]
|
||||
|
||||
[keys.normal."+"]
|
||||
c = ":config-reload"
|
||||
|
||||
# Toggle
|
||||
[keys.normal.space.t]
|
||||
f = ":toggle auto-format"
|
||||
|
||||
c = ":toggle cursorline"
|
||||
w = ":toggle soft-wrap.enable"
|
||||
n = ":toggle line-number absolute relative"
|
||||
b = ":toggle bufferline never multiple"
|
||||
|
||||
r = ":set-option rulers []"
|
||||
R = ":set-option rulers [80,100]"
|
||||
|
||||
g = ":toggle indent-guides.render"
|
||||
i = ":toggle lsp.display-inlay-hints"
|
||||
e = ":toggle end-of-line-diagnostics disable hint"
|
||||
d = ":toggle inline-diagnostics.other-lines disable error"
|
||||
D = ":toggle inline-diagnostics.cursor-line disable warning"
|
||||
|
||||
z = [ # TODO: not work
|
||||
":set-option cursorline true",
|
||||
":set-option rulers [100]",
|
||||
":set-option soft-wrap.enable false",
|
||||
":set-option line-number relative",
|
||||
':set-option gutters.layout ["line-numbers","spacer"]',
|
||||
":set-option bufferline never",
|
||||
":set-option indent-guides.render true",
|
||||
":set-option lsp.display-inlay-hints false",
|
||||
":set-option end-of-line-diagnostics disable",
|
||||
":set-option inline-diagnostics.other-lines disable",
|
||||
":set-option inline-diagnostics.cursor-line disable",
|
||||
]
|
||||
|
Reference in New Issue
Block a user