Skip to content

Commit

Permalink
chore(docs): supported editors page
Browse files Browse the repository at this point in the history
Signed-off-by: Ievgenii Shepeliuk <eshepelyuk@gmail.com>
  • Loading branch information
eshepelyuk committed Nov 17, 2023
1 parent 227e454 commit 2b4cf42
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Binary file added docs/assets/editors-neovim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/editor-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Editor support

## Neovim via none-ls

[none-ls](https://github.com/nvimtools/none-ls.nvim) - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.

Minimal installation via [VimPlug](https://github.com/junegunn/vim-plug)

```vim
Plug 'nvim-lua/plenary.nvim'
Plug 'nvimtools/none-ls.nvim'
lua <<EOF
require("null-ls").setup {
sources = { null_ls.builtins.diagnostics.regal }
}
EOF
```

Using sample rego file `test.rego` with following content

```rego
package test
default allowRbac := true
```

diagnostics may look like this.

![regal in none-ls](./assets/editors-neovim.png)

0 comments on commit 2b4cf42

Please sign in to comment.