Last active
February 24, 2025 05:58
-
-
Save alycda/2b8b79bcbb13c248cee0e9944c95abd3 to your computer and use it in GitHub Desktop.
Helix Editor Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" } |
Author
alycda
commented
Jan 10, 2025
•
- https://docs.helix-editor.com/configuration.html
- https://github.com/helix-editor/helix/wiki/Debugger-Configurations#installation-instructions
- or: https://github.com/rust-lang/rust/blob/master/src/etc/rust-lldb
- see https://quantonganh.com/2023/08/11/debug-rust-helix-2.md
- https://docs.helix-editor.com/languages.html
- https://docs.helix-editor.com/themes.html
when using nightly rust in a toolchain file (as of 1/10/25) it will not provide any language support, so run: rustup override set stable/beta
to ignore the toolchain
my background in WARP with helix background set to transparent with "ui.background" = {}
https://4kwallpapers.com/sci-fi/retrowave-synthwave-vaporwave-digital-art-neon-art-purple-5592.html
Font (in Warp): https://www.programmingfonts.org/#cascadia-code
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