diff options
| author | matawed <30142056+matawed@users.noreply.github.com> | 2024-01-19 07:25:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 14:25:09 +0800 |
| commit | e5a967c6583d82a21f12b1e66284f37cddac6d9d (patch) | |
| tree | c5ea4140d1124229ab7be801923116595c9a281e /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar.gz nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar.bz2 nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar.lz nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar.xz nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.tar.zst nvim-lspconfig-e5a967c6583d82a21f12b1e66284f37cddac6d9d.zip | |
feat: add bzl lsp (#2973)
Co-authored-by: Markus Tauchnitz <dev@planet-mt.de>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/bzl.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/bzl.lua b/lua/lspconfig/server_configurations/bzl.lua new file mode 100644 index 00000000..a2200f6d --- /dev/null +++ b/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")]], + }, + }, +} |
