'no-name buffer is keep popping up when I using nvim with coc plugin

everyone I have met a problem that I couldn't find any answer online so far. hope there is someone who could help me !! (If this question already has an answer online, I would love to know thanks!).

When I use my nvim, I find out that my buffer on the top keeps showing [no-name] buffer. at first, I can't find why it was showing that [no-name] buffer.

Then I find out every time I switch the buffer with coc-nvim diagnose is activated, I'll get the [no-name] buffer with the diagnose message in it(image 2). so I think it might be the reason of coc-nvim. but I'm not sure and I don't know how to fix this issue. please help!!

my nvim full view

no-name buffer with coc-diagnose

Here is my nvim config file on GitHub if someone wants to play for a while. https://github.com/IsaacTai123/DotConfig/tree/master/nvim



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source