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

Commit

Permalink
fix: error in command line mode(#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
haorenW1025 committed May 24, 2020
1 parent b10fa5c commit 25e1b4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function M.diagnostics_loclist(local_result)
end

function M.publish_diagnostics(bufnr)
if vim.fn.getcmdwintype() == ':' then return end
if #vim.lsp.buf_get_clients() == 0 then return end
local result = M.bufferDiagnostic[bufnr]
if result == nil then return end
Expand Down

0 comments on commit 25e1b4b

Please sign in to comment.