Last active
May 2, 2023 23:56
-
-
Save mengwangk/cd56c5dda4f8a4f87410fcf5aabe0c40 to your computer and use it in GitHub Desktop.
A Walkthrough on Helix — A Post-Modern Modal Text Editor
This file contains hidden or 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
[[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