Closed sarmong closed 2 years ago
To get proper link concealing everywhere you need to use treesitter highlights. I updated minimal init to enable that by default now https://gist.github.com/kristijanhusak/a0cb5f4eb2bad3e732a1d18d311ebe2f
Unfortunately, it didn't help
I cannot reproduce it with minimal init. Give it another the latest one https://gist.github.com/kristijanhusak/a0cb5f4eb2bad3e732a1d18d311ebe2f
Just to be clear:
nvim -u init.lua test.org
:set conceallevel=2
Do you have both lines concealed?
Yes. Make sure you are using latest minimal init from the link I provided in previous comment, since I updated it when you reported this.
Tested on 0.7 - same result
@sarmong I can't open that video, Github says the file is corrupted.
I also tried with the minimal init and the concealing works as expected for me.
For me it happens randomly, but only if I use same minimal init every time. If i comment out packer installation every time, and just use what's already installed, it doesn't happen at all. @sarmong is this happening with your regular configuration? If you have treesitter highlights set up it should work fine.
@jgollenz , please use chromium to watch the video. It doesn't for in Firefox for me either
@kristijanhusak , yes, it is happening with my regular configuration. You can see treesitter config here
When I comment out the disable = {'org'}
, conceal stops working completely in my config for some reason
@sarmong Can you try to put require("orgmode").setup_ts_grammar()
in the same file before line 4
, and remove disable = {'org'}
+ run the :TSUpdate org
?
Same result.
And when I ran ;TSUpdate org
- it said that all parsers were up-to-date.
Btw, shouldn't it be disabled as per Readme? If it's enabled, then both treesitter and regex highlighting run at the same time?
Readme is a bit outdated, since treesitter highlights now supports most of the things that were not available before. These settings should work fine:
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'org' },
},
Treesitter has bigger priority over regex syntax hl, so it will highlight treesitter, and what's left with syntax highlighting.
If I do this in the minimal config, I do get the expected result as well. Which might make sense, because treesitter loads befor PackerCompileDone
and loads without the right configuration. However, it's weird, that it doesn't work in my config
- vim.cmd([[autocmd User PackerCompileDone ++once lua load_config()]]
+ load_config()
I found the reason. I wasn't properly loading orgmode config. Sorry for taking your time.
@sarmong what was the reason?
@petRUShka man, I have no idea, it's been 1.5 years and I no longer use the plugin.
Describe the bug
When I put a link into a bullet list, it is not recognized by treesitter or syntax
Steps to reproduce
Add the following lines to org file
Expected behavior
Links inside bullet lists are parsed correctly
Emacs functionality
In default doom-emacs config this works as expected
Minimal init.lua
Screenshots and recordings
OS / Distro
Arch Linux
Neovim version/commit
v0.8.0-dev
Additional context
No response