Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Options for java #181

Open
delfick opened this issue Oct 5, 2021 · 0 comments
Open

Options for java #181

delfick opened this issue Oct 5, 2021 · 0 comments

Comments

@delfick
Copy link

delfick commented Oct 5, 2021

Hello,

I'm struggling to figure out how to tell nvim that my gradle wrapper is not malicious. This is what I'm trying so far which feels wrong and doesn't work

local function setup_servers()
  require'lspinstall'.setup()
  local servers = require'lspinstall'.installed_servers()
  for _, server in pairs(servers) do
    if server == "java" then
        require'lspconfig'[server].setup{
            on_attach=on_attach,
            settings = {
                java = {
                    imports = {
                        gradle = {
                            wrapper = {
                                checksums = {
                                    sha256 = "ad79758b1d82bca41798b3a72354d50cc255a6298ff9ea85ec4fa76d81887458",
                                    allowed = true
                                }
                            }
                        }
                    }
                }
            }
        }
    else
        require'lspconfig'[server].setup{on_attach=on_attach}
    end
  end
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant