Skip to content

Commit

Permalink
feat: Add regal lsp support (OPA rego linter) (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz authored Aug 4, 2024
1 parent ce74291 commit 5716924
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ local DEFAULT_SETTINGS = {
| Python | [`sourcery`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#sourcery) |
| Raku | [`raku_navigator`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#raku_navigator) |
| Reason | [`reason_ls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#reason_ls) |
| Rego | [`regal`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regal) |
| Rego | [`regols`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regols) |
| ReScript | [`rescriptls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls) |
| reStructuredText | [`ltex`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ltex) |
Expand Down
1 change: 1 addition & 0 deletions doc/mason-lspconfig-mapping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ quick-lint-js quick_lint_js
r-languageserver r_language_server
raku-navigator raku_navigator
reason-language-server reason_ls
regal regal
regols regols
remark-language-server remark_ls
rescript-language-server rescriptls
Expand Down
1 change: 1 addition & 0 deletions doc/server-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
| [r_language_server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#r_language_server) | [r-languageserver](https://mason-registry.dev/registry/list#r-languageserver) |
| [raku_navigator](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#raku_navigator) | [raku-navigator](https://mason-registry.dev/registry/list#raku-navigator) |
| [reason_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#reason_ls) | [reason-language-server](https://mason-registry.dev/registry/list#reason-language-server) |
| [regal](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regal) | [regal](https://mason-registry.dev/registry/list#regal) |
| [regols](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#regols) | [regols](https://mason-registry.dev/registry/list#regols) |
| [remark_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#remark_ls) | [remark-language-server](https://mason-registry.dev/registry/list#remark-language-server) |
| [rescriptls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls) | [rescript-language-server](https://mason-registry.dev/registry/list#rescript-language-server) |
Expand Down
2 changes: 1 addition & 1 deletion lua/mason-lspconfig/mappings/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ return {
raku = { "raku_navigator" },
razor = { "tailwindcss" },
reason = { "ocamllsp", "reason_ls", "tailwindcss" },
rego = { "regols" },
rego = { "regal", "regols" },
requirements = { "snyk_ls" },
rescript = { "rescriptls", "tailwindcss", "unocss" },
rmd = { "ltex", "r_language_server" },
Expand Down
1 change: 1 addition & 0 deletions lua/mason-lspconfig/mappings/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ M.lspconfig_to_package = {
["raku_navigator"] = "raku-navigator",
["reason_ls"] = "reason-language-server",
["regols"] = "regols",
["regal"] = "regal",
["remark_ls"] = "remark-language-server",
["rescriptls"] = "rescript-language-server",
["rnix"] = "rnix-lsp",
Expand Down

0 comments on commit 5716924

Please sign in to comment.