-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat(preview): attach to popup if already open #622
Conversation
Maybe we should add an option |
b06b654
to
d8b9bbb
Compare
I don't really like the name |
teal/gitsigns/popup.tl
Outdated
local exists = pcall(api.nvim_win_get_var, winid, var) | ||
if exists then |
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.
local exists = pcall(api.nvim_win_get_var, winid, var) | |
if exists then | |
if vim.w[winid][var] ~= nil then |
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.
Doing this requires to change types.d.tl
so we don't get a compile error. However I couldn't get it to work. Any tips on how to do it?
d8b9bbb
to
5e423c3
Compare
5e423c3
to
10be4fe
Compare
I've gone ahead and fixed up the PR |
Thanks! That looks better |
I agree with your comment here: #609 (comment)
Made it to always attach to the popup if it's already open