mirror of
https://github.com/xHyroM/zed-discord-presence.git
synced 2024-11-10 00:18:06 +01:00
Compare commits
2 commits
0997c7d2eb
...
3c74a0fe4f
Author | SHA1 | Date | |
---|---|---|---|
3c74a0fe4f | |||
1a318f86e2 |
2 changed files with 170 additions and 139 deletions
|
@ -10,14 +10,21 @@ repository = "https://github.com/xhyrom/zed-discord-presence"
|
||||||
name = "Discord Presence LSP"
|
name = "Discord Presence LSP"
|
||||||
# Generated by scripts/get_languages.sh
|
# Generated by scripts/get_languages.sh
|
||||||
languages = [
|
languages = [
|
||||||
|
"Ada",
|
||||||
|
"Aiken",
|
||||||
|
"Amber",
|
||||||
"AsciiDoc",
|
"AsciiDoc",
|
||||||
"Assembly",
|
"Assembly",
|
||||||
|
"AWK",
|
||||||
|
"Python",
|
||||||
"Shell Script",
|
"Shell Script",
|
||||||
"Beancount",
|
"Beancount",
|
||||||
"Bend",
|
"Bend",
|
||||||
"Blade",
|
"Blade",
|
||||||
|
"Blueprint",
|
||||||
"BQN",
|
"BQN",
|
||||||
"Brainfuck",
|
"Brainfuck",
|
||||||
|
"C3",
|
||||||
"Cadence",
|
"Cadence",
|
||||||
"Cairo",
|
"Cairo",
|
||||||
"Cap'n Proto",
|
"Cap'n Proto",
|
||||||
|
@ -26,13 +33,18 @@ languages = [
|
||||||
"CSV",
|
"CSV",
|
||||||
"Gherkin",
|
"Gherkin",
|
||||||
"CUE",
|
"CUE",
|
||||||
|
"Curry",
|
||||||
"D",
|
"D",
|
||||||
"DBML",
|
"DBML",
|
||||||
|
"Dockerfile",
|
||||||
"Earthfile",
|
"Earthfile",
|
||||||
|
"EJS",
|
||||||
"Elisp",
|
"Elisp",
|
||||||
"Handlebars",
|
"Handlebars",
|
||||||
|
"env",
|
||||||
"Exograph",
|
"Exograph",
|
||||||
"Fish",
|
"Fish",
|
||||||
|
"Fortran",
|
||||||
"FSharp",
|
"FSharp",
|
||||||
"GDScript",
|
"GDScript",
|
||||||
"Godot Resource",
|
"Godot Resource",
|
||||||
|
@ -43,19 +55,24 @@ languages = [
|
||||||
"Git Config",
|
"Git Config",
|
||||||
"Git Ignore",
|
"Git Ignore",
|
||||||
"Git Rebase",
|
"Git Rebase",
|
||||||
|
"Go Sum",
|
||||||
"GraphQL",
|
"GraphQL",
|
||||||
"Groovy",
|
"Groovy",
|
||||||
"GROQ",
|
"GROQ",
|
||||||
|
"http",
|
||||||
"ini",
|
"ini",
|
||||||
|
"Java",
|
||||||
"Jsonnet",
|
"Jsonnet",
|
||||||
"Julia",
|
"Julia",
|
||||||
"Just",
|
"Just",
|
||||||
|
"Kotlin",
|
||||||
"LaTeX",
|
"LaTeX",
|
||||||
"Ledger",
|
"Ledger",
|
||||||
"LESS",
|
"LESS",
|
||||||
"LilyPond",
|
"LilyPond",
|
||||||
"LilyPond Scheme",
|
"LilyPond Scheme",
|
||||||
"Liquid",
|
"Liquid",
|
||||||
|
"LOG",
|
||||||
"Lox",
|
"Lox",
|
||||||
"Luau",
|
"Luau",
|
||||||
"Make",
|
"Make",
|
||||||
|
@ -63,29 +80,43 @@ languages = [
|
||||||
"Meson",
|
"Meson",
|
||||||
"Navi",
|
"Navi",
|
||||||
"Navi Stream",
|
"Navi Stream",
|
||||||
|
"CMake",
|
||||||
|
"Nginx",
|
||||||
"Nim",
|
"Nim",
|
||||||
|
"Nix",
|
||||||
"Noir",
|
"Noir",
|
||||||
"Nu",
|
"Nu",
|
||||||
"Odin",
|
"Odin",
|
||||||
"Pact",
|
"Pact",
|
||||||
|
"Perm",
|
||||||
"Pest",
|
"Pest",
|
||||||
"pica200",
|
"pica200",
|
||||||
"Pkl",
|
"Pkl",
|
||||||
|
"Animation.txt",
|
||||||
|
"Pdxinfo",
|
||||||
|
"PowerShell",
|
||||||
"QML",
|
"QML",
|
||||||
"R",
|
"R",
|
||||||
"Rainbow CSV",
|
"Rainbow CSV",
|
||||||
"Rainbow TSV",
|
"Rainbow TSV",
|
||||||
|
"RCL",
|
||||||
"rego",
|
"rego",
|
||||||
"ReScript",
|
"ReScript",
|
||||||
"Roc",
|
"Roc",
|
||||||
"RON",
|
"RON",
|
||||||
|
"reST",
|
||||||
"Scala",
|
"Scala",
|
||||||
"SCSS",
|
"SCSS",
|
||||||
|
"Slim",
|
||||||
"Smithy",
|
"Smithy",
|
||||||
"Solidity",
|
"Solidity",
|
||||||
|
"SQL",
|
||||||
"bazelrc",
|
"bazelrc",
|
||||||
"Starlark",
|
"Starlark",
|
||||||
|
"Strace",
|
||||||
|
"Swift",
|
||||||
"Templ",
|
"Templ",
|
||||||
|
"tmux",
|
||||||
"Twig",
|
"Twig",
|
||||||
"Typst",
|
"Typst",
|
||||||
"Unison",
|
"Unison",
|
||||||
|
@ -109,7 +140,6 @@ languages = [
|
||||||
"Markdown-Inline",
|
"Markdown-Inline",
|
||||||
"Markdown",
|
"Markdown",
|
||||||
"proto",
|
"proto",
|
||||||
"Python",
|
|
||||||
"Regex",
|
"Regex",
|
||||||
"Rust",
|
"Rust",
|
||||||
"TSX",
|
"TSX",
|
||||||
|
@ -136,6 +166,7 @@ languages = [
|
||||||
"PureScript",
|
"PureScript",
|
||||||
"Racket",
|
"Racket",
|
||||||
"ERB",
|
"ERB",
|
||||||
|
"rbs",
|
||||||
"Ruby",
|
"Ruby",
|
||||||
"Scheme",
|
"Scheme",
|
||||||
"Svelte",
|
"Svelte",
|
||||||
|
@ -147,4 +178,4 @@ languages = [
|
||||||
"Vue.js",
|
"Vue.js",
|
||||||
"Zig",
|
"Zig",
|
||||||
]
|
]
|
||||||
language_ids = { "AsciiDoc" = "asciidoc", "Assembly" = "asm", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "Blade" = "blade", "BQN" = "BQN", "Brainfuck" = "brainfuck", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "D" = "d", "DBML" = "dbml", "Earthfile" = "earthfile", "Elisp" = "elisp", "Handlebars" = "glimmer", "Exograph" = "exograph", "Fish" = "fish", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "ini" = "ini", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "Nim" = "nim", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "Scala" = "scala", "SCSS" = "scss", "Smithy" = "smithy", "Solidity" = "solidity", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Templ" = "templ", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "proto" = "proto", "Python" = "python", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig" }
|
language_ids = { "Ada" = "ada", "Aiken" = "aiken", "Amber" = "amber", "AsciiDoc" = "asciidoc", "Assembly" = "asm", "AWK" = "awk", "Python" = "python", "Shell Script" = "bash", "Beancount" = "beancount", "Bend" = "bend", "Blade" = "blade", "Blueprint" = "blueprint", "BQN" = "BQN", "Brainfuck" = "brainfuck", "C3" = "c3", "Cadence" = "cadence", "Cairo" = "cairo", "Cap'n Proto" = "capnp", "Cedar" = "cedar", "CFEngine" = "cfengine", "CSV" = "csv", "Gherkin" = "gherkin", "CUE" = "cue", "Curry" = "curry", "D" = "d", "DBML" = "dbml", "Dockerfile" = "dockerfile", "Earthfile" = "earthfile", "EJS" = "ejs", "Elisp" = "elisp", "Handlebars" = "glimmer", "env" = "env", "Exograph" = "exograph", "Fish" = "fish", "Fortran" = "fortran", "FSharp" = "fsharp", "GDScript" = "gdscript", "Godot Resource" = "godot_resource", "Gemini" = "gemini", "Diff" = "diff", "Git Attributes" = "gitattributes", "Git Commit" = "gitcommit", "Git Config" = "gitconfig", "Git Ignore" = "gitignore", "Git Rebase" = "gitrebase", "Go Sum" = "gosum", "GraphQL" = "graphql", "Groovy" = "groovy", "GROQ" = "groq", "http" = "http", "ini" = "ini", "Java" = "java", "Jsonnet" = "jsonnet", "Julia" = "julia", "Just" = "just", "Kotlin" = "kotlin", "LaTeX" = "latex", "Ledger" = "ledger", "LESS" = "less", "LilyPond" = "lilypond", "LilyPond Scheme" = "lilypond_scheme", "Liquid" = "liquid", "LOG" = "log", "Lox" = "lox", "Luau" = "luau", "Make" = "make", "MATLAB" = "matlab", "Meson" = "meson", "Navi" = "navi", "Navi Stream" = "navi_stream", "CMake" = "cmake", "Nginx" = "nginx", "Nim" = "nim", "Nix" = "nix", "Noir" = "noir", "Nu" = "nu", "Odin" = "odin", "Pact" = "pact", "Perm" = "perm", "Pest" = "pest", "pica200" = "pica200", "Pkl" = "pkl", "Animation.txt" = "animationtxt", "Pdxinfo" = "pdxinfo", "PowerShell" = "powershell", "QML" = "qml", "R" = "r", "Rainbow CSV" = "csv", "Rainbow TSV" = "tsv", "RCL" = "rcl", "rego" = "rego", "ReScript" = "rescript", "Roc" = "roc", "RON" = "ron", "reST" = "rst", "Scala" = "scala", "SCSS" = "scss", "Slim" = "slim", "Smithy" = "smithy", "Solidity" = "solidity", "SQL" = "sql", "bazelrc" = "bazelrc", "Starlark" = "starlark", "Strace" = "strace", "Swift" = "swift", "Templ" = "templ", "tmux" = "tmux", "Twig" = "twig", "Typst" = "typst", "Unison" = "unison", "V" = "v", "Vala" = "vala", "Verilog" = "verilog", "VHS" = "vhs", "Wgsl" = "wgsl", "WIT" = "wit", "XML" = "xml", "C" = "c", "C++" = "cpp", "CSS" = "css", "Go" = "go", "Go Mod" = "gomod", "Go Work" = "gowork", "JavaScript" = "javascript", "JSDoc" = "jsdoc", "JSON" = "json", "JSONC" = "jsonc", "Markdown-Inline" = "markdown-inline", "Markdown" = "markdown", "proto" = "proto", "Regex" = "regex", "Rust" = "rust", "TSX" = "tsx", "TypeScript" = "typescript", "YAML" = "yaml", "Astro" = "astro", "Clojure" = "clojure", "CSharp" = "csharp", "Dart" = "dart", "Elixir" = "elixir", "HEEX" = "heex", "Elm" = "elm", "Erlang" = "erlang", "Gleam" = "gleam", "GLSL" = "glsl", "Haskell" = "haskell", "HTML" = "html", "Lua" = "lua", "OCaml Interface" = "ocaml-interface", "OCaml" = "ocaml", "PHP" = "php", "PHPDoc" = "phpdoc", "Prisma" = "prisma", "PureScript" = "purescript", "Racket" = "racket", "ERB" = "erb", "rbs" = "rbs", "Ruby" = "ruby", "Scheme" = "scheme", "Svelte" = "svelte", "HCL" = "hcl", "Terraform Vars" = "terraform-vars", "Terraform" = "terraform", "TOML" = "toml", "Uiua" = "uiua", "Vue.js" = "vue", "Zig" = "zig" }
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
fetch_files() {
|
fetch_files() {
|
||||||
local repo_owner=$1
|
local repo_owner=$1
|
||||||
local repo_name=$2
|
local repo_name=$2
|
||||||
curl -s "https://api.github.com/repos/$repo_owner/$repo_name/git/trees/main?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}" | jq -c -r '.tree[] | .path'
|
curl -Ls "https://api.github.com/repos/$repo_owner/$repo_name/git/trees/HEAD?recursive=1" -H "Authorization: Bearer ${GITHUB_TOKEN}" | jq -c -r '.tree[] | .path'
|
||||||
}
|
}
|
||||||
|
|
||||||
process_language_files() {
|
process_language_files() {
|
||||||
|
@ -25,7 +25,7 @@ process_language_files() {
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
name=$(curl -s "https://raw.githubusercontent.com/$repo_owner/$repo_name/main/${file}" | grep -oP '^name = "\K[^"]*')
|
name=$(curl -s "https://raw.githubusercontent.com/$repo_owner/$repo_name/HEAD/${file}" | grep -oP '^name = "\K[^"]*')
|
||||||
id="${file%/config.toml}"
|
id="${file%/config.toml}"
|
||||||
id="${id##*/}"
|
id="${id##*/}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue