From 37e0c40104e4160cb3a2b5f3bfcacb9525a84103 Mon Sep 17 00:00:00 2001 From: haorenW1025 Date: Tue, 9 Jun 2020 00:37:48 +0800 Subject: [PATCH] fix: revert changes --- lua/diagnostic.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/diagnostic.lua b/lua/diagnostic.lua index ae39927..d88583b 100644 --- a/lua/diagnostic.lua +++ b/lua/diagnostic.lua @@ -84,9 +84,7 @@ function M.publish_diagnostics(bufnr) if vim.api.nvim_get_var('diagnostic_enable_virtual_text') == 1 then util.buf_diagnostics_virtual_text(bufnr, result.diagnostics) end - if vim.fn.filereadable(vim.fn.expand("%")) == 0 then - M.diagnostics_loclist(result) - end + M.diagnostics_loclist(result) vim.schedule_wrap(function() vim.api.nvim_command("doautocmd User LspDiagnosticsChanged")