Closed igorlfs closed 4 months ago
yup i disable it on non current win avoid wasting time on unimportant rendering
Sorry I may have closed this issue rudely. For now I want to keep it minimal and i have update doc for the way it works.
Do you have any plans to make this behavior controllable via setup options? Is there something tied to current implementation that makes it hard to support multiple windows?
In short, I only want to see the indent lines in the buffer I am currently in and I can minimize the current code. indentmini works in the redraw loop of neovim.
I understand your preference towards only enabling indentation guides for the focused window. And since it is your plugin that you mainly built for yourself, it totally makes sense to be the default behavior.
What I'm asking is:
Do you at least plan to make this an opt-out settings in the future, so that people who do want the indentation guides in every window can enable it?
currently in on_win it check the bufnr ~= api.nvim_get_current_buf() if remove this line i think it can be work , if no too much code on this PR welcome.
I forgot to comment the results. If anyone has stumbled upon this issue, simply removing the bufnr check did not work correctly. And looking at the related code context I realized quite a bit of work would have to be done to support it. Only focusing on the current window really did simplify the code and improve performance, but it you want multi-window support you should probably look for an alternative plugin.
Hey, thanks for the plugin!
Reproduction steps:
:e my-file
):vsplit
+:e my-other-file
)Indent guides will only show up in the other file, instead of showing up in both files.
I understand this could be by design, to avoid drawing virtualtext where the user can't see, but currently it feels too extreme.