return { { "neovim/nvim-lspconfig", -- other settings removed for brevity opts = { servers = { eslint = { settings = { -- helps eslint find the eslintrc when it's placed in a subfolder instead of the cwd root workingDirectory = { mode = "auto" }, }, }, }, setup = { eslint = function() vim.api.nvim_create_autocmd("BufWritePre", { command = "EslintFixAll", }) end, }, }, }, }