2021-03-25 07:26:25 +01:00
|
|
|
[[language]]
|
|
|
|
name = "rust"
|
|
|
|
scope = "source.rust"
|
|
|
|
injection-regex = "rust"
|
|
|
|
file-types = ["rs"]
|
|
|
|
roots = []
|
2021-06-12 03:20:37 +02:00
|
|
|
auto-format = true
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "//"
|
2021-03-25 07:26:25 +01:00
|
|
|
language-server = { command = "rust-analyzer" }
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-10-08 04:14:12 +02:00
|
|
|
[language.config]
|
|
|
|
cargo = { loadOutDirsFromCheck = true }
|
|
|
|
procMacro = { enable = false }
|
2021-03-25 07:26:25 +01:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "toml"
|
|
|
|
scope = "source.toml"
|
|
|
|
injection-regex = "toml"
|
|
|
|
file-types = ["toml"]
|
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "#"
|
2021-03-25 07:26:25 +01:00
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-04-07 06:40:20 +02:00
|
|
|
|
2021-08-18 12:54:47 +02:00
|
|
|
[[language]]
|
|
|
|
name = "protobuf"
|
|
|
|
scope = "source.proto"
|
|
|
|
injection-regex = "protobuf"
|
|
|
|
file-types = ["proto"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-01 21:46:31 +02:00
|
|
|
[[language]]
|
|
|
|
name = "elixir"
|
|
|
|
scope = "source.elixir"
|
|
|
|
injection-regex = "elixir"
|
|
|
|
file-types = ["ex", "exs"]
|
2021-11-09 02:57:08 +01:00
|
|
|
shebangs = ["elixir"]
|
2021-06-01 21:46:31 +02:00
|
|
|
roots = []
|
2021-08-07 08:04:37 +02:00
|
|
|
comment-token = "#"
|
2021-06-01 21:46:31 +02:00
|
|
|
|
2021-09-07 16:23:05 +02:00
|
|
|
language-server = { command = "elixir-ls" }
|
2021-06-01 21:46:31 +02:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-11-08 02:01:55 +01:00
|
|
|
[[language]]
|
|
|
|
name = "mint"
|
|
|
|
scope = "source.mint"
|
|
|
|
injection-regex = "mint"
|
|
|
|
file-types = ["mint"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = []
|
2021-11-08 02:01:55 +01:00
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
|
|
|
|
language-server = { command = "mint", args = ["ls"] }
|
|
|
|
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 = []
|
2021-07-20 08:48:34 +02:00
|
|
|
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 = " " }
|
|
|
|
|
2021-04-07 06:40:20 +02:00
|
|
|
[[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"]
|
2021-04-07 06:40:20 +02:00
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "//"
|
2021-04-07 06:40:20 +02:00
|
|
|
|
2021-06-03 15:07:50 +02:00
|
|
|
language-server = { command = "clangd" }
|
2021-04-07 06:40:20 +02:00
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-10-17 06:45:09 +02: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 07:04:13 +02:00
|
|
|
[[language]]
|
|
|
|
name = "go"
|
|
|
|
scope = "source.go"
|
|
|
|
injection-regex = "go"
|
|
|
|
file-types = ["go"]
|
|
|
|
roots = ["Gopkg.toml", "go.mod"]
|
2021-06-12 03:20:37 +02:00
|
|
|
auto-format = true
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "//"
|
2021-04-07 07:04:13 +02:00
|
|
|
|
|
|
|
language-server = { command = "gopls" }
|
2021-04-15 10:34:38 +02:00
|
|
|
# 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-04-07 06:40:20 +02:00
|
|
|
[[language]]
|
|
|
|
name = "javascript"
|
|
|
|
scope = "source.js"
|
|
|
|
injection-regex = "^(js|javascript)$"
|
2021-08-18 02:40:00 +02:00
|
|
|
file-types = ["js", "mjs"]
|
2021-11-09 02:57:08 +01:00
|
|
|
shebangs = ["node"]
|
2021-04-07 06:40:20 +02:00
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "//"
|
2021-04-07 06:40:20 +02:00
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-01 10:40:40 +02:00
|
|
|
[[language]]
|
|
|
|
name = "typescript"
|
|
|
|
scope = "source.ts"
|
|
|
|
injection-regex = "^(ts|typescript)$"
|
|
|
|
file-types = ["ts"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = []
|
2021-06-01 10:40:40 +02:00
|
|
|
roots = []
|
|
|
|
# TODO: highlights-jsx, highlights-params
|
|
|
|
|
|
|
|
language-server = { command = "typescript-language-server", args = ["--stdio"] }
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-06 07:33:19 +02: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 06:40:20 +02: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 06:51:09 +02:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "python"
|
|
|
|
scope = "source.python"
|
|
|
|
injection-regex = "python"
|
|
|
|
file-types = ["py"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["python"]
|
2021-04-07 06:51:09 +02:00
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "#"
|
2021-04-07 06:51:09 +02:00
|
|
|
|
2021-10-13 04:24:37 +02:00
|
|
|
language-server = { command = "pylsp" }
|
2021-04-07 06:51:09 +02:00
|
|
|
# TODO: pyls needs utf-8 offsets
|
2021-06-21 14:32:52 +02:00
|
|
|
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"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = []
|
2021-06-10 01:05:54 +02:00
|
|
|
roots = []
|
2021-08-07 08:04:37 +02:00
|
|
|
comment-token = "#"
|
2021-06-10 01:05:54 +02:00
|
|
|
|
2021-09-07 16:23:05 +02:00
|
|
|
language-server = { command = "rnix-lsp" }
|
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"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["ruby"]
|
2021-04-07 07:04:13 +02:00
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
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"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["sh", "bash", "dash"]
|
2021-04-07 07:04:13 +02:00
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
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"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["php"]
|
2021-04-07 07:04:13 +02:00
|
|
|
roots = []
|
|
|
|
|
2021-11-01 15:37:14 +01:00
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-06-01 21:44:03 +02:00
|
|
|
|
2021-06-15 18:50:42 +02:00
|
|
|
[[language]]
|
|
|
|
name = "latex"
|
|
|
|
scope = "source.tex"
|
|
|
|
injection-regex = "tex"
|
|
|
|
file-types = ["tex"]
|
|
|
|
roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
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 = []
|
2021-07-20 08:48:34 +02:00
|
|
|
comment-token = "#"
|
2021-08-31 09:52:27 +02: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 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 = " " }
|
|
|
|
|
2021-08-16 04:03:57 +02: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 18:08:08 +02:00
|
|
|
[[language]]
|
|
|
|
name = "ocaml"
|
|
|
|
scope = "source.ocaml"
|
|
|
|
injection-regex = "ocaml"
|
|
|
|
file-types = ["ml"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = []
|
2021-09-01 18:08:08 +02:00
|
|
|
roots = []
|
|
|
|
comment-token = "(**)"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "ocaml-interface"
|
|
|
|
scope = "source.ocaml.interface"
|
|
|
|
file-types = ["mli"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = []
|
2021-09-01 18:08:08 +02:00
|
|
|
roots = []
|
|
|
|
comment-token = "(**)"
|
|
|
|
indent = { tab-width = 2, unit = " "}
|
|
|
|
|
2021-09-01 17:54:21 +02:00
|
|
|
[[language]]
|
|
|
|
name = "lua"
|
|
|
|
scope = "source.lua"
|
|
|
|
file-types = ["lua"]
|
2021-11-09 02:57:08 +01:00
|
|
|
shebangs = ["lua"]
|
2021-09-01 17:54:21 +02:00
|
|
|
roots = []
|
|
|
|
comment-token = "--"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-17 04:04:55 +02: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 15:09:17 +02:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "vue"
|
|
|
|
scope = "source.vue"
|
|
|
|
injection-regex = "vue"
|
|
|
|
file-types = ["vue"]
|
|
|
|
roots = []
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-09-01 17:16:16 +02:00
|
|
|
[[language]]
|
|
|
|
name = "yaml"
|
|
|
|
scope = "source.yaml"
|
|
|
|
file-types = ["yml", "yaml"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
|
|
|
|
2021-06-07 03:17:25 +02:00
|
|
|
# [[language]]
|
|
|
|
# name = "haskell"
|
|
|
|
# scope = "source.haskell"
|
|
|
|
# injection-regex = "haskell"
|
|
|
|
# file-types = ["hs"]
|
|
|
|
# roots = []
|
2021-07-20 08:48:34 +02:00
|
|
|
# comment-token = "--"
|
2021-06-07 03:17:25 +02:00
|
|
|
#
|
|
|
|
# indent = { tab-width = 2, unit = " " }
|
2021-08-28 06:32:01 +02: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 04:05:30 +02:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "prolog"
|
|
|
|
scope = "source.prolog"
|
|
|
|
roots = []
|
|
|
|
file-types = ["pl", "prolog"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["swipl"]
|
2021-10-08 04:05:30 +02:00
|
|
|
comment-token = "%"
|
|
|
|
|
|
|
|
language-server = { command = "swipl", args = [
|
|
|
|
"-g", "use_module(library(lsp_server))",
|
|
|
|
"-g", "lsp_server:main",
|
|
|
|
"-t", "halt", "--", "stdio"] }
|
2021-10-16 10:58:04 +02:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "tsq"
|
|
|
|
scope = "source.tsq"
|
|
|
|
file-types = ["scm"]
|
|
|
|
roots = []
|
|
|
|
comment-token = ";"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-10-23 01:57:21 +02:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "cmake"
|
|
|
|
scope = "source.cmake"
|
|
|
|
file-types = ["cmake", "CMakeLists.txt"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-10-30 08:07:45 +02:00
|
|
|
language-server = { command = "cmake-language-server" }
|
2021-11-08 02:05:12 +01:00
|
|
|
|
2021-11-08 16:48:00 +01:00
|
|
|
[[language]]
|
|
|
|
name = "glsl"
|
|
|
|
scope = "source.glsl"
|
|
|
|
file-types = ["glsl", "vert", "tesc", "tese", "geom", "frag", "comp" ]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
2021-11-08 02:05:12 +01:00
|
|
|
[[language]]
|
|
|
|
name = "perl"
|
|
|
|
scope = "source.perl"
|
|
|
|
file-types = ["pl", "pm"]
|
2021-11-08 16:19:44 +01:00
|
|
|
shebangs = ["perl"]
|
2021-11-08 02:05:12 +01:00
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-11-24 14:47:12 +01: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 03:19:40 +01:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "wgsl"
|
|
|
|
scope = "source.wgsl"
|
|
|
|
file-types = ["wgsl"]
|
|
|
|
roots = []
|
|
|
|
comment-token = "//"
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
2021-11-29 02:38:17 +01:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "llvm"
|
|
|
|
scope = "source.llvm"
|
|
|
|
roots = []
|
|
|
|
file-types = ["ll"]
|
|
|
|
comment-token = ";"
|
|
|
|
indent = { tab-width = 2, unit = " " }
|