coq_nvim icon indicating copy to clipboard operation
coq_nvim copied to clipboard

Don't autocomplete after some characters

Open mareksubocz opened this issue 4 years ago • 4 comments

Hi,

i'm really enjoying your plugin :) One question, is it possible to disable completion propositions after some characters typed? I want to use pre_select mode, but that results in suggesting something whenever I type { sign, even though no variables/function have that character in them. It's really hard to write an opening bracket and enter after that, which is a really common scenario.

Thank you in advance.

mareksubocz avatar Dec 28 '21 01:12 mareksubocz

yea thats pretty simple to make, what should I call it tho, hummm.

coq_settings.completions.no_go_endings or something?

ms-jpq avatar Jan 03 '22 05:01 ms-jpq

no_go_characters maybe? Unless you want it to be suffix-based, which would actually be pretty cool! Maybe some regex? :P Although in my opinion something as advanced as regex would only be reasonable to bother with if it was really simple to implement.

mareksubocz avatar Jan 09 '22 09:01 mareksubocz

Regex doesn't really seem like it'd be useful for much, would just make it difficult to use if just a list of characters wasn't an option.

ppebb avatar Jan 11 '22 01:01 ppebb

@mareksubocz PR https://github.com/ms-jpq/coq_nvim/pull/479 try to fix this usage in pre_select mode.

zexi avatar Apr 15 '22 16:04 zexi