From 95aca8b3cb78cc7af4ba29c6214488a3556502df Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Mon, 3 Jun 2024 15:08:04 -0700 Subject: [PATCH] Neovim: Switch to eslint_d This is a linter instead of a language server, so we no longer receive duplicate warnings about formatting errors due to having multiple language servers. Still applies eslint formatting rules on save. --- nvim/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/init.lua b/nvim/init.lua index a25dbf9..9e5ed0b 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -532,7 +532,7 @@ require('lazy').setup({ -- But for many setups, the LSP (`tsserver`) will work just fine tsserver = {}, - eslint = {}, + eslint_d = {}, tailwindcss = {}, lua_ls = { @@ -613,6 +613,7 @@ require('lazy').setup({ go = { 'goimports', 'gofumpt' }, lua = { 'stylua' }, templ = { 'templ' }, + typescript = { 'eslint_d' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, --