feat: add buck2 lsp and language settings

pull/11145/head
jer 5 months ago
parent a75b1cf51e
commit 60493c62c9

@ -4,7 +4,6 @@
use-grammars = { except = [ "hare", "wren", "gemini" ] } use-grammars = { except = [ "hare", "wren", "gemini" ] }
[language-server] [language-server]
als = { command = "als" } als = { command = "als" }
ada-language-server = { command = "ada_language_server" } ada-language-server = { command = "ada_language_server" }
ada-gpr-language-server = {command = "ada_language_server", args = ["--language-gpr"]} ada-gpr-language-server = {command = "ada_language_server", args = ["--language-gpr"]}
@ -86,6 +85,7 @@ slint-lsp = { command = "slint-lsp", args = [] }
solargraph = { command = "solargraph", args = ["stdio"] } solargraph = { command = "solargraph", args = ["stdio"] }
solc = { command = "solc", args = ["--lsp"] } solc = { command = "solc", args = ["--lsp"] }
sourcekit-lsp = { command = "sourcekit-lsp" } sourcekit-lsp = { command = "sourcekit-lsp" }
starlark-lsp = {command = "starlark-lsp"}
svlangserver = { command = "svlangserver", args = [] } svlangserver = { command = "svlangserver", args = [] }
swipl = { command = "swipl", args = [ "-g", "use_module(library(lsp_server))", "-g", "lsp_server:main", "-t", "halt", "--", "stdio" ] } swipl = { command = "swipl", args = [ "-g", "use_module(library(lsp_server))", "-g", "lsp_server:main", "-t", "halt", "--", "stdio" ] }
tailwindcss-ls = { command = "tailwindcss-language-server", args = ["--stdio"] } tailwindcss-ls = { command = "tailwindcss-language-server", args = ["--stdio"] }
@ -110,6 +110,10 @@ pkgbuild-language-server = { command = "pkgbuild-language-server" }
helm_ls = { command = "helm_ls", args = ["serve"] } helm_ls = { command = "helm_ls", args = ["serve"] }
ember-language-server = { command = "ember-language-server", args = ["--stdio"] } ember-language-server = { command = "ember-language-server", args = ["--stdio"] }
[language-server.buck2]
command = "buck2"
args = ["lsp"]
[language-server.ansible-language-server] [language-server.ansible-language-server]
command = "ansible-language-server" command = "ansible-language-server"
args = ["--stdio"] args = ["--stdio"]
@ -125,7 +129,6 @@ paramName = "All"
paramType = true paramType = true
await = true await = true
[language-server.gopls] [language-server.gopls]
command = "gopls" command = "gopls"
@ -2279,6 +2282,20 @@ file-types = ["bzl", "bazel", "star", { glob = "BUILD" }, { glob = "BUILD.*" },
comment-token = "#" comment-token = "#"
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
grammar = "python" grammar = "python"
language-servers = ['starlark-lsp']
[[language]]
name = "buck2"
scope = "source.buck2"
injection-regex = "(bxl|bazel)"
file-types = [{glob = "BUCK"}, "bxl", "bzl", "TARGETS"]
comment-token = "#"
roots = [".buckconfig"]
indent = { tab-width = 4, unit = " " }
grammar = "startlark"
language-servers = ['buck2']
[[language]] [[language]]
name = "elvish" name = "elvish"

Loading…
Cancel
Save