fannheyward/coc-pyright

Auto-import (on input)

UN-9BOT opened this issue · 1 comments

What's the output of :CocCommand pyright.version
coc-pyright 1.1.330 with Pyright 1.1.330

What's the output of :CocCommand workspace.showOutput Pyright

I use it for import:
vim.cmd([[nnoremap <silent><expr> <leader>i "bea\<BS><c-r>=coc#refresh()\<CR>"]])

How can I modify this command so that only imports are included in the prompts, and the results of other “buffers” are excluded.

You can disable buffer and other sources, leave LS souce only, but we can't make it imports only.