Skip to content

Commit

Permalink
Docs: supported editors page (#483)
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 e71ff0a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Binary file added docs/assets/editors-neovim.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions docs/editor-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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
local null_ls = require("null-ls")
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 e71ff0a

Please sign in to comment.