regols

command module
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 8 Imported by: 0

README

regols

OPA rego language server

regols

Install

MacOS

brew install kitagry/tap/regols

Other

Download from Release page.

Or, you can build as following.

go install github.com/kitagry/regols@latest

Configuration

Configuration for nvim-lspconfig

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{}

Specs

  • textDocument/publishDiagnostics
  • textDocument/formatting
  • textDocument/definition
  • textDocument/completion
  • textDocument/hover

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL