Skip to content

Instantly share code, notes, and snippets.

@vinhnx
Created November 16, 2025 07:24
Show Gist options
  • Select an option

  • Save vinhnx/0c4bd2c2b5a66cf1cb99506997c22144 to your computer and use it in GitHub Desktop.

Select an option

Save vinhnx/0c4bd2c2b5a66cf1cb99506997c22144 to your computer and use it in GitHub Desktop.
# To permanently store config options, create a config.toml file located in your config directory:
# Linux and Mac: ~/.config/helix/config.toml
# Windows: %AppData%\helix\config.toml
theme = "onedark"
[editor]
# Show currently open buffers, only when more than one exists.
bufferline = "multiple"
# Highlight all lines with a cursor
cursorline = true
# Use relative line numbers
line-number = "relative"
# Show a ruler at column 120
rulers = [120]
# Force the theme to show colors
true-color = true
shell = ["pwsh", "-c"] # ← REPLACE "pwsh" with "fish" if you use FISH shell
undercurl = true
color-modes = true
# Minimum severity to show a diagnostic after the end of a line
end-of-line-diagnostics = "hint"
[editor.inline-diagnostics]
cursor-line = "error" # Show inline diagnostics when the cursor is on the line
other-lines = "disable" # Don't expand diagnostics unless the cursor is on the line
[editor.statusline]
left = ["mode", "spinner", "version-control", "file-name"]
# right = [
# "diagnostics",
# "selections",
# "register",
# "position",
# "total-line-numbers",
# "file-encoding",
# ]
[editor.lsp]
display-inlay-hints = true
# Disable automatically popups of signature parameter help
auto-signature-help = false
# Show LSP messages in the status line
display-messages = true
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.file-picker]
hidden = false
[editor.whitespace.render]
space = "all"
tab = "all"
nbsp = "all"
nnbsp = "all"
newline = "none"
[editor.indent-guides]
character = ""
render = true
[keys.normal]
"A-," = "goto_previous_buffer"
"A-." = "goto_next_buffer"
"A-w" = ":buffer-close"
"A-/" = "repeat_last_motion"
A-x = "extend_to_line_bounds"
X = "select_line_above"
[keys.select]
A-x = "extend_to_line_bounds"
X = "select_line_above"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment