-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
improve neovim support #1611
improve neovim support #1611
Conversation
autoload/go/term.vim
Outdated
exe 'resize ' . height | ||
elseif a:mode == "vertical" | ||
elseif mode =~ "vertical" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matching on a regular expression here would change something like left vertical
to vertical resize
. Is that what you intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bhcleek , do you have any suggestion on this pull request? Thanks! |
Thanks for contributing @hiberabyss! I'm not sure what problem it's trying to solve, but I have a few concerns.
It may be worth noting that
I think this may be reasonable, but we still have some gaps in behavior. For instance, if
I think an important piece of this puzzle is that b3a9f8b seems to have changed
|
Hi @bhcleek , For your concerns:
However, when run in neovim, the Moreover, the code will looks a little strange if some place use
When use set Currently, use regex match won't introduce bad impact, while it could cover more use cases. I think it deservers the change.
Since |
Codecov Report
@@ Coverage Diff @@
## master #1611 +/- ##
==========================================
+ Coverage 19.15% 19.19% +0.03%
==========================================
Files 53 53
Lines 4151 4153 +2
==========================================
+ Hits 795 797 +2
Misses 3356 3356
Continue to review full report at Codecov.
|
resizingYou're right that when opening the windowThanks for adding the |
Hi @bhcleek , From the vim-go document, we could know that
It should be meaningless to set I think maybe we could change Thanks! |
Hi @bhcleek , is there any update? |
This still needs:
|
@bhcleek ,
|
Will resize the height instead of the width when |
Hi @bhcleek , It makes sense. Thanks for your reminding! |
Thanks @hiberabyss |
a:mode
will always be "", it's better to usemode
. When user setlet g:go_term_mode = "split"
, it could be supported.=~
instead==
to cover case likebotright split
.