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

toggle whether term closes #2409

Merged
merged 2 commits into from
Jul 31, 2019
Merged

toggle whether term closes #2409

merged 2 commits into from
Jul 31, 2019

Conversation

ldelossa
Copy link
Contributor

This PR introduces a way to quickly toggle whether the nvim terminal is closed after a quickfix menu is populated.

I found this helpful when needing to add log.Printf() statements in my tests as the term formatter function does not capture stdout.

I am open to discussion here.

Copy link
Collaborator

@bhcleek bhcleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, @ldelossa . I only have a couple of small nits and don't want to both you with them. Do you mind if I push some commits to your branch before merging?

@ldelossa
Copy link
Contributor Author

ldelossa commented Jul 20, 2019 via email

* Rename g:go_term_exit to g:go_term_close_on_exit.
* Move the toggle function to autoload/go/term.vim and also refactor it
  (both for consistency with other option toggling functions).
* Add documentation of g:go_term_close_on_exit.
@bhcleek
Copy link
Collaborator

bhcleek commented Jul 26, 2019

@ldelossa I'm not a heavy Neovim user. Would you mind testing my changes to make sure they work for you as you'd expect?

@ldelossa
Copy link
Contributor Author

@bhcleek confirmed working. Thanks!!

@bhcleek bhcleek merged commit af622d9 into fatih:master Jul 31, 2019
bhcleek added a commit that referenced this pull request Jul 31, 2019
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.

2 participants