Closed flexagoon closed 8 months ago
This looks like a terminal-related issue to me.
Here is how it looks in WezTerm for me:
I have this option set in my wezterm.lua
, as well as the wezterm
terminfo installed:
config.term = 'wezterm'
Reference: https://wezfurlong.org/wezterm/config/lua/config/term.html?h=tic#term-xterm-256color
@antoineco I am using Wezterm. Using the wezterm
terminfo doesn't seem to help.
@antoineco are you sure you're using markdown+markdown_inline treesitter instead of regular syntax highlighting?
Could you please hover the text that is supposed to be displayed as ~strikethrough~, execute :Inspect
in Neovim, and share the result?
My output, for reference:
Same thing for italics:
I do use Treesitter, but I'm also running Neovim's dev builds: NVIM v0.10.0-dev-2282+gabfcdd9bf
. This could be making a major difference here. Let's see what your commands return.
Here:
Italic:
Strikethrough:
It seems like in my case they just link to regular @markup
whereas on your screenshots they're linked to @markup.(italic|strikethrough)
In comparison, they are linked correctly when using the Catppuccin theme, and indeed, italic and strikethrough work with it:
It could be because Catppuccin explicitly defines the @markup.italic
and @markup.strikethrough
groups, whereas we don't.
I suspect that these may be built-in on Neovim's development branch, but not in v0.9. I need to investigate though. It should be relatively non intrusive to define them explicitly.
Ok, I found why this is working out if the box on my build, those features made their way into Neovim in https://github.com/neovim/neovim/pull/27067
And the corresponding changes in Catppuccin: https://github.com/catppuccin/nvim/pull/630
Any possible solutions for this? I have the same case with @flexagoon, only that I'm using Kitty
@zirdl btw I switched to Neovim nightly and the issue no longer happens for me, so you can do that if that's an option
Neovim nightly is available pre-built on AUR and Fedora COPR and Ubuntu PPA so it's not that hard to install
@zirdl btw I switched to Neovim nightly and the issue no longer happens for me, so you can do that if that's an option
Neovim nightly is available pre-built on AUR and Fedora COPR and Ubuntu PPA so it's not that hard to install
Thank you for this
@zirdl like @flexagoon said, since nightlies already include that feature and Neovim 0.10 is likely to be released soon, I didn't feel pressed to implement this in the colorscheme.
I understand that Neovim 0.9 users may want to use the latest features from the Tree-sitter integration, so I'm going to add it now to Gruvbox Material.
I have done the following steps before reporting this issue:
Operating system/version
Fedora Silzerblue 39
Terminal emulator/version
wezterm 20240203-110809-5046fc22
$TERM environment variable
xterm-256color
Tmux version
No response
Feature matrix
Minimal vimrc that can reproduce this bug.
Steps to reproduce this bug using minimal vimrc
Open a Markdown file with the following contents:
Expected behavior
The text is italic and strikethrough, as shown in the tree-sitter-markdown readme
Actual behavior
The text is normal