Skip to content

Commit

Permalink
feat: add bzl lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Tauchnitz committed Jan 18, 2024
1 parent 7eed8b2 commit 17a373e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lua/lspconfig/server_configurations/bzl.lua
Original file line number Diff line number Diff line change
@@ -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")]],
},
},
}

0 comments on commit 17a373e

Please sign in to comment.