Skip to content

Instantly share code, notes, and snippets.

@shikaan
Last active February 5, 2025 07:30
Show Gist options
  • Save shikaan/96f186b8a2cec52f906ce500fd57eed8 to your computer and use it in GitHub Desktop.
Save shikaan/96f186b8a2cec52f906ce500fd57eed8 to your computer and use it in GitHub Desktop.
helix configuration for C debugging on Apple Silicon
[[language]]
name = "c"
scope = "source.c"
injection-regex = "c"
file-types = ["c"] # TODO: ["h"]
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "clangd" ]
indent = { tab-width = 2, unit = " " }
[language.debugger]
name = "lldb-dap"
transport = "stdio"
command = "arch"
args = [ "-arm64", "lldb-dap" ]
[[language.debugger.templates]]
name = "binary"
request = "launch"
completion = [ { name = "binary", completion = "filename" } ]
args = { console = "internalConsole", program = "{0}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment