summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/bzl.lua
blob: a2200f6d53e335266629017dc7986e4b579d36aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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")]],
    },
  },
}