coq_nvim
coq_nvim copied to clipboard
`'indentkeys'` causes glitch when inserting completion
With 'cindent' on, 'cinkeys' causes re-indenting of current line, if a key in 'cinkeys' is used to accept completion, it may cause a glitch.
I think you should upload the example.
IDK if unsetting 'cindent' in CompleteDone may work.
I'm busy now, may upload an example several hours later.
hey hey @zeertzjq please dont worry and take your time,
ive been super busy recently as well :)
cheers!
The first time I press : to accept a case label completion, the : triggers re-indentation, and COQ fails to insert the completion and produces an error message start_col out of bounds. The second time the indentation doesn't change, and COQ successfully inserts the completion.
Besides disabling 'cindent', maybe applying the edits relative to extmarks can be another solution?
I think this also applies to 'indentkeys'.