From cf86484797f70d1783166e8f572a4cfedd510ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Reegn?= Date: Fri, 8 Nov 2024 13:44:59 +0100 Subject: [PATCH] feat(extras): rego language support (#4297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It took a while, but finally we can work with [OPA](https://www.openpolicyagent.org/) like a BOSS in neovim. Linking some PR-s that had to land in the past couple of months to make this config as simple as it is now: - treesitter commentstring support in - regols support in nvim-lspconfig: - regols support in mason-registry: - regols support in mason-lspconfig: - regal support in nvim-lspconfig: - regal support in mason-registry: - regal support in mason-lspconfig: ## Description ## Related Issue(s) ## Screenshots ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. Signed-off-by: Zoltán Reegn --- lua/lazyvim/plugins/extras/lang/rego.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/rego.lua diff --git a/lua/lazyvim/plugins/extras/lang/rego.lua b/lua/lazyvim/plugins/extras/lang/rego.lua new file mode 100644 index 00000000..d605c684 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/rego.lua @@ -0,0 +1,20 @@ +return { + recommended = { + ft = "rego", + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + regols = {}, + regal = {}, + }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { "rego" }, + }, + }, +}