OPA rego language server
brew install kitagry/tap/regols
Download from Release page.
Or, you can build as following.
go install github.com/kitagry/regols@latest
local nvim_lsp = require'lspconfig'
local configs = require'lspconfig.configs'
if not configs.regols then
configs.regols = {
default_config = {
cmd = {'regols'};
filetypes = { 'rego' };
root_dir = nvim_lsp.util.root_pattern(".git");
}
}
end
configs.regols.setup{}