Skip to content

Instantly share code, notes, and snippets.

@alycda
Last active February 24, 2025 05:58
Show Gist options
  • Save alycda/2b8b79bcbb13c248cee0e9944c95abd3 to your computer and use it in GitHub Desktop.
Save alycda/2b8b79bcbb13c248cee0e9944c95abd3 to your computer and use it in GitHub Desktop.
Helix Editor Configuration
theme = "mine"
[editor.soft-wrap]
enable = true
[editor]
# line-number = "relative"
rulers = [72, 80, 100, 120]
"color-modes" = true
# https://helix-editor.com/news/release-25-01-highlights/
# https://github.com/helix-editor/helix/blob/b53dafe326d51b7f64a1c52379e3d4150cd2991e/book/src/editor.md#editorinline-diagnostics-section
[editor.inline-diagnostics]
cursor-line = "hint"
other-lines = "hint"
# [keys.normal]
# [language-server.rust-analyzer.config]
# checkOnSave.command = "clippy"
# inlayHints.bindingModeHints.enable = true
# inlayHints.closureReturnTypeHints.enable = "with_block"
# inlayHints.typeHints.enable = true
# https://rust-analyzer.github.io/manual.html
# https://rust-analyzer.github.io/manual.html#configuration
[[language]]
name = "rust"
# scope = "source.rust"
formatter = { command = "rustfmt" }
auto-format = true
file-types = ["rs"]
language-servers = [ "rust-analyzer" ]
[language-server.rust-analyzer]
command = "rust-analyzer"
# args = ["--stdio"]
[language-server.rust-analyzer.config]
cargo.toolchain = "beta"
rustc.toolchain = "beta"
checkOnSave.command = "clippy"
inlayHints.bindingModeHints.enable = true
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.typeHints.enable = true
[language-server.rust-analyzer.config.check]
command = "clippy"
# [language-server.typescript]
# command = "typescript-language-server"
# args = ["--stdio"]
# [[language]]
# name = "typescript"
# language-servers = ["typescript"]
# auto-format = true
[[language]]
name = "javascript"
language-servers = ["typescript"]
auto-format = true
[[language]]
name = "typescript"
scope = "source.ts"
injection-regex = "ts|typescript"
file-types = ["ts", "mts", "cts"]
shebangs = ["deno", "node"]
roots = ["deno.json", "package.json", "tsconfig.json"]
comment-token = "//"
language-servers = ["typescript-language-server"]
indent = { tab-width = 2, unit = " " }
[language-server.typescript-language-server]
command = "typescript-language-server"
args = ["--stdio"]
[[language]]
name = "json"
scope = "source.json"
file-types = ["json", "jsonc", "geojson"]
roots = []
language-servers = ["json"]
indent = { tab-width = 2, unit = " " }
[language-server.json]
command = "vscode-json-languageserver"
args = ["--stdio"]
# https://github.com/helix-editor/helix/blob/master/runtime/themes/boo_berry.toml
inherits = "boo_berry"
"ui.background" = {}
"ui.cursor.primary.select" = { fg = "berry", bg = "bubblegum" }
"ui.cursor.primary.insert" = { fg = "berry", bg = "mint" }
@alycda
Copy link
Author

alycda commented Jan 28, 2025

@alycda
Copy link
Author

alycda commented Feb 19, 2025

hx --health rust
Configured language servers:
  ✓ rust-analyzer: /Users/alyssa.evans/.cargo/bin/rust-analyzer
Configured debug adapter: lldb-dap
Binary for debug adapter: 'lldb-dap' not found in $PATH
Configured formatter: None
Tree-sitter parser: ✓
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✓

curl -L https://github.com/vadimcn/vscode-lldb/releases/latest/download/codelldb-aarch64-darwin.vsix -o codelldb.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment