From 1a6eb1a3dcd24ef65df02a3f0e8ccf16c4f481e3 Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Wed, 5 May 2021 13:49:41 +0200 Subject: [PATCH] feat(neovim): fix eslint formatter --- home/editors/neovim/lsp/lsp.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/home/editors/neovim/lsp/lsp.lua b/home/editors/neovim/lsp/lsp.lua index 16cb999..b1d8710 100644 --- a/home/editors/neovim/lsp/lsp.lua +++ b/home/editors/neovim/lsp/lsp.lua @@ -109,20 +109,14 @@ config.diagnosticls.setup{ eslint = { command = "eslint_d", args = { - -- TODO eslint_d's stdin option doesn't work for some reason - -- "--cache", - -- "--fix-to-stdout", - -- "--stdin", - -- "--stdin-filename", - -- "%filepath" "--cache", - "--fix", + "--fix-to-stdout", + "--stdin", + "--stdin-filename", "%filepath" }, debounce = 50, rootPatterns = {".eslintrc.js", ".eslintrc.json", ".git"}, - isStdout = false, - doesWriteToFile = true, }, stylelint = { command = "stylelint",