summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua
new file mode 100644
index 0000000..a2200f6
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua
@@ -0,0 +1,22 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'bzl', 'lsp', 'serve' },
+ filetypes = { 'bzl' },
+ -- https://docs.bazel.build/versions/5.4.1/build-ref.html#workspace
+ root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel'),
+ },
+ docs = {
+ description = [[
+https://bzl.io/
+
+https://docs.stack.build/docs/cli/installation
+
+https://docs.stack.build/docs/vscode/starlark-language-server
+]],
+ default_config = {
+ root_dir = [[root_pattern(".git")]],
+ },
+ },
+}