-
Notifications
You must be signed in to change notification settings - Fork 85
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
Animations: pin/unpin & fix close/open #455
base: master
Are you sure you want to change the base?
Conversation
romgrk
commented
Apr 10, 2023
- Pin/unpin animation
- Fix close/open animation (not working again in certain cases)
@Iron-E The pin/unpin animation is complete & ready for review. I'm not sure if I'll fix the close/open in this PR, if you wanna review this we could merge it as is. |
@@ -533,7 +678,7 @@ local HL = { | |||
--- @return nil|string syntax | |||
local function generate_tabline(bufnrs, refocus) | |||
local layout = Layout.calculate() |
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.
Future perf optimization: we don't need to recalculate the layout on every update.
local filler = { { hl = HL.FILL, text = (' '):rep(layout.buffers.width) } } | ||
content = Nodes.insert_many(filler, 0, content) |
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.
Perf: I think this can be removed now.
Seeing some bugs, I'll do more work on this. |