]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/pack/stargrave/start/py-importcompl/autoload/python/unused.vim
Move to vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / py-importcompl / autoload / python / unused.vim
1 vim9script
2
3 export def Remove()
4     setqflist(filter(getqflist(), (idx, val) =>
5         stridx(val.text, "unused-import") != -1 ||
6         stridx(val.text, "imported but unused") != -1))
7     cdo d
8 enddef