From ce540bfe3364bade6cf3d1caccc3c35107d9744d Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Sun, 2 Mar 2025 00:24:19 +0100 Subject: 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) --- lua/lspconfig/configs/bazelrc_lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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'), }, -- cgit v1.2.3-70-g09d2