Closed VictorLemosR closed 4 months ago
same here, can somebody fix it?
try :Inspect
when you're on it with the cursor and send the output
@ha5h6r000wn are you sure you have the same setup?
conceallevel set, concealer module loaded, treesitter highlighting enabled? those are common issues for this
sorry ,i missed out the line "vim.wo.conceallevel = 2", now it looks good?
Still, i find that the todo-item icons seems not aligned to the center. Is there any config to solve this issue? @max397574
no this just depends on your terminal and font
try
:Inspect
when you're on it with the cursor and send the output @ha5h6r000wn are you sure you have the same setup? conceallevel set, concealer module loaded, treesitter highlighting enabled? those are common issues for this
Tried inspect as you asked:
Tried in another place just to see if anything is working. Cursor at "(x)":
both of these seem completely wrong The first one just seems like treesitter isn't attached correctly or sth (try :InspectTree) the second one either seems like a really bad bug or a mistake on your side could you send the whole code snippet for the second one?
For the first one with :InspectTree
For the second one, here is the full photo:
well the second one is correct then afaik injecting neorg into itself doesn't work
the first one seems really weird though because the syntax tree looks correct but just no highlights are applied
@VictorLemosR: I had a very similar issue of bold, italic, and links. not working, but headings did work. After running :TSConfigInfo
, I discovered that my treesitter config wasn't being read properly. Specifically, I noticed that modules.highlight.enabled
was false
, despite it being true
in my config. Fixed my treesitter config to actually load, caused bold, italic, and links to started working.
Looking at your config above, the config = function()
line for your nvim-treesitter config comes after the }
of the nvim-treesitter-context package specification. I'm guessing your config isn't being loaded.
@VictorLemosR: I had a very similar issue of bold, italic, and links. not working, but headings did work. After running
:TSConfigInfo
, I discovered that my treesitter config wasn't being read properly. Specifically, I noticed thatmodules.highlight.enabled
wasfalse
, despite it beingtrue
in my config. Fixed my treesitter config to actually load, caused bold, italic, and links to started working.Looking at your config above, the
config = function()
line for your nvim-treesitter config comes after the}
of the nvim-treesitter-context package specification. I'm guessing your config isn't being loaded.
Thank you! That was exactly it. As you suggested, :TSConfigInfo showed my modules.highlight.enable was false. I just changed the initialization of my config for treesitter to the end of my initialization and it worked
Prerequisites
Neovim Version
0.10
Neorg setup
Lazy config
Neorg configs inside ftplugin:
Treesitter lazy config:
My colorscheme config:
Actual behavior
Heading's formats works: Inline markups don't:
As a side bug, To-do hotkeys don't work: or td, for example
Expected behavior
To work.
Steps to reproduce
Other information
What I checked/tried: