-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Treesitter context is not distinguishable with moonflyNormalFloat enabled #62
Comments
Thanks for bringing this to my attention. Please update, I believe this is now much improved. I have copied the Let me know if you have any issues. |
I just updated and it looks great. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
When moonflyNormalFloat is enabled, the Treesitter context is not visually separate from normal text. One solution would be to use a repeated character to separate the context from the rest of the buffer. However, this displaces the text vertically and looks ugly when switching to a different theme (e.g., a light one).
Thanks again for maintaining this project!
Reproduction
Below is a reproduction in case you find it helpful.
and then
nvim --clean -u minimal.lua
into a file with appropriately large structures.For example, in
the function body looks incorrect upon first inspection. This problem is worse when there are multiple contexts (e.g., a loop in a function in a class).
Adding
require("treesitter-context").setup({ separator = "━" })
tominimal.lua
adds a helpful separator. However, here is what it looks like withvim.cmd([[colorscheme catppuccin-latte]])
.As you can see, it duplicates catppuccin's line and looks quite distracting.
The text was updated successfully, but these errors were encountered: