aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAdrian Vogelsgesang <adrian.vogelsgesang@tum.de>2025-03-02 00:24:19 +0100
committerGitHub <noreply@github.com>2025-03-02 07:24:19 +0800
commitce540bfe3364bade6cf3d1caccc3c35107d9744d (patch)
tree644f7b308b340677467dd749eca9ee0156557956 /lua
parentci: bump leafo/gh-actions-luarocks from 4 to 5 (diff)
downloadnvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar.gz
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar.bz2
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar.lz
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar.xz
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.tar.zst
nvim-lspconfig-ce540bfe3364bade6cf3d1caccc3c35107d9744d.zip
fix(bazelrc_lsp): invoke `lsp` subcommand explicitly (#3634)
The bazelrc-lsp binary added other sub-commands besides the `lsp` functionality (e.g., `bazelrc-lsp format` can be used to format files from the command line). This commit updates the config such that the `bazelrc-lsp lsp` is explicitly invoked. (Currently, `bazelrc-lsp` still defaults to the `lsp` sub-command, but this default will likely be removed in a future version)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/bazelrc_lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/bazelrc_lsp.lua b/lua/lspconfig/configs/bazelrc_lsp.lua
index d89462a2..e238923e 100644
--- a/lua/lspconfig/configs/bazelrc_lsp.lua
+++ b/lua/lspconfig/configs/bazelrc_lsp.lua
@@ -2,7 +2,7 @@ local util = require 'lspconfig/util'
return {
default_config = {
- cmd = { 'bazelrc-lsp' },
+ cmd = { 'bazelrc-lsp', 'lsp' },
filetypes = { 'bazelrc' },
root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel'),
},