2021-03-25 09:26:25 +03:00
|
|
|
[[language]]
|
|
|
|
name = "rust"
|
|
|
|
scope = "source.rust"
|
|
|
|
injection-regex = "rust"
|
|
|
|
file-types = ["rs"]
|
|
|
|
roots = []
|
2021-06-12 04:20:37 +03:00
|
|
|
auto-format = true
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "//"
|
2021-07-18 10:56:25 +03:00
|
|
|
config = """
|
|
|
|
{
|
|
|
|
"cargo": {
|
|
|
|
"loadOutDirsFromCheck": true
|
|
|
|
},
|
|
|
|
"procMacro": {
|
|
|
|
"enable": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"""
|
2021-03-25 09:26:25 +03:00
|
|
|
|
|
|
|
language-server = { command = "rust-analyzer" }
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-08-24 12:01:05 +03:00
|
|
|
[language.debugger]
|
2021-08-30 16:09:41 +03:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 13:49:31 +03:00
|
|
|
transport = "stdio"
|
2021-08-24 12:01:05 +03:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 14:55:42 +03:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 20:04:14 +03:00
|
|
|
args = { console = "internalConsole", program = "{0}" }
|
2021-08-24 12:01:05 +03:00
|
|
|
|
2021-08-24 20:27:54 +03:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 13:16:57 +03:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 20:27:54 +03:00
|
|
|
args = { console = "internalConsole", pid = "{0}" }
|
|
|
|
|
2021-03-25 09:26:25 +03:00
|
|
|
[[language]]
|
|
|
|
name = "toml"
|
|
|
|
scope = "source.toml"
|
|
|
|
injection-regex = "toml"
|
|
|
|
file-types = ["toml"]
|
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "#"
|
2021-03-25 09:26:25 +03:00
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-04-07 07:40:20 +03:00
|
|
|
|
2021-08-18 13:54:47 +03:00
|
|
|
[[language]]
|
|
|
|
name = "protobuf"
|
|
|
|
scope = "source.proto"
|
|
|
|
injection-regex = "protobuf"
|
|
|
|
file-types = ["proto"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-01 22:46:31 +03:00
|
|
|
[[language]]
|
|
|
|
name = "elixir"
|
|
|
|
scope = "source.elixir"
|
|
|
|
injection-regex = "elixir"
|
|
|
|
file-types = ["ex", "exs"]
|
|
|
|
roots = []
|
2021-08-07 09:04:37 +03:00
|
|
|
comment-token = "#"
|
2021-06-01 22:46:31 +03:00
|
|
|
|
2021-09-07 17:23:05 +03:00
|
|
|
language-server = { command = "elixir-ls" }
|
2021-06-01 22:46:31 +03:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 08:04:13 +03: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 = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "//"
|
2021-04-07 08:04:13 +03:00
|
|
|
|
2021-06-03 16:07:50 +03:00
|
|
|
language-server = { command = "clangd" }
|
2021-04-07 08:04:13 +03:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-24 12:01:05 +03:00
|
|
|
[language.debugger]
|
2021-08-30 16:09:41 +03:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 13:49:31 +03:00
|
|
|
transport = "stdio"
|
2021-08-24 12:01:05 +03:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 14:55:42 +03:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 20:32:38 +03:00
|
|
|
args = { console = "internalConsole", program = "{0}" }
|
2021-08-24 12:01:05 +03:00
|
|
|
|
2021-08-24 20:27:54 +03:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 13:16:57 +03:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 20:27:54 +03:00
|
|
|
args = { console = "internalConsole", pid = "{0}" }
|
|
|
|
|
2021-04-07 07:40:20 +03:00
|
|
|
[[language]]
|
|
|
|
name = "cpp"
|
|
|
|
scope = "source.cpp"
|
|
|
|
injection-regex = "cpp"
|
2021-08-18 19:39:08 +03:00
|
|
|
file-types = ["cc", "hh", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino"]
|
2021-04-07 07:40:20 +03:00
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "//"
|
2021-04-07 07:40:20 +03:00
|
|
|
|
2021-06-03 16:07:50 +03:00
|
|
|
language-server = { command = "clangd" }
|
2021-04-07 07:40:20 +03:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-24 12:01:05 +03:00
|
|
|
[language.debugger]
|
2021-08-30 16:09:41 +03:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 13:49:31 +03:00
|
|
|
transport = "stdio"
|
2021-08-24 12:01:05 +03:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 14:55:42 +03:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 20:32:38 +03:00
|
|
|
args = { console = "internalConsole", program = "{0}" }
|
2021-08-24 12:01:05 +03:00
|
|
|
|
2021-08-24 20:27:54 +03:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 13:16:57 +03:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 20:27:54 +03:00
|
|
|
args = { console = "internalConsole", pid = "{0}" }
|
|
|
|
|
2021-04-07 08:04:13 +03:00
|
|
|
[[language]]
|
|
|
|
name = "go"
|
|
|
|
scope = "source.go"
|
|
|
|
injection-regex = "go"
|
|
|
|
file-types = ["go"]
|
|
|
|
roots = ["Gopkg.toml", "go.mod"]
|
2021-06-12 04:20:37 +03:00
|
|
|
auto-format = true
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "//"
|
2021-04-07 08:04:13 +03:00
|
|
|
|
|
|
|
language-server = { command = "gopls" }
|
2021-04-15 11:34:38 +03:00
|
|
|
# TODO: gopls needs utf-8 offsets?
|
2021-04-23 12:55:34 +03:00
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
2021-04-07 08:04:13 +03:00
|
|
|
|
2021-08-24 11:56:18 +03: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 14:55:42 +03:00
|
|
|
completion = [ { name = "entrypoint", completion = "filename", default = "." } ]
|
2021-08-24 20:32:38 +03:00
|
|
|
args = { mode = "debug", program = "{0}" }
|
2021-08-24 11:56:18 +03:00
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 14:55:42 +03:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 20:32:38 +03:00
|
|
|
args = { mode = "exec", program = "{0}" }
|
2021-08-24 11:56:18 +03:00
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "test"
|
|
|
|
request = "launch"
|
2021-08-29 14:51:47 +03:00
|
|
|
completion = [ { name = "tests", completion = "directory", default = "." } ]
|
|
|
|
args = { mode = "test", program = "{0}" }
|
2021-08-23 16:56:41 +03:00
|
|
|
|
2021-08-24 20:27:54 +03:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 13:16:57 +03:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 20:27:54 +03:00
|
|
|
args = { mode = "local", processId = "{0}" }
|
|
|
|
|
2021-04-07 07:40:20 +03:00
|
|
|
[[language]]
|
|
|
|
name = "javascript"
|
|
|
|
scope = "source.js"
|
|
|
|
injection-regex = "^(js|javascript)$"
|
2021-08-18 03:40:00 +03:00
|
|
|
file-types = ["js", "mjs"]
|
2021-04-07 07:40:20 +03:00
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "//"
|
2021-04-07 07:40:20 +03:00
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-26 21:36:06 +03:00
|
|
|
[language.debugger]
|
|
|
|
name = "node-debug2"
|
|
|
|
transport = "stdio"
|
|
|
|
# args consisting of cmd (node) and path to adapter should be added to user's configuration
|
|
|
|
quirks = { absolute-paths = true }
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "source"
|
|
|
|
request = "launch"
|
|
|
|
completion = [ { name = "main", completion = "filename", default = "index.js" } ]
|
|
|
|
args = { program = "{0}" }
|
|
|
|
|
2021-06-01 11:40:40 +03:00
|
|
|
[[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 = " " }
|
|
|
|
|
2021-09-06 08:33:19 +03:00
|
|
|
[[language]]
|
|
|
|
name = "tsx"
|
|
|
|
scope = "source.tsx"
|
|
|
|
injection-regex = "^(tsx)$" # |typescript
|
|
|
|
file-types = ["tsx"]
|
|
|
|
roots = []
|
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
|
|
|
language-server = { command = "typescript-language-server", args = ["--stdio"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 07:40:20 +03:00
|
|
|
[[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 07:51:09 +03:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "python"
|
|
|
|
scope = "source.python"
|
|
|
|
injection-regex = "python"
|
|
|
|
file-types = ["py"]
|
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "#"
|
2021-04-07 07:51:09 +03:00
|
|
|
|
|
|
|
language-server = { command = "pyls" }
|
|
|
|
# TODO: pyls needs utf-8 offsets
|
2021-06-21 15:32:52 +03:00
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-04-07 08:04:13 +03:00
|
|
|
|
2021-06-10 02:05:54 +03:00
|
|
|
[[language]]
|
|
|
|
name = "nix"
|
|
|
|
scope = "source.nix"
|
|
|
|
injection-regex = "nix"
|
|
|
|
file-types = ["nix"]
|
|
|
|
roots = []
|
2021-08-07 09:04:37 +03:00
|
|
|
comment-token = "#"
|
2021-06-10 02:05:54 +03:00
|
|
|
|
2021-09-07 17:23:05 +03:00
|
|
|
language-server = { command = "rnix-lsp" }
|
2021-06-10 02:05:54 +03:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 08:04:13 +03:00
|
|
|
[[language]]
|
|
|
|
name = "ruby"
|
|
|
|
scope = "source.ruby"
|
|
|
|
injection-regex = "ruby"
|
|
|
|
file-types = ["rb"]
|
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "#"
|
2021-04-07 08:04:13 +03: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 = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "#"
|
2021-04-07 08:04:13 +03: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-01 22:44:03 +03:00
|
|
|
|
2021-06-15 19:50:42 +03:00
|
|
|
[[language]]
|
|
|
|
name = "latex"
|
|
|
|
scope = "source.tex"
|
|
|
|
injection-regex = "tex"
|
|
|
|
file-types = ["tex"]
|
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "%"
|
2021-06-15 19:50:42 +03:00
|
|
|
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
|
|
|
|
2021-07-04 15:24:33 +03:00
|
|
|
[[language]]
|
|
|
|
name = "julia"
|
|
|
|
scope = "source.julia"
|
|
|
|
injection-regex = "julia"
|
|
|
|
file-types = ["jl"]
|
|
|
|
roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
comment-token = "#"
|
2021-08-31 10:52:27 +03:00
|
|
|
language-server = { command = "julia", args = [
|
|
|
|
"--startup-file=no",
|
|
|
|
"--history-file=no",
|
|
|
|
"--quiet",
|
|
|
|
"-e",
|
|
|
|
"""
|
|
|
|
using LanguageServer;
|
|
|
|
using Pkg;
|
|
|
|
import StaticLint;
|
|
|
|
env_path = dirname(Pkg.Types.Context().env.project_file);
|
|
|
|
|
|
|
|
server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, "");
|
|
|
|
server.runlinter = true;
|
|
|
|
run(server);
|
|
|
|
""",
|
|
|
|
] }
|
2021-07-04 15:24:33 +03:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-10 08:09:57 +03:00
|
|
|
[[language]]
|
|
|
|
name = "java"
|
|
|
|
scope = "source.java"
|
|
|
|
injection-regex = "java"
|
|
|
|
file-types = ["java"]
|
|
|
|
roots = []
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-08-16 05:03:57 +03:00
|
|
|
[[language]]
|
|
|
|
name = "ledger"
|
|
|
|
scope = "source.ledger"
|
|
|
|
injection-regex = "ledger"
|
|
|
|
file-types = ["ldg", "ledger", "journal"]
|
|
|
|
roots = []
|
|
|
|
comment-token = ";"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-09-01 19:08:08 +03:00
|
|
|
[[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 = " "}
|
|
|
|
|
2021-09-01 18:54:21 +03:00
|
|
|
[[language]]
|
|
|
|
name = "lua"
|
|
|
|
scope = "source.lua"
|
|
|
|
file-types = ["lua"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "--"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-17 05:04:55 +03:00
|
|
|
[[language]]
|
|
|
|
name = "svelte"
|
|
|
|
scope = "source.svelte"
|
|
|
|
injection-regex = "svelte"
|
|
|
|
file-types = ["svelte"]
|
|
|
|
roots = []
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
language-server = { command = "svelteserver", args = ["--stdio"] }
|
|
|
|
|
2021-09-01 18:16:16 +03:00
|
|
|
[[language]]
|
|
|
|
name = "yaml"
|
|
|
|
scope = "source.yaml"
|
|
|
|
file-types = ["yml", "yaml"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-07 04:17:25 +03:00
|
|
|
# [[language]]
|
|
|
|
# name = "haskell"
|
|
|
|
# scope = "source.haskell"
|
|
|
|
# injection-regex = "haskell"
|
|
|
|
# file-types = ["hs"]
|
|
|
|
# roots = []
|
2021-07-20 09:48:34 +03:00
|
|
|
# comment-token = "--"
|
2021-06-07 04:17:25 +03:00
|
|
|
#
|
|
|
|
# indent = { tab-width = 2, unit = " " }
|
2021-08-28 07:32:01 +03:00
|
|
|
|
|
|
|
[[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 = " " }
|