nvim/lsp/bazelrc_lsp.lua
2025-09-22 16:07:34 +02:00

22 lines
547 B
Lua

---@brief
---
--- https://github.com/salesforce-misc/bazelrc-lsp
---
--- `bazelrc-lsp` is a LSP for `.bazelrc` configuration files.
---
--- The `.bazelrc` file type is not detected automatically, you can register it manually (see below) or override the filetypes:
---
--- ```lua
--- vim.filetype.add {
--- pattern = {
--- ['.*.bazelrc'] = 'bazelrc',
--- },
--- }
--- ```
---@type vim.lsp.Config
return {
cmd = { 'bazelrc-lsp', 'lsp' },
filetypes = { 'bazelrc' },
root_markers = { 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel' },
}