Closed BingCoke closed 1 year ago
As you can see, there is some error in this file, but barbar show nothting.by the way,I use nvim.coc.
This plugin uses the vim.diagnostic
module, which uses the built-in LSP client to source diagnostics.
I recommend using nvim-lspconfig instead of coc.nvim, but if you wish to continue using coc.nvim you can overwrite the vim.diagnostic.get
function to use b:coc_diagnostic_info
(though I don't necessarily recommend that):
vim.diagnostic.get = function(bufnr, opts)
local diagnostics = vim.b.coc_diagnostic_info
-- etc. read the docs for info about the return value
end