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-03-25 07:26:25 +01:00
|
|
|
|
|
|
|
language-server = { command = "rust-analyzer" }
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "toml"
|
|
|
|
scope = "source.toml"
|
|
|
|
injection-regex = "toml"
|
|
|
|
file-types = ["toml"]
|
|
|
|
roots = []
|
|
|
|
|
|
|
|
indent = { tab-width = 2, unit = " " }
|
2021-04-07 06:40:20 +02:00
|
|
|
|
2021-06-01 21:46:31 +02:00
|
|
|
[[language]]
|
|
|
|
name = "elixir"
|
|
|
|
scope = "source.elixir"
|
|
|
|
injection-regex = "elixir"
|
|
|
|
file-types = ["ex", "exs"]
|
|
|
|
roots = []
|
|
|
|
|
|
|
|
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-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"
|
|
|
|
file-types = ["cc", "cpp", "hpp", "h"]
|
|
|
|
roots = []
|
|
|
|
|
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-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-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)$"
|
|
|
|
file-types = ["js"]
|
|
|
|
roots = []
|
|
|
|
# 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"]
|
|
|
|
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"]
|
|
|
|
roots = []
|
|
|
|
|
|
|
|
language-server = { command = "pyls" }
|
|
|
|
# TODO: pyls needs utf-8 offsets
|
|
|
|
indent = { tab-width = 2, 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 = []
|
|
|
|
|
|
|
|
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 = []
|
|
|
|
|
|
|
|
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 = []
|
|
|
|
|
|
|
|
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 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 = []
|
|
|
|
|
|
|
|
indent = { tab-width = 4, unit = "\t" }
|
|
|
|
|
2021-06-07 03:17:25 +02:00
|
|
|
# [[language]]
|
|
|
|
# name = "haskell"
|
|
|
|
# scope = "source.haskell"
|
|
|
|
# injection-regex = "haskell"
|
|
|
|
# file-types = ["hs"]
|
|
|
|
# roots = []
|
|
|
|
#
|
|
|
|
# indent = { tab-width = 2, unit = " " }
|