helix-config
helix-config
https://github.com/rajasegar/awesome-helix
An Awesome list of resources about the Helix editor such as tools, blogs, articles and videos.
Hoping to keep this list updated as much as possible, any new links through PRs are appreciated.
- Even more hindsight on Vim, Helix and Kakoune
- Helix Editor – 90% of Neovim With Kakoune
- Moving from Vim to Helix
- Configure Helix to use ElixirLS
- A Walkthrough on Helix — A Post-Modern Modal Text Editor
- HackerNews post
- Helix: A Terminal Based Text Editor for Power Linux Users
- Helix Editor – 90% of Neovim With Kakoune
- Switching to Helix: My Experience and Tips
- Helix editor with multiple lsp's for one language
- Note talking with Helix, Tp-Note and LanguageTool
- Turning Helix into an IDE with the help of WezTerm and CLI tools
- Neovim vs Helix: Which is the best Vi/Vim style modal editor?
- Helix: an editor hopping story (NeovimConf 2022 Talk)
- Helix 🧬 the Rust Powered Development Environment
- Taking a look at the Helix editor (Nov 5th, 2022)
- Helix Text Editor: Better than Neovim?
- A very brief overview of the helix modal text editor
- helixcasts
- Walking through my dev setup
- Helix overview, with Rust examples
- Helix – Getting Dangerous
- Helix – Getting More Dangerous (Part 2)
- Helix – Bridging the IDE gap with CLI tools
- Helix - Release 22.12 (GIT GUTTERS!)
- 0 to LSP : Helix RC From Scratch
- Helix Q&A
- Helix – Diagnostics
- Helix – clean up your fuzzy finder!
- Helix – tree file picker... TODAY?!?
- Helix & Friends: slides
- Helix – buffers and windows
- Helix & marksman! (why I don't use Obsidian)
- Helix – jump around
- Helix – find any command or keybinding
- Sample configs
- A Vim-like configuration for Helix
- Obedi Ferreira
- Jackson Frankland
- Alex
- Vitor Melo
- Arthur Deierlein - For setting up handlebars and Ember
- helix-editor-config-toml - A Helix editor configuration (config.toml) for new users.
- Andrew Prentice
- Howard Chen
- Delaware Valley Regional Planning Commission
- Seth Messer
- Hien Pham
- Kangwook Lee
- Bart Dorsey
- Gian Lu
- Benoît Cortier
- Robert
- Helix GPT - Code completion LSP for Helix
- Helix Editor Playground
- Helix Shortcut Quiz
- Helix + ZK customized interop
- Helix exec: run command on current file with helix using zellij
- File tree explorer alternative for Helix Editor in i3
- Code snippets in your terminal
- Dance - Helix - Visual Studio Code extension for Helix
- Keyglide - Competitive Online File Editing
===
https://github.com/Fepozopo/helix
config.toml ( %userprofile%\AppData\Roaming\helix\ ) ( $HOME/.config/helix/ )
theme = "catppuccin_mocha"
[editor]
line-number = "relative"
mouse = false
cursorline = true
bufferline = "multiple"
scrolloff = 7
rulers = [79]
color-modes = true
end-of-line-diagnostics = "hint"
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.indent-guides]
render = true
[editor.soft-wrap]
enable = true
[editor.file-picker]
hidden = false
git-ignore = false
[editor.lsp]
display-messages = true
[editor.inline-diagnostics]
cursor-line = "hint"
other-lines = "hint"
[keys.normal]
C-s = ":w"
# Quick iteration on config changes
C-o = ":config-open"
C-r = ":config-reload"
# Some nice Helix stuff
C-h = "select_prev_sibling"
C-j = "shrink_selection"
C-k = "expand_selection"
C-l = "select_next_sibling"
# Personal preference
o = ["open_below", "normal_mode"]
O = ["open_above", "normal_mode"]
# Muscle memory
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
"%" = "match_brackets"
V = ["select_mode", "extend_to_line_bounds"]
# C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"]
D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"]
S = "surround_add" # Would be nice to be able to do something after this but it isn't chainable
# Clipboards over registers ye ye
x = "delete_selection"
p = ["paste_clipboard_after", "collapse_selection"]
P = ["paste_clipboard_before", "collapse_selection"]
# Would be nice to add ya and yi, but the surround commands can't be chained
Y = ["extend_to_line_end", "yank_main_selection_to_clipboard", "collapse_selection"]
# Uncanny valley stuff, this makes w and b behave as they do Vim
w = ["move_next_word_start", "move_char_right", "collapse_selection"]
W = ["move_next_long_word_start", "move_char_right", "collapse_selection"]
e = ["move_next_word_end", "collapse_selection"]
E = ["move_next_long_word_end", "collapse_selection"]
b = ["move_prev_word_start", "collapse_selection"]
B = ["move_prev_long_word_start", "collapse_selection"]
# If you want to keep the selection-while-moving behaviour of Helix, this two lines will help a lot,
# especially if you find having text remain selected while you have switched to insert or append mode
#
# There is no real difference if you have overridden the commands bound to 'w', 'e' and 'b' like above
# But if you really want to get familiar with the Helix way of selecting-while-moving, comment the
# bindings for 'w', 'e', and 'b' out and leave the bindings for 'i' and 'a' active below. A world of difference!
i = ["insert_mode", "collapse_selection"]
a = ["append_mode", "collapse_selection"]
# Undoing the 'd' + motion commands restores the selection which is annoying
u = ["undo", "collapse_selection"]
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "keep_primary_selection"]
# Search for word under cursor
"*" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"]
"#" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"]
# Make j and k behave as they do Vim when soft-wrap is enabled
j = "move_line_down"
k = "move_line_up"
# Extend and select commands that expect a manual input can't be chained
# I've kept d[X] commands here because it's better to at least have the stuff you want to delete
# selected so that it's just a keystroke away to delete
[keys.normal.d]
d = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection"]
t = ["extend_till_char"]
s = ["surround_delete"]
i = ["select_textobject_inner"]
a = ["select_textobject_around"]
j = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
down = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
k = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
up = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
G = ["select_mode", "extend_to_line_bounds", "goto_last_line", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
w = ["move_next_word_start", "yank_main_selection_to_clipboard", "delete_selection"]
W = ["move_next_long_word_start", "yank_main_selection_to_clipboard", "delete_selection"]
g = { g = ["select_mode", "extend_to_line_bounds", "goto_file_start", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"] }
[keys.normal.y]
y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "normal_mode", "collapse_selection"]
j = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
down = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
k = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
up = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
G = ["select_mode", "extend_to_line_bounds", "goto_last_line", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
w = ["move_next_word_start", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
W = ["move_next_long_word_start", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
g = { g = ["select_mode", "extend_to_line_bounds", "goto_file_start", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"] }
[keys.insert]
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "normal_mode"]
[keys.select]
# Muscle memory
"{" = ["extend_to_line_bounds", "goto_prev_paragraph"]
"}" = ["extend_to_line_bounds", "goto_next_paragraph"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
D = ["extend_to_line_bounds", "delete_selection", "normal_mode"]
# C = ["goto_line_start", "extend_to_line_bounds", "change_selection"]
"%" = "match_brackets"
S = "surround_add" # Basically 99% of what I use vim-surround for
u = ["switch_to_lowercase", "collapse_selection", "normal_mode"]
U = ["switch_to_uppercase", "collapse_selection", "normal_mode"]
# Visual-mode specific muscle memory
i = "select_textobject_inner"
a = "select_textobject_around"
# Some extra binds to allow us to insert/append in select mode because it's nice with multiple cursors
tab = ["insert_mode", "collapse_selection"] # tab is read by most terminal editors as "C-i"
C-a = ["append_mode", "collapse_selection"]
# Make selecting lines in visual mode behave sensibly
k = ["extend_line_up", "extend_to_line_bounds"]
j = ["extend_line_down", "extend_to_line_bounds"]
# Clipboards over registers ye ye
d = ["yank_main_selection_to_clipboard", "delete_selection"]
x = ["yank_main_selection_to_clipboard", "delete_selection"]
y = ["yank_main_selection_to_clipboard", "normal_mode", "flip_selections", "collapse_selection"]
Y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "goto_line_start", "collapse_selection", "normal_mode"]
p = "replace_selections_with_clipboard" # No life without this
P = "paste_clipboard_before"
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
languages.toml ( %userprofile%\AppData\Roaming\helix\ ) ( $HOME/.config/helix/ )
[[language]]
name = "go"
language-servers = [ "gopls", "golangci-lint-lsp" ]
auto-format = true
formatter = { command = "goimports" }
[language-server.gopls]
command = "gopls"
[language-server.gopls.config.hints]
assignVariableTypes = true
compositeLiteralFields = true
constantValues = true
functionTypeParameters = true
parameterNames = true
rangeVariableTypes = true
[language-server.golangci-lint-lsp]
command = "golangci-lint-langserver"
[language-server.golangci-lint-lsp.config]
command = ["golangci-lint", "run", "--output.json.path=stdout", "--show-stats=false", "--issues-exit-code=1"]
[[language]]
name = "python"
language-servers = ["ty", "ruff"]
auto-format = true
formatter = { command = "ruff" }
[language-server.ty]
command = "ty"
args = ["server"]
[language-server.ty.config]
inlayHints.callArgumentNames = false
experimental.rename = true
experimental.autoImport = true
[language-server.ruff]
command = "ruff"
args = ["server"]
[[language]]
name = "rust"
auto-format = true
language-servers = [ "rust-analyzer" ]
persistent-diagnostic-sources = ["rustc", "clippy"]
[language-server.rust-analyzer]
command = "rust-analyzer"
[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false
[language-server.rust-analyzer.config.check]
command = "clippy"
extraArgs = ["--", "-W", "clippy::all", "-W", "clippy::pedantic"]
[language-server.rust-analyzer.config.files]
watcher = "server"
.gitignore ( %userprofile%\AppData\Roaming\helix\ ) ( $HOME/.config/helix/ )
.vscode .DS_Store runtime
=========== End

浙公网安备 33010602011771号