-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Concealer Issues Thread #292
Comments
First bug I found myself: markup concealing was not autotriggering on files lower than 1250 lines, that's been fixed in bfe3056 now :) |
This is potentially tricky with how things are done currently in the concealer. I will need to take a look at Vhyrro's rewritten code though since there have been quite some changes. The problem will be that we need to iterate the char in the TS range one by one rather than just rely on the length of the node. |
Yes, I have encountered this too. The problem is that the On another note: those screenshot of yours are still using Markdown-like link syntax! |
A followup question to this @max397574: is this soft-wrapped? If so, I don't think there is a way for us to handle this. Neovim itself would have to handle wrapping extmarks.. |
Right, lmao |
Not sure what soft-wrapped is |
@danymat This should be fixed now. Can you please update your TS parser to verify? |
It is indeed ! thanks ! |
See |
Seems to be a problem with generic line breaks as well.
|
Yep. That's the original problem I discuss here: #292 (comment) |
I just started trying neorg today, so I just assume that this is unintended behavior. An inline link {| my marker}[with custom text]. looks like this in the editor An inline link with custom text. |
I think I know what's the problem |
I cannot take a screenshot at the moment, but it really looks just as described; like a bunch of whitespace of equal length as the marker. Here is the config https://github.com/karlc1/nvim/blob/main/lua/plugins.lua#L691 |
Just a quick heads up that i've managed to fix some bugs related to the link concealing as discussed earlier above. Those should now be highlighted properly :) (also @karlc1 if you haven't already then updating Neorg should fix your problems you've described above) :) |
Thanks for the fixes! Here is one more. For the line
with If I then enter insert mode on a line above the link by hitting However, if I then enter insert mode on the link line it gets reset to the first markup. |
@vhyrro I use neovim nightly and neorg on the latest tag, and i still don't think that the links look right. This line Looks like this: I would expect it to look like this: |
Check out the markup preset here: https://github.com/nvim-neorg/neorg/wiki/Concealer |
I see, did not realize this. The 'brave' preset works as I want it to, thanks for the clarification |
Interesting it works on your end with the Can you post your config? Perhaps you have a setting that I don't that is making it work. |
this is because stuff breaks with the joiner char |
Thanks for the clarification. is it fixable or is brave not intended for use? |
@esquires It does look like that for me if I enter insert mode on a line with a link, and then go back to normal mode but stay with the cursor on the same line. However, when I move the cursor to a different line it looks correct again. |
duplicate of #929 |
HI! Here's the terminal output for the following |
[SOLVED]: If you use [ISSUE]: I have similar issues to others where it doesn't appear that these markup formats work on my machine:
This is after I set my terminal to use the Here is my require("neorg").setup({
load = {
["core.defaults"] = {},
}
})
|
@birangsworld that's actually the expected behavior because there aren't any characters to be used higher than that there is an option in the concealer config which allows you to use complete numbers |
Any chance you could help me out with setting the correct option in the [core.concealer] config? |
Thank you. I was having issue of bold, italic and strikethrough in my tmux. After applying |
Posting this here, because I think it might help others. But in my case, I wasn't seeing italics or strikethroughs in iTerm2 (and while outside I don't remember why I had set this at one point, but once I removed this, and configured iTerm2 to use |
Bold, italic, underline not working for me. I saw some suggestion on how to fix above but none worked. Bold, italic, underline work outside of neorg. Im using kitty terminal on endeavour, everything up to date |
@Kiefciman same problem here |
@Kiefciman @mateuscqueiros There was a breaking change related to highlighting. Try add |
@champignoom this fixed it, thx |
This fixes underlines but not bold or italics for me. I have determined it's not an issue with my terminal or fonts because in Neorg the "title" in |
This doesn't seem to make any difference to me (I also can't get any text decoration to work inside neorg. bold, italic, strikethrough, etc). Is there something I should do after that change other than restart neovim? Here's what I've already tried to resolve this issue:
|
concealer not working, and checkhealth show module not recognized
|
Latex rendering seems to be stop work for me from some point on: {
"vhyrro/luarocks.nvim",
priority = 1001,
opts = {
rocks = { "magick" },
},
config = true,
},
{
"3rd/image.nvim",
dependencies = { "luarocks.nvim" },
config = true,
},
{
"nvim-neorg/neorg",
dependencies = { "luarocks.nvim" },
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
-- version = "*", -- Pin Neorg to the latest stable release
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.export"] = {},
["core.export.markdown"] = {},
["core.concealer"] = {},
["core.completion"] = {
config = {
engine = "nvim-cmp",
},
},
["core.dirman"] = {
config = {
workspaces = {
knowledge = "~/Documents/Knowledge/Notes Base",
},
default_workspace = "knowledge",
},
},
["core.integrations.image"] = {},
["core.latex.renderer"] = {},
},
}
end,
} Anyone have any ideas? |
Hey! This thread exists to basically catch all of the bugs that the new concealer implementation may be causing. Post your problems here!
Aand here's the longer version of the above TL;DR:
Good News
Let's start with the great news: we've massively improved the performance of Neorg's concealer.
I wish I were joking but it's gotten to the point where the bottleneck is no longer Neorg but the code that performs treesitter highlighting in neovim 😂. I did a bunch of testing on over 100k+ loc Neorg documents and after doing
:TSBufDisable highlight
to prevent the lag that TS was causing things still manage to work smoothly on my machine.The bad news?
It's definitely not bug free.
Now that our concealer does updates incrementally there's definitely a chance that it'll miss a line or two when concealing in certain circumstances. If you have a problem with the concealer, or something doesn't work as intended, please post your issue here!.
I'll be trying to fix them as I go.
A feature was dropped...
With the dawn of the more performant concealer we've temporarily dropped the TODO item completion level feature - you know, the one that displayed
(0 of 3) [0% complete]
on headings when they had a TODO list under them? It's gone for now.I suppose I owe you an explanation as to why we've decided to do this. Before our update the concealer would reparse the entire buffer every single time you changed some text or left insert mode. As you can imagine this made it really slow. Just to clarify we didn't want to make it this bad-performing in the first place, but there were certain bugs in
nvim_buf_attach
that prevented us from properly doing incremental updates then.The thing is now that everything is happening incrementally we cannot properly recalculate TODO item counts without requiring more context than a single line - and requiring more context greatly slows down the concealer again.
We'll be working hard on trying to bring it back, but we really wanted to push these new changes to you guys without having you wait another week.
UPDATE: Forgot to update this thread but that has been reimplemented now as well. If you have problems with the TODO item completion levels then be sure to let me know here too!
Hope you understand!
The text was updated successfully, but these errors were encountered: