Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
fix: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
haorenW1025 committed Jun 8, 2020
1 parent 8226360 commit 37e0c40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 37e0c40

Please sign in to comment.