Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Last active May 2, 2023 23:56
Show Gist options
  • Save mengwangk/cd56c5dda4f8a4f87410fcf5aabe0c40 to your computer and use it in GitHub Desktop.
Save mengwangk/cd56c5dda4f8a4f87410fcf5aabe0c40 to your computer and use it in GitHub Desktop.
A Walkthrough on Helix — A Post-Modern Modal Text Editor
[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "black", args = ["--quiet", "-"] }
language-server = { command = "pyright-langserver", args = ["--stdio"] }
config = {}
auto-format = true
[[language]]
name = "rust"
auto-format = true
[[language]]
name = "typescript"
auto-format = true
# pass format options according to https://github.com/typescript-language-server/typescript-language-server#workspacedidchangeconfiguration omitting the "[language].format." prefix.
config = { format = { "semicolons" = "insert", "insertSpaceBeforeFunctionParenthesis" = true } }
[[language]]
name = "javascript"
scope = "source.js"
injection-regex = "(js|javascript)"
file-types = ["js", "mjs", "cjs"]
shebangs = ["node"]
roots = []
comment-token = "//"
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascript" }
indent = { tab-width = 2, unit = " " }
[language.debugger]
name = "node-debug2"
command = "node"
transport = "stdio"
quirks = { absolute-paths = true }
args = ["/home/alpha2phi/workspace/temp/vscode-node-debug2/out/src/nodeDebug.js"]
[[language.debugger.templates]]
name = "source"
request = "launch"
completion = [ { name = "main", completion = "filename", default = "index.js" } ]
args = { program = "{0}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment