-
-
Save alycda/2b8b79bcbb13c248cee0e9944c95abd3 to your computer and use it in GitHub Desktop.
| 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"] | |
| [language-server.brighterscript-lsp] | |
| command = "bsc" | |
| args = ["--lsp"] | |
| [[language]] | |
| # https://github.com/rokucommunity/brighterscript | |
| name = "brightscript" | |
| scope = "source.brightscript" | |
| injection-regex = "brightscript" | |
| file-types = ["brs", "bs"] | |
| comment-tokens = ["'", "rem"] | |
| indent = { tab-width = 4, unit = " " } | |
| language-servers = ["brighterscript-lsp"] |
| # 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" } |
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
BrightScript tree-sitter:
-
Clone the existing grammar:
git clone https://github.com/ajdelcimmuto/tree-sitter-brightscript -
Build the grammar:
cd tree-sitter-brightscript
npm install
tree-sitter generate -
Add to Helix languages.toml:
[[language]]
name = "brightscript"
scope = "source.brightscript"
injection-regex = "brightscript"
file-types = ["brs", "bs"]
comment-tokens = ["'", "rem"]
indent = { tab-width = 4, unit = " " }
language-servers = ["brighterscript-lsp"]
[[grammar]]
name = "brightscript"
source = { path = "/path/to/tree-sitter-brightscript" }
- Build grammar for Helix:
hx --grammar fetch
hx --grammar build
superseded by: alycda/dotfiles#7

Uh oh!
There was an error while loading. Please reload this page.