helix-mods/languages.toml

369 lines
7.7 KiB
TOML
Raw Normal View History

[[language]]
name = "rust"
scope = "source.rust"
injection-regex = "rust"
file-types = ["rs"]
roots = []
auto-format = true
comment-token = "//"
config = """
{
"cargo": {
"loadOutDirsFromCheck": true
},
"procMacro": {
"enable": false
}
}
"""
language-server = { command = "rust-analyzer" }
indent = { tab-width = 4, unit = " " }
[language.debugger]
name = "lldb-vscode"
transport = "tcp"
command = "lldb-vscode"
args = []
port-arg = "-p {}"
[[language.debugger.templates]]
name = "binary"
request = "launch"
2021-08-29 13:55:42 +02:00
completion = [ { name = "binary", completion = "filename" } ]
args = { console = "internalConsole", program = "{0}" }
2021-08-24 19:27:54 +02:00
[[language.debugger.templates]]
name = "attach"
request = "attach"
2021-08-29 12:16:57 +02:00
completion = [ "pid" ]
2021-08-24 19:27:54 +02:00
args = { console = "internalConsole", pid = "{0}" }
[[language]]
name = "toml"
scope = "source.toml"
injection-regex = "toml"
file-types = ["toml"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }
[[language]]
name = "protobuf"
scope = "source.proto"
injection-regex = "protobuf"
file-types = ["proto"]
roots = []
comment-token = "//"
indent = { tab-width = 2, unit = " " }
[[language]]
name = "elixir"
scope = "source.elixir"
injection-regex = "elixir"
file-types = ["ex", "exs"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }
2021-04-07 07:04:13 +02:00
[[language]]
name = "json"
scope = "source.json"
injection-regex = "json"
file-types = ["json"]
roots = []
indent = { tab-width = 2, unit = " " }
[[language]]
name = "c"
scope = "source.c"
injection-regex = "c"
file-types = ["c"] # TODO: ["h"]
roots = []
comment-token = "//"
2021-04-07 07:04:13 +02:00
2021-06-03 15:07:50 +02:00
language-server = { command = "clangd" }
2021-04-07 07:04:13 +02:00
indent = { tab-width = 2, unit = " " }
[language.debugger]
name = "lldb-vscode"
transport = "tcp"
command = "lldb-vscode"
args = []
port-arg = "-p {}"
[[language.debugger.templates]]
name = "binary"
request = "launch"
2021-08-29 13:55:42 +02:00
completion = [ { name = "binary", completion = "filename" } ]
2021-08-24 19:32:38 +02:00
args = { console = "internalConsole", program = "{0}" }
2021-08-24 19:27:54 +02:00
[[language.debugger.templates]]
name = "attach"
request = "attach"
2021-08-29 12:16:57 +02:00
completion = [ "pid" ]
2021-08-24 19:27:54 +02:00
args = { console = "internalConsole", pid = "{0}" }
[[language]]
name = "cpp"
scope = "source.cpp"
injection-regex = "cpp"
2021-08-18 18:39:08 +02:00
file-types = ["cc", "hh", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino"]
roots = []
comment-token = "//"
2021-06-03 15:07:50 +02:00
language-server = { command = "clangd" }
indent = { tab-width = 2, unit = " " }
[language.debugger]
name = "lldb-vscode"
transport = "tcp"
command = "lldb-vscode"
args = []
port-arg = "-p {}"
[[language.debugger.templates]]
name = "binary"
request = "launch"
2021-08-29 13:55:42 +02:00
completion = [ { name = "binary", completion = "filename" } ]
2021-08-24 19:32:38 +02:00
args = { console = "internalConsole", program = "{0}" }
2021-08-24 19:27:54 +02:00
[[language.debugger.templates]]
name = "attach"
request = "attach"
2021-08-29 12:16:57 +02:00
completion = [ "pid" ]
2021-08-24 19:27:54 +02:00
args = { console = "internalConsole", pid = "{0}" }
2021-04-07 07:04:13 +02:00
[[language]]
name = "go"
scope = "source.go"
injection-regex = "go"
file-types = ["go"]
roots = ["Gopkg.toml", "go.mod"]
auto-format = true
comment-token = "//"
2021-04-07 07:04:13 +02:00
language-server = { command = "gopls" }
# TODO: gopls needs utf-8 offsets?
2021-04-23 11:55:34 +02:00
indent = { tab-width = 4, unit = "\t" }
2021-04-07 07:04:13 +02:00
2021-08-24 10:56:18 +02:00
[language.debugger]
name = "go"
transport = "tcp"
command = "dlv"
args = ["dap"]
port-arg = "-l 127.0.0.1:{}"
[[language.debugger.templates]]
name = "source"
request = "launch"
2021-08-29 13:55:42 +02:00
completion = [ { name = "entrypoint", completion = "filename", default = "." } ]
2021-08-24 19:32:38 +02:00
args = { mode = "debug", program = "{0}" }
2021-08-24 10:56:18 +02:00
[[language.debugger.templates]]
name = "binary"
request = "launch"
2021-08-29 13:55:42 +02:00
completion = [ { name = "binary", completion = "filename" } ]
2021-08-24 19:32:38 +02:00
args = { mode = "exec", program = "{0}" }
2021-08-24 10:56:18 +02:00
[[language.debugger.templates]]
name = "test"
request = "launch"
2021-08-29 13:51:47 +02:00
completion = [ { name = "tests", completion = "directory", default = "." } ]
args = { mode = "test", program = "{0}" }
2021-08-23 15:56:41 +02:00
2021-08-24 19:27:54 +02:00
[[language.debugger.templates]]
name = "attach"
request = "attach"
2021-08-29 12:16:57 +02:00
completion = [ "pid" ]
2021-08-24 19:27:54 +02:00
args = { mode = "local", processId = "{0}" }
[[language]]
name = "javascript"
scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js", "mjs"]
roots = []
comment-token = "//"
# TODO: highlights-jsx, highlights-params
indent = { tab-width = 2, unit = " " }
[[language]]
name = "typescript"
scope = "source.ts"
injection-regex = "^(ts|typescript)$"
file-types = ["ts"]
roots = []
# TODO: highlights-jsx, highlights-params
language-server = { command = "typescript-language-server", args = ["--stdio"] }
indent = { tab-width = 2, unit = " " }
[[language]]
name = "css"
scope = "source.css"
injection-regex = "css"
file-types = ["css"]
roots = []
indent = { tab-width = 2, unit = " " }
[[language]]
name = "html"
scope = "text.html.basic"
injection-regex = "html"
file-types = ["html"]
roots = []
indent = { tab-width = 2, unit = " " }
2021-04-07 06:51:09 +02:00
[[language]]
name = "python"
scope = "source.python"
injection-regex = "python"
file-types = ["py"]
roots = []
comment-token = "#"
2021-04-07 06:51:09 +02:00
language-server = { command = "pyls" }
# TODO: pyls needs utf-8 offsets
indent = { tab-width = 4, unit = " " }
2021-04-07 07:04:13 +02:00
2021-06-10 01:05:54 +02:00
[[language]]
name = "nix"
scope = "source.nix"
injection-regex = "nix"
file-types = ["nix"]
roots = []
comment-token = "#"
2021-06-10 01:05:54 +02:00
indent = { tab-width = 2, unit = " " }
2021-04-07 07:04:13 +02:00
[[language]]
name = "ruby"
scope = "source.ruby"
injection-regex = "ruby"
file-types = ["rb"]
roots = []
comment-token = "#"
2021-04-07 07:04:13 +02:00
language-server = { command = "solargraph", args = ["stdio"] }
indent = { tab-width = 2, unit = " " }
[[language]]
name = "bash"
scope = "source.bash"
injection-regex = "bash"
file-types = ["sh", "bash"]
roots = []
comment-token = "#"
2021-04-07 07:04:13 +02:00
language-server = { command = "bash-language-server", args = ["start"] }
indent = { tab-width = 2, unit = " " }
[[language]]
name = "php"
scope = "source.php"
injection-regex = "php"
file-types = ["php"]
roots = []
indent = { tab-width = 2, unit = " " }
2021-06-15 18:50:42 +02:00
[[language]]
name = "latex"
scope = "source.tex"
injection-regex = "tex"
file-types = ["tex"]
roots = []
comment-token = "%"
2021-06-15 18:50:42 +02:00
indent = { tab-width = 4, unit = "\t" }
2021-07-04 14:24:33 +02:00
[[language]]
name = "julia"
scope = "source.julia"
injection-regex = "julia"
file-types = ["jl"]
roots = []
comment-token = "#"
language-server = { command = "julia", args = [ "--startup-file=no", "--history-file=no", "-e", "using LanguageServer;using Pkg;import StaticLint;import SymbolServer;env_path = dirname(Pkg.Types.Context().env.project_file);server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, \"\");server.runlinter = true;run(server);" ] }
2021-07-04 14:24:33 +02:00
indent = { tab-width = 2, unit = " " }
2021-08-10 07:09:57 +02:00
[[language]]
name = "java"
scope = "source.java"
injection-regex = "java"
file-types = ["java"]
roots = []
indent = { tab-width = 4, unit = " " }
[[language]]
name = "ledger"
scope = "source.ledger"
injection-regex = "ledger"
file-types = ["ldg", "ledger", "journal"]
roots = []
comment-token = ";"
indent = { tab-width = 4, unit = " " }
[[language]]
name = "ocaml"
scope = "source.ocaml"
injection-regex = "ocaml"
file-types = ["ml"]
roots = []
comment-token = "(**)"
indent = { tab-width = 2, unit = " " }
[[language]]
name = "ocaml-interface"
scope = "source.ocaml.interface"
file-types = ["mli"]
roots = []
comment-token = "(**)"
indent = { tab-width = 2, unit = " "}
[[language]]
name = "lua"
scope = "source.lua"
file-types = ["lua"]
roots = []
comment-token = "--"
indent = { tab-width = 2, unit = " " }
[[language]]
name = "yaml"
scope = "source.yaml"
file-types = ["yml", "yaml"]
roots = []
comment-token = "#"
indent = { tab-width = 2, unit = " " }
# [[language]]
# name = "haskell"
# scope = "source.haskell"
# injection-regex = "haskell"
# file-types = ["hs"]
# roots = []
# comment-token = "--"
#
# indent = { tab-width = 2, unit = " " }
[[language]]
name = "zig"
scope = "source.zig"
injection-regex = "zig"
file-types = ["zig"]
roots = ["build.zig"]
auto-format = true
comment-token = "//"
language-server = { command = "zls" }
indent = { tab-width = 4, unit = " " }