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

Commit 25e1b4b

Browse files
committed
fix: error in command line mode(#20)
1 parent b10fa5c commit 25e1b4b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/diagnostic.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function M.diagnostics_loclist(local_result)
6969
end
7070

7171
function M.publish_diagnostics(bufnr)
72+
if vim.fn.getcmdwintype() == ':' then return end
7273
if #vim.lsp.buf_get_clients() == 0 then return end
7374
local result = M.bufferDiagnostic[bufnr]
7475
if result == nil then return end

0 commit comments

Comments
 (0)