if I immediately open the file via nvim, then everything works, but if I first open, for example, the config, and after the python file, then pyright does not work
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
use 'neovim/nvim-lspconfig'
use 'williamboman/nvim-lsp-installer'
use {
'williamboman/mason.nvim',
ensure_installed = {
'pyright',
},
}
use {'neoclide/coc.nvim', branch = 'release'}
-- another plugins
end)
I still don't really understand what exactly is wrong here. in coc.nvim itself or in lspconfig