2021-03-25 10:26:25 +04:00
|
|
|
[[language]]
|
|
|
|
name = "rust"
|
|
|
|
scope = "source.rust"
|
|
|
|
injection-regex = "rust"
|
|
|
|
file-types = ["rs"]
|
2021-12-31 12:06:54 +04:00
|
|
|
roots = ["Cargo.toml", "Cargo.lock"]
|
2021-06-12 05:20:37 +04:00
|
|
|
auto-format = true
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "//"
|
2021-03-25 10:26:25 +04:00
|
|
|
language-server = { command = "rust-analyzer" }
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-08-24 13:01:05 +04:00
|
|
|
[language.debugger]
|
2021-08-30 17:09:41 +04:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 14:49:31 +04:00
|
|
|
transport = "stdio"
|
2021-08-24 13:01:05 +04:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 15:55:42 +04:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-12-03 05:18:23 +04:00
|
|
|
args = { program = "{0}" }
|
2021-08-24 13:01:05 +04:00
|
|
|
|
2021-12-03 06:59:44 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary (terminal)"
|
|
|
|
request = "launch"
|
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
|
|
|
args = { program = "{0}", runInTerminal = true }
|
|
|
|
|
2021-08-24 21:27:54 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 14:16:57 +04:00
|
|
|
completion = [ "pid" ]
|
2021-12-03 05:18:23 +04:00
|
|
|
args = { pid = "{0}" }
|
2021-08-24 21:27:54 +04:00
|
|
|
|
2021-10-24 18:34:24 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "gdbserver attach"
|
|
|
|
request = "attach"
|
|
|
|
completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
|
2021-12-03 05:18:23 +04:00
|
|
|
args = { attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
|
2021-10-24 18:34:24 +04:00
|
|
|
|
2021-03-25 10:26:25 +04:00
|
|
|
[[language]]
|
|
|
|
name = "toml"
|
|
|
|
scope = "source.toml"
|
|
|
|
injection-regex = "toml"
|
|
|
|
file-types = ["toml"]
|
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "#"
|
2021-03-25 10:26:25 +04:00
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-04-07 08:40:20 +04:00
|
|
|
|
2021-08-18 14:54:47 +04:00
|
|
|
[[language]]
|
|
|
|
name = "protobuf"
|
|
|
|
scope = "source.proto"
|
|
|
|
injection-regex = "protobuf"
|
|
|
|
file-types = ["proto"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-01 23:46:31 +04:00
|
|
|
[[language]]
|
|
|
|
name = "elixir"
|
|
|
|
scope = "source.elixir"
|
|
|
|
injection-regex = "elixir"
|
|
|
|
file-types = ["ex", "exs"]
|
2021-11-09 05:57:08 +04:00
|
|
|
shebangs = ["elixir"]
|
2021-06-01 23:46:31 +04:00
|
|
|
roots = []
|
2021-08-07 10:04:37 +04:00
|
|
|
comment-token = "#"
|
2021-06-01 23:46:31 +04:00
|
|
|
|
2021-09-07 18:23:05 +04:00
|
|
|
language-server = { command = "elixir-ls" }
|
2021-06-01 23:46:31 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-12-21 06:02:53 +04:00
|
|
|
[[language]]
|
|
|
|
name = "fish"
|
|
|
|
scope = "source.fish"
|
|
|
|
injection-regex = "fish"
|
|
|
|
file-types = ["fish"]
|
|
|
|
shebangs = ["fish"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-11-08 05:01:55 +04:00
|
|
|
[[language]]
|
|
|
|
name = "mint"
|
|
|
|
scope = "source.mint"
|
|
|
|
injection-regex = "mint"
|
|
|
|
file-types = ["mint"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = []
|
2021-11-08 05:01:55 +04:00
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
language-server = { command = "mint", args = ["ls"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 09:04:13 +04: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 10:48:34 +04:00
|
|
|
comment-token = "//"
|
2021-04-07 09:04:13 +04:00
|
|
|
|
2021-06-03 17:07:50 +04:00
|
|
|
language-server = { command = "clangd" }
|
2021-04-07 09:04:13 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-24 13:01:05 +04:00
|
|
|
[language.debugger]
|
2021-08-30 17:09:41 +04:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 14:49:31 +04:00
|
|
|
transport = "stdio"
|
2021-08-24 13:01:05 +04:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 15:55:42 +04:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 21:32:38 +04:00
|
|
|
args = { console = "internalConsole", program = "{0}" }
|
2021-08-24 13:01:05 +04:00
|
|
|
|
2021-08-24 21:27:54 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 14:16:57 +04:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 21:27:54 +04:00
|
|
|
args = { console = "internalConsole", pid = "{0}" }
|
|
|
|
|
2021-10-24 18:34:24 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "gdbserver attach"
|
|
|
|
request = "attach"
|
|
|
|
completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
|
|
|
|
args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
|
|
|
|
|
2021-04-07 08:40:20 +04:00
|
|
|
[[language]]
|
|
|
|
name = "cpp"
|
|
|
|
scope = "source.cpp"
|
|
|
|
injection-regex = "cpp"
|
2021-08-18 20:39:08 +04:00
|
|
|
file-types = ["cc", "hh", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino"]
|
2021-04-07 08:40:20 +04:00
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "//"
|
2021-04-07 08:40:20 +04:00
|
|
|
|
2021-06-03 17:07:50 +04:00
|
|
|
language-server = { command = "clangd" }
|
2021-04-07 08:40:20 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-24 13:01:05 +04:00
|
|
|
[language.debugger]
|
2021-08-30 17:09:41 +04:00
|
|
|
name = "lldb-vscode"
|
2021-09-06 14:49:31 +04:00
|
|
|
transport = "stdio"
|
2021-08-24 13:01:05 +04:00
|
|
|
command = "lldb-vscode"
|
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 15:55:42 +04:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 21:32:38 +04:00
|
|
|
args = { console = "internalConsole", program = "{0}" }
|
2021-08-24 13:01:05 +04:00
|
|
|
|
2021-08-24 21:27:54 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 14:16:57 +04:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 21:27:54 +04:00
|
|
|
args = { console = "internalConsole", pid = "{0}" }
|
|
|
|
|
2021-10-24 18:34:24 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "gdbserver attach"
|
|
|
|
request = "attach"
|
|
|
|
completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
|
|
|
|
args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
|
|
|
|
|
2021-10-17 08:45:09 +04:00
|
|
|
[[language]]
|
|
|
|
name = "c-sharp"
|
|
|
|
scope = "source.csharp"
|
|
|
|
injection-regex = "c-?sharp"
|
|
|
|
file-types = ["cs"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
|
|
|
|
2021-04-07 09:04:13 +04:00
|
|
|
[[language]]
|
|
|
|
name = "go"
|
|
|
|
scope = "source.go"
|
|
|
|
injection-regex = "go"
|
|
|
|
file-types = ["go"]
|
|
|
|
roots = ["Gopkg.toml", "go.mod"]
|
2021-06-12 05:20:37 +04:00
|
|
|
auto-format = true
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "//"
|
2021-04-07 09:04:13 +04:00
|
|
|
|
|
|
|
language-server = { command = "gopls" }
|
2021-04-15 12:34:38 +04:00
|
|
|
# TODO: gopls needs utf-8 offsets?
|
2021-04-23 13:55:34 +04:00
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
2021-04-07 09:04:13 +04:00
|
|
|
|
2021-08-24 12:56:18 +04: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 15:55:42 +04:00
|
|
|
completion = [ { name = "entrypoint", completion = "filename", default = "." } ]
|
2021-08-24 21:32:38 +04:00
|
|
|
args = { mode = "debug", program = "{0}" }
|
2021-08-24 12:56:18 +04:00
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "binary"
|
|
|
|
request = "launch"
|
2021-08-29 15:55:42 +04:00
|
|
|
completion = [ { name = "binary", completion = "filename" } ]
|
2021-08-24 21:32:38 +04:00
|
|
|
args = { mode = "exec", program = "{0}" }
|
2021-08-24 12:56:18 +04:00
|
|
|
|
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "test"
|
|
|
|
request = "launch"
|
2021-08-29 15:51:47 +04:00
|
|
|
completion = [ { name = "tests", completion = "directory", default = "." } ]
|
|
|
|
args = { mode = "test", program = "{0}" }
|
2021-08-23 17:56:41 +04:00
|
|
|
|
2021-08-24 21:27:54 +04:00
|
|
|
[[language.debugger.templates]]
|
|
|
|
name = "attach"
|
|
|
|
request = "attach"
|
2021-08-29 14:16:57 +04:00
|
|
|
completion = [ "pid" ]
|
2021-08-24 21:27:54 +04:00
|
|
|
args = { mode = "local", processId = "{0}" }
|
|
|
|
|
2021-04-07 08:40:20 +04:00
|
|
|
[[language]]
|
|
|
|
name = "javascript"
|
|
|
|
scope = "source.js"
|
|
|
|
injection-regex = "^(js|javascript)$"
|
2021-08-18 04:40:00 +04:00
|
|
|
file-types = ["js", "mjs"]
|
2021-11-09 05:57:08 +04:00
|
|
|
shebangs = ["node"]
|
2021-04-07 08:40:20 +04:00
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "//"
|
2021-04-07 08:40:20 +04:00
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
2022-01-15 10:23:06 +04:00
|
|
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascript" }
|
2021-04-07 08:40:20 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-26 22:36:06 +04: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 12:40:40 +04:00
|
|
|
[[language]]
|
|
|
|
name = "typescript"
|
|
|
|
scope = "source.ts"
|
|
|
|
injection-regex = "^(ts|typescript)$"
|
|
|
|
file-types = ["ts"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = []
|
2021-06-01 12:40:40 +04:00
|
|
|
roots = []
|
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
2022-01-15 10:23:06 +04:00
|
|
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescript"}
|
2021-06-01 12:40:40 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-06 09:33:19 +04:00
|
|
|
[[language]]
|
|
|
|
name = "tsx"
|
|
|
|
scope = "source.tsx"
|
|
|
|
injection-regex = "^(tsx)$" # |typescript
|
|
|
|
file-types = ["tsx"]
|
|
|
|
roots = []
|
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
2022-01-15 10:23:06 +04:00
|
|
|
language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescriptreact" }
|
2021-09-06 09:33:19 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 08:40:20 +04:00
|
|
|
[[language]]
|
|
|
|
name = "css"
|
|
|
|
scope = "source.css"
|
|
|
|
injection-regex = "css"
|
2022-01-14 14:55:44 +04:00
|
|
|
file-types = ["css", "scss"]
|
2021-04-07 08:40:20 +04:00
|
|
|
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 08:51:09 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "python"
|
|
|
|
scope = "source.python"
|
|
|
|
injection-regex = "python"
|
|
|
|
file-types = ["py"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["python"]
|
2021-04-07 08:51:09 +04:00
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "#"
|
2021-04-07 08:51:09 +04:00
|
|
|
|
2021-10-13 06:24:37 +04:00
|
|
|
language-server = { command = "pylsp" }
|
2021-04-07 08:51:09 +04:00
|
|
|
# TODO: pyls needs utf-8 offsets
|
2021-06-21 16:32:52 +04:00
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-04-07 09:04:13 +04:00
|
|
|
|
2021-06-10 03:05:54 +04:00
|
|
|
[[language]]
|
|
|
|
name = "nix"
|
|
|
|
scope = "source.nix"
|
|
|
|
injection-regex = "nix"
|
|
|
|
file-types = ["nix"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = []
|
2021-06-10 03:05:54 +04:00
|
|
|
roots = []
|
2021-08-07 10:04:37 +04:00
|
|
|
comment-token = "#"
|
2021-06-10 03:05:54 +04:00
|
|
|
|
2021-09-07 18:23:05 +04:00
|
|
|
language-server = { command = "rnix-lsp" }
|
2021-06-10 03:05:54 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-04-07 09:04:13 +04:00
|
|
|
[[language]]
|
|
|
|
name = "ruby"
|
|
|
|
scope = "source.ruby"
|
|
|
|
injection-regex = "ruby"
|
|
|
|
file-types = ["rb"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["ruby"]
|
2021-04-07 09:04:13 +04:00
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "#"
|
2021-04-07 09:04:13 +04:00
|
|
|
|
|
|
|
language-server = { command = "solargraph", args = ["stdio"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "bash"
|
|
|
|
scope = "source.bash"
|
|
|
|
injection-regex = "bash"
|
2022-01-24 19:25:19 +04:00
|
|
|
file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["sh", "bash", "dash"]
|
2021-04-07 09:04:13 +04:00
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "#"
|
2021-04-07 09:04:13 +04: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"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["php"]
|
2021-04-07 09:04:13 +04:00
|
|
|
roots = []
|
|
|
|
|
2021-11-01 18:37:14 +04:00
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-06-01 23:44:03 +04:00
|
|
|
|
2022-02-01 07:35:07 +04:00
|
|
|
[[language]]
|
|
|
|
name = "twig"
|
|
|
|
scope = "source.twig"
|
|
|
|
injection-regex = "twig"
|
|
|
|
file-types = ["twig"]
|
|
|
|
roots = []
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-15 20:50:42 +04:00
|
|
|
[[language]]
|
|
|
|
name = "latex"
|
|
|
|
scope = "source.tex"
|
|
|
|
injection-regex = "tex"
|
|
|
|
file-types = ["tex"]
|
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "%"
|
2021-06-15 20:50:42 +04:00
|
|
|
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
|
|
|
|
2022-01-17 18:05:17 +04:00
|
|
|
[[language]]
|
|
|
|
name = "lean"
|
|
|
|
scope = "source.lean"
|
|
|
|
injection-regex = "lean"
|
|
|
|
file-types = ["lean"]
|
|
|
|
roots = [ "lakefile.lean" ]
|
|
|
|
comment-token = "--"
|
|
|
|
language-server = { command = "lean", args = [ "--server" ] }
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-07-04 16:24:33 +04:00
|
|
|
[[language]]
|
|
|
|
name = "julia"
|
|
|
|
scope = "source.julia"
|
|
|
|
injection-regex = "julia"
|
|
|
|
file-types = ["jl"]
|
|
|
|
roots = []
|
2021-07-20 10:48:34 +04:00
|
|
|
comment-token = "#"
|
2021-08-31 11:52:27 +04: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 16:24:33 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-08-10 09:09:57 +04:00
|
|
|
[[language]]
|
|
|
|
name = "java"
|
|
|
|
scope = "source.java"
|
|
|
|
injection-regex = "java"
|
|
|
|
file-types = ["java"]
|
2022-01-14 10:37:59 +04:00
|
|
|
roots = ["pom.xml"]
|
2021-08-10 09:09:57 +04:00
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-08-16 06:03:57 +04: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 20:08:08 +04:00
|
|
|
[[language]]
|
|
|
|
name = "ocaml"
|
|
|
|
scope = "source.ocaml"
|
|
|
|
injection-regex = "ocaml"
|
|
|
|
file-types = ["ml"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = []
|
2021-09-01 20:08:08 +04:00
|
|
|
roots = []
|
|
|
|
comment-token = "(**)"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "ocaml-interface"
|
|
|
|
scope = "source.ocaml.interface"
|
|
|
|
file-types = ["mli"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = []
|
2021-09-01 20:08:08 +04:00
|
|
|
roots = []
|
|
|
|
comment-token = "(**)"
|
|
|
|
indent = { tab-width = 2, unit = " "}
|
|
|
|
|
2021-09-01 19:54:21 +04:00
|
|
|
[[language]]
|
|
|
|
name = "lua"
|
|
|
|
scope = "source.lua"
|
|
|
|
file-types = ["lua"]
|
2021-11-09 05:57:08 +04:00
|
|
|
shebangs = ["lua"]
|
2021-09-01 19:54:21 +04:00
|
|
|
roots = []
|
|
|
|
comment-token = "--"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-17 06:04:55 +04: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-10-10 17:09:17 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "vue"
|
|
|
|
scope = "source.vue"
|
|
|
|
injection-regex = "vue"
|
|
|
|
file-types = ["vue"]
|
|
|
|
roots = []
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-01 19:16:16 +04:00
|
|
|
[[language]]
|
|
|
|
name = "yaml"
|
|
|
|
scope = "source.yaml"
|
|
|
|
file-types = ["yml", "yaml"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2022-01-04 05:52:34 +04:00
|
|
|
injection-regex = "yml|yaml"
|
2021-09-01 19:16:16 +04:00
|
|
|
|
2022-01-16 05:11:31 +04:00
|
|
|
[[language]]
|
|
|
|
name = "haskell"
|
|
|
|
scope = "source.haskell"
|
|
|
|
injection-regex = "haskell"
|
|
|
|
file-types = ["hs"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "--"
|
2022-01-23 11:22:31 +04:00
|
|
|
language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
|
2022-01-16 05:11:31 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-08-28 08:32:01 +04: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 = " " }
|
2021-10-08 06:05:30 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "prolog"
|
|
|
|
scope = "source.prolog"
|
|
|
|
roots = []
|
|
|
|
file-types = ["pl", "prolog"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["swipl"]
|
2021-10-08 06:05:30 +04:00
|
|
|
comment-token = "%"
|
|
|
|
|
|
|
|
language-server = { command = "swipl", args = [
|
|
|
|
"-g", "use_module(library(lsp_server))",
|
|
|
|
"-g", "lsp_server:main",
|
|
|
|
"-t", "halt", "--", "stdio"] }
|
2021-10-16 12:58:04 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "tsq"
|
|
|
|
scope = "source.tsq"
|
|
|
|
file-types = ["scm"]
|
|
|
|
roots = []
|
|
|
|
comment-token = ";"
|
2022-01-16 05:26:09 +04:00
|
|
|
injection-regex = "tsq"
|
2021-10-16 12:58:04 +04:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-10-23 03:57:21 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "cmake"
|
|
|
|
scope = "source.cmake"
|
|
|
|
file-types = ["cmake", "CMakeLists.txt"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-10-30 10:07:45 +04:00
|
|
|
language-server = { command = "cmake-language-server" }
|
2022-01-04 05:52:34 +04:00
|
|
|
injection-regex = "cmake"
|
2021-11-08 05:05:12 +04:00
|
|
|
|
2022-01-04 05:17:06 +04:00
|
|
|
[[language]]
|
|
|
|
name = "make"
|
|
|
|
scope = "source.make"
|
|
|
|
file-types = ["Makefile", "makefile", "justfile", ".justfile"]
|
|
|
|
roots =[]
|
|
|
|
comment-token = "#"
|
2022-02-14 13:03:18 +04:00
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
2021-11-08 05:05:12 +04:00
|
|
|
|
2021-11-08 19:48:00 +04:00
|
|
|
[[language]]
|
|
|
|
name = "glsl"
|
|
|
|
scope = "source.glsl"
|
|
|
|
file-types = ["glsl", "vert", "tesc", "tese", "geom", "frag", "comp" ]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2022-01-04 05:52:34 +04:00
|
|
|
injection-regex = "glsl"
|
2021-11-08 19:48:00 +04:00
|
|
|
|
2021-11-08 05:05:12 +04:00
|
|
|
[[language]]
|
|
|
|
name = "perl"
|
|
|
|
scope = "source.perl"
|
|
|
|
file-types = ["pl", "pm"]
|
2021-11-08 19:19:44 +04:00
|
|
|
shebangs = ["perl"]
|
2021-11-08 05:05:12 +04:00
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-11-24 17:47:12 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "racket"
|
|
|
|
scope = "source.rkt"
|
|
|
|
roots = []
|
|
|
|
file-types = ["rkt"]
|
|
|
|
shebangs = ["racket"]
|
|
|
|
comment-token = ";"
|
|
|
|
language-server = { command = "racket", args = ["-l", "racket-langserver"] }
|
2021-11-27 06:19:40 +04:00
|
|
|
|
2021-12-19 18:56:56 +04:00
|
|
|
[[language]]
|
|
|
|
name = "comment"
|
|
|
|
scope = "scope.comment"
|
|
|
|
roots = []
|
|
|
|
file-types = []
|
|
|
|
injection-regex = "comment"
|
|
|
|
|
2021-11-27 06:19:40 +04:00
|
|
|
[[language]]
|
|
|
|
name = "wgsl"
|
|
|
|
scope = "source.wgsl"
|
|
|
|
file-types = ["wgsl"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-11-29 05:38:17 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "llvm"
|
|
|
|
scope = "source.llvm"
|
|
|
|
roots = []
|
|
|
|
file-types = ["ll"]
|
|
|
|
comment-token = ";"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2022-01-04 05:52:34 +04:00
|
|
|
injection-regex = "llvm"
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "llvm-mir"
|
|
|
|
scope = "source.llvm_mir"
|
|
|
|
roots = []
|
|
|
|
file-types = []
|
|
|
|
comment-token = ";"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
injection-regex = "mir"
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "llvm-mir-yaml"
|
|
|
|
tree-sitter-library = "yaml"
|
|
|
|
scope = "source.yaml"
|
|
|
|
roots = []
|
|
|
|
file-types = ["mir"]
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-12-14 19:45:38 +04:00
|
|
|
|
2022-01-03 05:57:55 +04:00
|
|
|
[[language]]
|
|
|
|
name = "tablegen"
|
|
|
|
scope = "source.tablegen"
|
|
|
|
roots = []
|
|
|
|
file-types = ["td"]
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
injection-regex = "tablegen"
|
|
|
|
|
2021-12-14 19:45:38 +04:00
|
|
|
[[language]]
|
|
|
|
name = "markdown"
|
|
|
|
scope = "source.md"
|
|
|
|
injection-regex = "md|markdown"
|
|
|
|
file-types = ["md"]
|
|
|
|
roots = []
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-12-18 08:40:34 +04:00
|
|
|
|
2021-12-18 08:41:32 +04:00
|
|
|
[[language]]
|
|
|
|
name = "dart"
|
|
|
|
scope = "source.dart"
|
|
|
|
file-types = ["dart"]
|
|
|
|
roots = ["pubspec.yaml"]
|
|
|
|
auto-format = true
|
|
|
|
comment-token = "//"
|
|
|
|
language-server = { command = "dart", args = ["language-server", "--client-id=helix"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-12-18 08:40:34 +04:00
|
|
|
[[language]]
|
|
|
|
name = "scala"
|
|
|
|
scope = "source.scala"
|
2022-01-14 10:37:59 +04:00
|
|
|
roots = ["build.sbt", "pom.xml"]
|
2021-12-18 08:40:34 +04:00
|
|
|
file-types = ["scala", "sbt"]
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-12-19 18:56:56 +04:00
|
|
|
language-server = { command = "metals" }
|
2021-12-21 13:22:15 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "dockerfile"
|
|
|
|
scope = "source.dockerfile"
|
|
|
|
injection-regex = "docker|dockerfile"
|
|
|
|
roots = ["Dockerfile"]
|
2021-12-22 04:45:02 +04:00
|
|
|
file-types = ["Dockerfile", "dockerfile"]
|
2021-12-21 13:22:15 +04:00
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
language-server = { command = "docker-langserver", args = ["--stdio"] }
|
2021-12-24 22:44:45 +04:00
|
|
|
|
|
|
|
[[language]]
|
2021-12-25 02:49:27 +04:00
|
|
|
name = "git-commit"
|
2021-12-24 22:44:45 +04:00
|
|
|
scope = "git.commitmsg"
|
|
|
|
roots = []
|
|
|
|
file-types = ["COMMIT_EDITMSG"]
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-12-29 19:31:23 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "git-diff"
|
|
|
|
scope = "source.diff"
|
|
|
|
roots = []
|
|
|
|
file-types = ["diff"]
|
|
|
|
injection-regex = "diff"
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-12-31 02:58:47 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "git-rebase"
|
|
|
|
scope = "source.gitrebase"
|
|
|
|
roots = []
|
|
|
|
file-types = ["git-rebase-todo"]
|
|
|
|
injection-regex = "git-rebase"
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2022-01-06 19:00:00 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "regex"
|
|
|
|
scope = "source.regex"
|
|
|
|
injection-regex = "regex"
|
|
|
|
file-types = ["regex"]
|
|
|
|
roots = []
|
2022-01-09 18:10:20 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "git-config"
|
|
|
|
scope = "source.gitconfig"
|
|
|
|
roots = []
|
|
|
|
# TODO: allow specifying file-types as a regex so we can read directory names (e.g. `.git/config`)
|
|
|
|
file-types = [".gitmodules", ".gitconfig"]
|
|
|
|
injection-regex = "git-config"
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
2022-01-20 19:47:23 +04:00
|
|
|
|
2022-01-21 18:16:40 +04:00
|
|
|
[[language]]
|
|
|
|
name = "graphql"
|
|
|
|
scope = "source.graphql"
|
|
|
|
injection-regex = "graphql"
|
|
|
|
file-types = ["gql", "graphql"]
|
|
|
|
roots = []
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2022-01-20 19:47:23 +04:00
|
|
|
[[language]]
|
|
|
|
name = "elm"
|
|
|
|
scope = "source.elm"
|
|
|
|
injection-regex = "elm"
|
|
|
|
file-types = ["elm"]
|
|
|
|
roots = ["elm.json"]
|
|
|
|
auto-format = true
|
|
|
|
comment-token = "--"
|
|
|
|
language-server = { command = "elm-language-server" }
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2022-01-25 10:50:34 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "iex"
|
|
|
|
scope = "source.iex"
|
|
|
|
injection-regex = "iex"
|
|
|
|
file-types = ["iex"]
|
|
|
|
roots = []
|
2022-02-06 09:24:01 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "rescript"
|
|
|
|
scope = "source.rescript"
|
|
|
|
injection-regex = "rescript"
|
|
|
|
file-types = ["res"]
|
|
|
|
roots = ["bsconfig.json"]
|
|
|
|
auto-format = true
|
|
|
|
comment-token = "//"
|
|
|
|
language-server = { command = "rescript-language-server", args = ["--stdio"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2022-02-15 05:14:02 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "erlang"
|
|
|
|
scope = "source.erlang"
|
|
|
|
injection-regex = "^erl$"
|
|
|
|
file-types = ["erl", "hrl", "app", "rebar.config"]
|
|
|
|
roots = ["rebar.config"]
|
|
|
|
comment-token = "%%"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2022-02-23 18:25:44 +04:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "kotlin"
|
|
|
|
scope = "source.kotlin"
|
|
|
|
file-types = ["kt", "kts"]
|
|
|
|
roots = ["settings.gradle", "settings.gradle.kts"]
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
language-server = { command = "kotlin-language-server" }
|