-
Notifications
You must be signed in to change notification settings - Fork 20
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
feature: Statusline caching and custom functions #147
Comments
Hey @abeldekat, grappleline looks great! A few questions:
Are you experiencing any measurable latency when using the default grapple.nvim statusline? Scope themselves are already cached, which should reduce most of the overhead of recomputing the statusline value.
Grapple already executes a
There are a few methods available to customize your own statusline if you want to. Is there any information that you think a user would need to build their statusline which is not already provided by Grapple? |
Thanks for the feedback!
Not on my fast laptop. Although scopes are cached, in order to generate the
Not completely. I need to know when the user changes the default list. See grappleline decorate
No, because the For my usecase, the plugin would be redundant when grapple would have:
On a side note: I had some problems using the second require("lualine").setup({
sections = {
lualine_b = {
{ require("grapple").name_or_index, cond = require("grapple").exists }
}
}
}) The only way to have the statusline showing tags properly, is to wrap the name_or_index function in a function without any argmuments: function() return require("grapple").name_or_index() end, Best regards! |
This appears to have been incorrect. I've updated the README to fix this. Thanks for bringing it up!
I added an event called If you'd still interested, I would be happy to take a look at a PR which would add the last two points you mentioned, just making sure it keeps the current default behaviour 🙂 |
That's great! I will propose a PR, hopefully this week. |
@cbochs, FYI, I started working on the PR. Hope to send a first draft soon. |
Did you check the docs?
Is your feature request related to a problem? Please describe.
Hello @cbochs,
Recently, I wrote
harpoonline
, around the same timegrapple
incorporated itsstatusline
.I have been using
grapple
for a week now and it's a perfect replacement forharpoon
. I also like the paradigm and the additional features.Based on
harpoonline
, I refactored and wrote grappleline.The plugin adds the following to grapple's builtin
statusline
:Would you be interested in a PR? I think that the additional functionality would fit very nicely into
grapple
.I would appreciate your opinion!
Describe the solution you'd like
...
Describe alternatives you've considered
...
Additional context
No response
The text was updated successfully, but these errors were encountered: