neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.79k stars 2.09k forks source link

configuring eslint/noConfig handler ? #3413

Open davidosomething opened 3 weeks ago

davidosomething commented 3 weeks ago

Description

according to https://github.com/neovim/nvim-lspconfig/commit/fe65c927d53da7f7964e7ac113a9ab4eafdf96f4#diff-abae925898033611bb8a6fe94b196d364c64999f6e6a12bb553486d88c62158dR124

we should be able to add a handler in the config for eslint lsp

{
  handlers = {
    ["eslint/noConfig"] = function()
      vim.notify("handled")
    end,
  }
}

@entropitor this doesn't seem to work, am i doing something wrong?

entropitor commented 3 weeks ago

Looks about right to me. You can always set LSP to debug/trace level to see if the request actually comes in. And check with LspInfo if the server is actually bound to your buffer. Maybe you are not actually registering the server?