-
Notifications
You must be signed in to change notification settings - Fork 51
bug: backticks not being concealed by default #89
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
Comments
Backticks are concealed by the nvim-treesitter here: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/markdown/highlights.scm#L50-L52 Do you override or extend |
No, I do not. However, I noticed that the highlight group |
No, that shouldn't make any real difference. Your color scheme should make these groups, I looked at your treesitter config and found this line: https://github.com/gennaro-tedesco/dotfiles/blob/master/nvim/lua/plugins/treesitter.lua#L7 highlight = { enable = true, disable = { "markdown" } }, Concealing relies on treesitter highlights, they are disabled for markdown, hence concealing does not work for non inline elements like code blocks. To fix this remove the highlight = { enable = true }, While I wrote a healthcheck to validate that highlights were enabled, I did not account for someone explicitly disabling it for |
## Details Rather than checking if the highlight module is enabled for treesitter check that each language is individually enabled. This should hanlde cases like this: #89 Minor refactor, standardize on `function M.method` instead of `M.method = function`. Used both in a few places, better to stick to one.
Updated the healthcheck to account for this: 8d14528. Feel free to re-open if the fix from the previous comment does not work. |
You are perfectly right, quite silly of me to not check my treesitter options first. Thank you a lot for taking the time to even dig into my config for it, much appreciated. Now it all works fine! |
Neovim version (nvim -v)
Operating system
MacOs
Terminal emulator / GUI
iTerm
Describe the bug
More than a bug a request for clarification: I am running the plugin with default settings, however I cannot reproduce the visuals that appear in your demo screenshots, in particular concealing of backticks isn't show (the backticks still are).
See screenshot above: I have copied&pasted a portion of your README.md, expecting it to automatically render as in the gifs, however the concealing both for inline and block code isn't correct (or am I mistaken)?
Expected behavior
Backticks do not appear when concealed.
Healthcheck output (:checkhealth render-markdown)
Additional information
No response
The text was updated successfully, but these errors were encountered: