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

Commit 9dc00d6

Browse files
committed
revert: changes for location list
1 parent b61d28a commit 9dc00d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lua/diagnostic.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ function M.publish_diagnostics(bufnr)
8686
if vim.api.nvim_get_var('diagnostic_enable_virtual_text') == 1 then
8787
util.buf_diagnostics_virtual_text(bufnr, diagnostics)
8888
end
89-
if #vim.fn.getloclist(vim.fn.winnr()) == 0 then
90-
vim.fn.setloclist(0, {}, 'r')
91-
M.diagnostics_loclist(diagnostics)
92-
end
93-
M.trigger_diagnostics_changed()
89+
vim.fn.setloclist(0, {}, 'r')
90+
M.diagnostics_loclist(diagnostics)
9491
end
9592

9693
M.trigger_diagnostics_changed = vim.schedule_wrap(function()

0 commit comments

Comments
 (0)