Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim-jdtls support #267

Open
realtica opened this issue Mar 27, 2023 · 1 comment
Open

nvim-jdtls support #267

realtica opened this issue Mar 27, 2023 · 1 comment

Comments

@realtica
Copy link

How is the correct way to configure navigator.lua to work together with nvim-jdtls?

  • This is my setup and JDTLS is loaded 2 times( 2 client(s) attached to this buffer) :(
require 'navigator'.setup(
  {
    debug = false,
    lsp = {
      format_on_save = false,
      diagnostic_virtual_text = false,
      servers = { 'lemminx', 'jdtls' },
      bashls = {
        autostart = true
      },
      angularls = {
        filetypes = { 'html' },
        -- cmd = cmd,
        -- on_new_config = function(new_config,new_root_dir)
        --   new_config.cmd = cmd
        -- end,
      }
    }
  }
)
@EpsilonKu
Copy link

you need to remove jdtls from config. You are loading jdtls two times. One from navigator and one from jdtls config

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

No branches or pull requests

2 participants