add groovylsp

This commit is contained in:
2023-06-06 19:08:05 +03:00
parent 3dddf844ce
commit 4a47852f53
5 changed files with 70 additions and 21 deletions

View File

@@ -235,8 +235,9 @@ M.diagnostics = function(groovyls_cmd)
debug = false,
sources = {
-- formatting.lua_format,
formatting.alejandra, -- for nix
formatting.prismaFmt, -- for node prisma db orm
formatting.alejandra, -- for nix
formatting.prismaFmt, -- for node prisma db orm
formatting.npm_groovy_lint, -- groovy lsp
formatting.prettier.with {
-- extra_args = {
@@ -259,7 +260,7 @@ M.diagnostics = function(groovyls_cmd)
diagnostics.statix, -- for nix
null_ls.builtins.hover.dictionary, codeactions.shellcheck,
diagnostics.shellcheck,
diagnostics.npm_groovy_lint
diagnostics.npm_groovy_lint -- groovy lsp
-- removed formatting.rustfmt since rust_analyzer seems to do the same thing
},
on_attach = attached