Skip to content
Discussion options

You must be logged in to vote

I managed to get it working

return {
  'nvimtools/none-ls.nvim',
  opts = {
    debug = true,
  },
  config = function(_, opts)
    local null_ls = require 'null-ls'
    null_ls.setup(opts)

    local helpers = require 'null-ls.helpers'

    local java_maven = {
      name = 'Java Maven',
      method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
      filetypes = { 'java' },
      generator = helpers.generator_factory {
        command = './mvnw',
        args = {
          'install',
          '--batch-mode',
          '--update-snapshots',
        },
        format = 'raw',
        to_stdin = false,
        from_stderr = true,
        ignore_stderr = true,
        timeout = 60000,
        che…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by diego-velez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant