Skip to content

Commit

Permalink
feat: add gradle_ls (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed Oct 6, 2022
1 parent b364c98 commit ef41cd4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ local DEFAULT_SETTINGS = {
| Fortran | `fortls` |
| Go | `golangci_lint_ls` |
| Go | `gopls` |
| Gradle | `gradle_ls` |
| Grammarly | `grammarly` |
| GraphQL | `graphql` |
| Groovy | `groovyls` |
Expand Down
1 change: 1 addition & 0 deletions doc/server-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
| [fsautocomplete](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#fsautocomplete) | [fsautocomplete](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#fsautocomplete) |
| [golangci_lint_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#golangci_lint_ls) | [golangci-lint-langserver](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#golangci-lint-langserver) |
| [gopls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gopls) | [gopls](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#gopls) |
| [gradle_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#gradle_ls) | [gradle-language-server](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#gradle-language-server) |
| [grammarly](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#grammarly) | [grammarly-languageserver](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#grammarly-languageserver) |
| [graphql](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#graphql) | [graphql-language-service-cli](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#graphql-language-service-cli) |
| [groovyls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#groovyls) | [groovy-language-server](https://github.com/williamboman/mason.nvim/blob/main/PACKAGES.md#groovy-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 @@ -56,7 +56,7 @@ return {
gotmpl = { "gopls" },
gowork = { "gopls" },
graphql = { "graphql" },
groovy = { "groovyls" },
groovy = { "gradle_ls", "groovyls" },
haml = { "tailwindcss" },
handlebars = { "ember", "tailwindcss" },
haskell = { "hls" },
Expand Down
3 changes: 2 additions & 1 deletion lua/mason-lspconfig/mappings/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ M.lspconfig_to_package = {
["elmls"] = "elm-language-server",
["ember"] = "ember-language-server",
["emmet_ls"] = "emmet-ls",
["erlangls"] = "erlang-ls",
["erg_language_server"] = "erg-language-server",
["erlangls"] = "erlang-ls",
["esbonio"] = "esbonio",
["eslint"] = "eslint-lsp",
["flux_lsp"] = "flux-lsp",
Expand All @@ -47,6 +47,7 @@ M.lspconfig_to_package = {
["fsautocomplete"] = "fsautocomplete",
["golangci_lint_ls"] = "golangci-lint-langserver",
["gopls"] = "gopls",
["gradle_ls"] = "gradle-language-server",
["grammarly"] = "grammarly-languageserver",
["graphql"] = "graphql-language-service-cli",
["groovyls"] = "groovy-language-server",
Expand Down
5 changes: 5 additions & 0 deletions lua/mason-lspconfig/server_configurations/gradle_ls/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
return function()
return {
cmd = { "gradle-language-server" },
}
end
1 change: 1 addition & 0 deletions lua/mason-lspconfig/win-exepath-compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ return {
["fsautocomplete"] = true,
["golangci_lint_ls"] = true,
["gopls"] = true,
["gradle_ls"] = true,
["groovyls"] = true,
["haxe_language_server"] = true,
["hls"] = true,
Expand Down

0 comments on commit ef41cd4

Please sign in to comment.