-
Notifications
You must be signed in to change notification settings - Fork 11
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: add function to get visible state #80
Conversation
Thanks for the PR @DrummyFloyd I don't use LazyVim the distro. Do you have any links for the benefits of this. The toggle function returns the status so couldn't this be encapsulated with a local within the keys function within config? |
=> yes ofc i could do this instead it's more or less a whim (purely UI stuff, if you don't want this getter i totally understand, even if, it could be always usefull in other cases) :D becasue Folke (Creator of Many nVim stuff ) , introduced a and the |
I requested changes in a previous PR about this same issue I will think about this |
I have given this some thought and the best middle ground is to expose it via the metatable, meaning there is no additional overhead to maintain, but the function/value is available. If you are happy to modify this PR to do it that, I would be happy to accept it. @DrummyFloyd |
so you mean somethings like this ? ( not very aware of LUA good practice )
|
no, you would just add something like is_visible = function()
return visible
end, around line 467 all the other changes can be reverted |
Changes according to tris203#80 (comment)
pretty usefull when u want to ad some stuff upon state
allow to do something like this