-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Neorg markup no longer renders after 8.0.0 #1374
Comments
do you 1. have a colorscheme installed and 2. have conceallevel set correctly? |
|
well regarding the colorscheme |
So could my issue have something to do with my colorscheme as opposed to neorg itself? |
I started noticing the same issue maybe a few days ago. Not sure what could have changed, but fwiw, I'm still using {
"vhyrro/luarocks.nvim",
priority = 1000,
config = true,
},
{
"nvim-neorg/neorg",
dependencies = { "luarocks.nvim" },
lazy = false,
version = "*",
config = true,
}, I've tried running |
I decided to switch to lazy.nvim because I fell like I've tried everything else, and I'm getting the exact same behavior as I was using rocks.nvim. |
@Tvrt1e use |
@TheLeoP :Inspect on text returns No items found at position 25,5, in buffer 1(text surrounded by asterisks). |
@Tvrt1e What does |
@TheLeoP |
@Tvrt1e is that the whole output? For me, with a document containing only (document ; [0, 0] - [1, 0] norg
(paragraph ; [0, 0] - [1, 0] norg
(paragraph_segment ; [0, 0] - [0, 6] norg
(bold)))) ; [0, 0] - [0, 6] norg Are both |
Sorry I just pasted the line that was highlighted when I ran the command. If I make a .norg file with only
I have on my system both |
As a note after switching to lazy.nvim horizontal lines now also work, (they didn't before.) So any syntax that changes the form/appearance of text works, but any syntax that keeps the text but changes its quality(color, etc.) does not work. |
BTW will |
|
Reverting to 7.0.0 fixes the issue entirely. Still would like to see this figured out so that I can keep up to date in the future. |
@Drew-Daniels your issue stems from the fact that you're invoking @Tvrt1e it really does seem like there's some sort of issue on your end. Are you lazy loading nvim-treesitter in any way? What if you make nvim-treesitter a dependency of Neorg? I.e: {
"nvim-neorg/neorg",
dependencies = { "nvim-treesitter" },
-- rest of config goes here
} Post 8.0 we did remove a snippet related to highlighting. It was a very hacky bit of code that tried forcefully restarting nvim-treesitter's highlight cache to get things to display just in case. We can't rely on such hacks in our codebase though, and thus decided to remove it. The root cause of things not being displayed properly are either:
I haven't found any way of reproducing your issues though which makes the situation harder than it otherwise would be 😅 |
I did install neorg with the treesitter dependency, and at the time I was still using vim-plug for my colorscheme. Yesterday I started using the kickstart.nvim config and after updating neorg to the latest version it worked just fine. The issue was likely that I called my colorscheme after loading lazy plugins. Thank you. |
Awesome, happy to hear it got resolved! :) |
Thanks @vhyrro ! That was exactly it. I had followed the docs after the |
Discussed in #1373
Originally posted by Tvrt1e March 31, 2024
nvim ver:
NVIM v0.10.0-dev-2785+gfeaab21c7
Build type: RelWithDebInfo
LuaJIT 2.1.1710088188
Nothing in neorg log.(since reinstalling)
Main branch
Modlues:
core.concealer
core.keybinds.keybinds
core.clipboard
core.clipboard.code-blocks
core.esupports.hop
core.esupports.indent
core.esupports.metagen
core.integrations.treesitter
core.itero
core.journal
core.defaults
core.mode
core.dirman
core.neorgcmd.commands.return
core.autocommands
core.ui
core.storage
core.dirman.utils
core.keybinds
core.concealer.preset_diamond
core.ui.text_popup
core.concealer.preset_varied
core.concealer.preset_basic
core.neorgcmd
core.tangle
core.qol.todo_items
core.qol.toc
core.promo
core.pivot
core.highlights
core.ui.selection_popup
core.looking-glass
Just to make sure I uninstalled all other nvim plugins and reverted changes to init.vim since installing neorg. After reverting these changes I got the same behavior.
Steps to reproduce:
:Neorg works fine so the plugin is installed, but in .norg files no Neorg features work except for a few. I installed neorg using vim-plug, so I removed it and installed via rocks.nvim, but still nothing worked. Any ideas as to why? Maybe I misunderstood the configuration.
Example:
neorg.lua:
notes:
I reverted to 7.0.0 and got the same behavior.
When removing core.concealer everything including headers become plain text regardless of cursor position.
The text was updated successfully, but these errors were encountered: