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

Return floating_preview window id #4828

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

idbrii
Copy link
Contributor

@idbrii idbrii commented Sep 2, 2024

Make ale#floating_preview#Show more similar to popup_create and return the id of the window so it's easy to set the filetype of the resulting buffer.

This doesn't affect any other ale code. It just makes it easier to use ALE's library function in my vim config.

Make ale#floating_preview#Show more similar to popup_create and return
the id of the window so it's easy to set the filetype of the resulting
buffer.

Update test stub version of Show() to return a win id (the current window
since it's not actually creating a window).

Test
* both tests still pass
Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

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

LGTM

@hsanson hsanson merged commit 0b4c665 into dense-analysis:master Oct 19, 2024
7 checks passed
@idbrii idbrii deleted the floatingpreview branch October 22, 2024 02:32
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