Skip to content
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

"Flickering" and missing headlines #378

Closed
refaelsh opened this issue Jul 27, 2022 · 6 comments
Closed

"Flickering" and missing headlines #378

refaelsh opened this issue Jul 27, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@refaelsh
Copy link

refaelsh commented Jul 27, 2022

Describe the bug

Hard to describe in words, please see the attached screenshot, and then I will try to explain in words.
Saw the screenshot? Great.

WhatsApp Image 2022-07-27 at 8 13 21 PM

  1. There are some headings missing, between lines 76 and 298. They are definitely there, I remember entering them and I can see them when doing cat file.org.
  2. Line 298, the background of the heading looks "garbled" on the left side.
  3. After line 311 there are some strange thingies.
  4. And many more strange "flickering" that are hard to describe in words.

Steps to reproduce

Here the org file to reproduce it: https://pastebin.pl/view/6d3fc321.

Expected behavior

I should see none of the described problems.

Emacs functionality

No response

Minimal init.lua

I tried it with the minimal init.lua, and everything works.
So, the problem is definetly on my side.
Could you please provide ideas on how to debug it?

Screenshots and recordings

No response

OS / Distro

NixOS

Neovim version/commit

0.7.2

Additional context

No response

@refaelsh refaelsh added the bug Something isn't working label Jul 27, 2022
@jgollenz
Copy link
Contributor

Unfortunately I know of no better way than to individually disabling your plugins or disabling all of them and gradually bring them back in. I know, it sucks. If someone has a better approach, let me know. Ofc, you can also bisect the list of your plugins to speed up the process

@refaelsh
Copy link
Author

Unfortunately I know of no better way than to individually disabling your plugins or disabling all of them and gradually bring them back in. I know, it sucks. If someone has a better approach, let me know. Ofc, you can also bisect the list of your plugins to speed up the process

I will do it asap and report back. Thank you very much for your suggestion.

@refaelsh
Copy link
Author

Found it. It is this one: https://github.com/lukas-reineke/headlines.nvim.
It is one of the recommended plugins from here: https://github.com/nvim-orgmode/orgmode#plugins.

Please suggest how to proceed :-)

@jgollenz
Copy link
Contributor

@lukas-reineke any suggestions? I'm not using headlines.nvim

@lukas-reineke
Copy link
Contributor

  1. Not sure about the missing lines.. it might have something to do with the folding? But I can't reproduce this, can you share a file for which this happens?
  2. This happens because your org headline highlight groups have a background color. https://github.com/akinsho/org-bullets.nvim uses that color for the bullets, but the background color of virtual text overwrites the highlight of the headline from headlines.nvim. To fix this, you have to remove the background color from OrgHeadlineLevel{1-39}.
    A quick and dirty way to do this without messing with your colorscheme would be something like this
for i = 1, 40, 1 do
    vim.cmd(string.format("highlight OrgHeadlineLevel%d guibg=NONE", i))
end
  1. This happens because your font does not support the default character for headlines.nvim. You can either change/patch your font, or use a different character. For example this one
require("headlines").setup {
   	org = {
        fat_headline_lower_string = "",
    },
}
  1. Not sure about this one either

If you can show me how to reproduce 1 and 4 I can take another look.
And we should probably close this issue here and open a new one in headlines.nvim

@refaelsh
Copy link
Author

refaelsh commented Jul 28, 2022

And we should probably close this issue here and open a new one in headlines.nvim

Done. Here is the link: lukas-reineke/headlines.nvim#41.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants