mattn / efm-langserver

General purpose Language Server
MIT License
1.34k stars 61 forks source link

Conflict on formatting with gopls #226

Closed alexsotocx closed 2 years ago

alexsotocx commented 2 years ago

Hello and Thanks for the amazing job.

I started to use recently efm server to configure python formatter using the nvim lsp. But when running the go formatting option it always ask me which language server to use:

  1. gofpls
  2. efm

But the strange thing is that I didn't configure go for it. as you can see here https://github.com/alexsotocx/nvim-conf/blob/main/lua/plugins/lsp/init.lua#L79-L89

lsp.efm.setup {
  on_attach = on_attach, capabilities = cmp.capabilities,
  init_options = { documentFormatting = true },
  settings = {
    rootMarkers = { ".git/" },
    languages = {
      python = {
        { formatCommand = "autopep8 -", formatStdin = true }
      }
    }
  }
}

I would like to ask what is the way to avoid this kind of conflict.

Here are some screenshots Screenshot 2022-08-01 7 45 54 PM Screenshot 2022-08-01 7 45 08 PM

alexsotocx commented 2 years ago

Closed as duplciated of https://github.com/mattn/efm-langserver/issues/164