iamcco / coc-spell-checker

A basic spell checker that works well with camelCase code for (Neo)vim
MIT License
265 stars 13 forks source link

Omit spell checker actions from coc-codeaction list #21

Open nomasprime opened 4 years ago

nomasprime commented 4 years ago

Using this extension with coc-actions. It's really nice having the spell checking actions displayed in a floating window near the selection to maximise efficiency, thank you.

The issue I'm experiencing is when coc-codeaction is run all the spelling suggestions for the entire file appear in the list. I can't see how this would be useful and it adds a lot of noise.

Is there anyway to exclude spell checker results from the coc-codeaction list?

iamcco commented 4 years ago

I don't know what your mean by run coc-codeaction. If you mean <Plug>(coc-codeaction) it will display all code actions in the buffer. And it's coc.nvim behavior, i can do nothing. Other way you can create your own functions to filter the result.