Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CoqCommandComplete and g:coqtail#event #368

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

whonore
Copy link
Owner

@whonore whonore commented Aug 31, 2024

Fixes #367.

@whonore
Copy link
Owner Author

whonore commented Aug 31, 2024

@katrinafyi could you see if the approach described in the docs here does what you want?

@katrinafyi
Copy link

I'll give it a try today, thanks!

@katrinafyi
Copy link

Thanks for working on this!

Using the autocmd in the documentation seems to hang the editor. Is there a cycle with CoqJumpToEnd triggering it again?

I tried this and it did not seem to fix the problem, but my Vimscript is not good:

let g:coqautocommanding = v:false
augroup CoqtailFollowChecked
autocmd!
autocmd! User CoqCommandComplete
\  if ! g:coqautocommanding && g:coqtail#event.cmd =~# 'step\|rewind\|to_line\|to_top'
\|   let g:coqautocommanding = v:true
\|   CoqJumpToEnd
\|   let g:coqautocommanding = v:false
\| endif
augroup END

I can confirm that the autocmd works if I replace the CoqJumpToEnd with a simple echo.

@whonore
Copy link
Owner Author

whonore commented Sep 1, 2024

Ah, I bet it's the same root problem as #360. I was able to work around it then but I guess I'll have to figure out how to actually solve it. In the meantime, it works for me at least using Vim instead of NeoVim.

@whonore whonore marked this pull request as draft September 4, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: automatic CoqJumpToEnd after stepping?
2 participants