Closed meinside closed 2 months ago
I failed to reproduce this with your config. I have a feeling this is caused by format plugins you installed What happens if you removes
if client.server_capabilities.document_formatting then
vim.api.nvim_create_autocmd('BufWritePre', {
callback = function() vim.lsp.buf.format { async = false } end,
})
end
Oh, I cannot reproduce this with the current nightly(v0.11.0-dev-483+gf93ecd276).
Maybe it was due to the bug of neovim itself.
Hi, I'm not sure if it is a duplicated or known issue, but I'm facing this error message on neovim nightly:
when importing missing packages by saving the go file, or by running :GoImports manually.
The error goes away after re-opening the file.
Here is the (not so) minimal neovim config file to reproduce the problem:
Of course, it is working as expected in the stable version of neovim.
My neovim version: NVIM v0.11.0-dev-168+ge20c5fba2 Build type: RelWithDebInfo LuaJIT 2.1.1716656478