Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/regols
OPA Rego language server
https://github.com/kitagry/regols
language-server lsp rego
Last synced: 12 days ago
JSON representation
OPA Rego language server
- Host: GitHub
- URL: https://github.com/kitagry/regols
- Owner: kitagry
- License: mit
- Created: 2022-01-01T03:47:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T04:34:56.000Z (4 months ago)
- Last Synced: 2024-12-15T14:43:53.022Z (17 days ago)
- Topics: language-server, lsp, rego
- Language: Go
- Homepage:
- Size: 267 KB
- Stars: 37
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## regols
OPA rego language server
![regols](https://user-images.githubusercontent.com/21323222/148948494-d6a59424-d68a-4ab2-8cf4-4759dc9b6316.gif)
## Install
### MacOS
```bash
brew install kitagry/tap/regols
```### Other
Download from [Release page](https://github.com/kitagry/regols/releases).
Or, you can build as following.
```bash
go install github.com/kitagry/regols@latest
```## Configuration
### Configuration for [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
```vim
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
- [x] textDocument/publishDiagnostics
- [x] textDocument/formatting
- [x] textDocument/definition
- [x] textDocument/completion
- [x] textDocument/hover