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

fix(hover): check showtabline not laststatus #616

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

vimpostor
Copy link
Contributor

@vimpostor vimpostor commented Nov 14, 2022

There is not really a point in gatekeeping this feature from laststatus=0.
The hover feature works completely fine with laststatus=0 and this creates only problems with other plugins, see: vimpostor/vim-tpipeline#39

Copy link
Owner

@akinsho akinsho left a comment

Choose a reason for hiding this comment

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

@vimpostor would be great if you could tweak this PR to add a check for whether the tabline is showing or not, which was my original intention there.

lua/bufferline/hover.lua Show resolved Hide resolved
Hover events work just fine if laststatus=0 and this check breaks in
combination with other plugins, for example see:
vimpostor/vim-tpipeline#39

Instead we can check for `showtabline`, because we probably don't want
to process hover events if the tabline is disabled.

refs: akinsho#539
@akinsho akinsho changed the base branch from main to dev November 16, 2022 20:52
@akinsho akinsho changed the title Relax "laststatus" requirement for hover events fix(hover): check showtabline not laststatus Nov 16, 2022
@akinsho akinsho changed the base branch from dev to main November 16, 2022 20:53
@akinsho akinsho merged commit 4ecfa81 into akinsho:main Nov 16, 2022
@akinsho
Copy link
Owner

akinsho commented Nov 16, 2022

Thanks for the contribution 👍🏿

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.

None yet

2 participants