neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
9.98k stars 2.04k forks source link

Custom eslint settings not used #3211

Open ClementDreptin opened 2 weeks ago

ClementDreptin commented 2 weeks ago

Description

Passing custom settings to require("lspconfig").eslint.setup() doesn't seem to have any effect.

Config

-- Loaded with lazy.nvim
return {
  "neovim/nvim-lspconfig",
  config = function()
    require("lspconfig").eslint.setup({
      settings = {
        enable = false,
      },
    })
  end
}

Expected behavior

I expect eslint not to report any diagnostics.

Actual behavior

Eslint still reports diagnostics.

What I tried

I don't know if this is a bug, or if I'm missing something. If this is just a misunderstanding of the configuration on my part, I'm sorry.

martenmatrix commented 1 week ago

I've also tried these solutions, however they did not seem to have an effect.