Helix keymaps

This commit is contained in:
2025-07-08 09:43:16 +03:00
parent 23ca5c3c0a
commit 55e1289f18
7 changed files with 75 additions and 20 deletions

View File

@ -1,4 +1,4 @@
theme = "ao" theme = "custom" # monokai_soda, kaolin-valley-dark, material_deep_ocean, carbonfox
[editor] [editor]
# no you don't # no you don't
@ -50,12 +50,14 @@ right = [
"selections", "selections",
"primary-selection-length", "primary-selection-length",
"position", "position",
"position-percentage",
"total-line-numbers", "total-line-numbers",
] ]
[editor.lsp] [editor.lsp]
display-progress-messages = true # looks cool display-progress-messages = true # looks cool
display-inlay-hints = true # feels good auto-signature-help = true
display-inlay-hints = false # meh
[editor.cursor-shape] [editor.cursor-shape]
normal = "block" normal = "block"
@ -85,37 +87,48 @@ skip-levels = 1
[editor.gutters] [editor.gutters]
layout = ["diff", "diagnostics", "line-numbers", "spacer"] # TODO: don't like layout = ["diff", "diagnostics", "line-numbers", "spacer"] # TODO: don't like
line-numbers.min-width = 0 line-numbers.min-width = 1
[editor.soft-wrap] [editor.soft-wrap]
enable = true enable = true
max-wrap = 20 # increase to reduce forced wrapping max-wrap = 20 # increase to reduce forced wrapping
max-indent-retain = 0 # 40 max-indent-retain = 24 # 40
wrap-indicator = "↪" wrap-indicator = "↪"
[keys.insert] [keys.insert]
C-space = "signature_help"
S-tab = "move_parent_node_start" S-tab = "move_parent_node_start"
[keys.select] [keys.select]
x = "extend_line"
# a = ["append_mode", "collapse_selection"]
tab = "extend_parent_node_end" tab = "extend_parent_node_end"
S-tab = "extend_parent_node_start" S-tab = "extend_parent_node_start"
";" = ["collapse_selection", "normal_mode"]
V = "extend_to_line_end"
[keys.normal] [keys.normal]
tab = "move_parent_node_end" x = "extend_line"
S-tab = "move_parent_node_start"
"=" = ":format" "=" = ":format"
"A-=" = "format_selections" "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-k = "jump_view_up"
C-h = "jump_view_left" C-h = "jump_view_left"
C-j = "jump_view_down" C-j = "jump_view_down"
C-l = "jump_view_right" C-l = "jump_view_right"
L = "goto_next_buffer"
H = "goto_previous_buffer"
A-j = ["extend_to_line_bounds", "delete_selection", "paste_after"] A-j = ["extend_to_line_bounds", "delete_selection", "paste_after"]
A-k = [ A-k = [
@ -127,5 +140,35 @@ A-k = [
A-J = ["extend_to_line_bounds", "yank", "paste_after"] A-J = ["extend_to_line_bounds", "yank", "paste_after"]
A-K = ["extend_to_line_bounds", "yank", "paste_before"] 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",
]

View File

@ -19,8 +19,10 @@ name = "toml"
auto-format = true auto-format = true
[language-server.taplo] # TODO: still aligns
config = {} # https://github.com/helix-editor/helix/issues/3897 [language-server.taplo.config]
alignComments = false
align_comments = false
[language-server.tinymist.config] [language-server.tinymist.config]
@ -30,7 +32,7 @@ exportPdf = "onSave" # "onDocumentHasTitle", # default: never
semanticTokens = "enable" semanticTokens = "enable"
# [language-server.tinymist.nil] # [language-server.nil]
# formatting.command = "alejandra" # formatting.command = "alejandra"

View File

@ -0,0 +1,9 @@
inherits = "carbonfox"
warning = "magenta"
error = "red"
info = "blue"
hint = "orange"
# ui.background = {}
# ui.gutter = {}

View File

@ -7,7 +7,7 @@ bold_font Hack Nerd Font Bold
italic_font Hack Nerd Font Italic italic_font Hack Nerd Font Italic
bold_italic_font Hack Nerd Font Bold Italic bold_italic_font Hack Nerd Font Bold Italic
font_size 18 font_size 19
force_ltr yes force_ltr yes
text_composition_strategy 1 0 text_composition_strategy 1 0

View File

@ -1,7 +1,7 @@
volume=50 volume=50
hwdec=auto hwdec=auto
ytdl-format=bestvideo[height<=?1080][vcodec!=?av01]+bestaudio/best ytdl-format=bestvideo[height<=?1080][vcodec!=?av01]+bestaudio/best
sub-pos=20 sub-pos=10
# sub-visibility=yes # sub-visibility=yes

2
.gitignore vendored
View File

@ -32,8 +32,6 @@
!.config/git/config !.config/git/config
!.config/helix/ !.config/helix/
.config/helix/*
!.config/helix/*.toml
!.config/nvim/ !.config/nvim/
.config/nvim/* .config/nvim/*

View File

@ -2,6 +2,9 @@
rustc-wrapper = "sccache" rustc-wrapper = "sccache"
rustflags = ["-Z", "threads=8"] rustflags = ["-Z", "threads=8"]
[profile.release]
lto = true
[unstable] [unstable]
codegen-backend = true codegen-backend = true