From 4fbe985faf5dad92b9ba7228bc00fc4706c72d5e Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 28 Jun 2022 22:16:26 +0300 Subject: [PATCH] neovim: enable `enableProjectDiagnostics` for tsserver --- neovim/.config/nvim/after/plugin/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neovim/.config/nvim/after/plugin/lsp.lua b/neovim/.config/nvim/after/plugin/lsp.lua index 8c2e182..b4067ac 100644 --- a/neovim/.config/nvim/after/plugin/lsp.lua +++ b/neovim/.config/nvim/after/plugin/lsp.lua @@ -141,6 +141,13 @@ for _, server in ipairs(servers) do if server.name == "tsserver" then opts.root_dir = util.root_pattern(".git", "package.json", "tsconfig.json") + opts.settings = { + tsserver = { + experimental = { + enableProjectDiagnostics = true, + }, + }, + } end if server.name == "eslint" then