lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.07k stars 102 forks source link

Arabic text is concealed when indented #827

Closed avidseeker closed 7 months ago

avidseeker commented 7 months ago

Problem

Arabic text in Latex buffer not showing when indented and while in Arabic mode (:set arabic).

Steps to reproduce

init.vim:

call plug#begin('~/.local/share/nvim/plugged')
    Plug 'lukas-reineke/indent-blankline.nvim'
call plug#end()

lua << END
require("ibl").setup { scope = { highlight = highlight } }
END

buff.tex:

\documentclass{article}

\begin{document}
    تجربة كتابة عربية
\end{document}

nvim -u init.vim -c ':set arabic' buff.tex

Expected behavior

Indented sentence not showing up.

Neovim version (nvim -v)

NVIM v0.9.5

lukas-reineke commented 7 months ago

Can you describe what the problem is? I can't read arabic, but this looks correct to me

2024-01-15_10-51

avidseeker commented 7 months ago

The problem is that all indented Arabic characters are invisible (See attached screenshot). Tested this on Kitty, and st. Are you sure you ran nvim -u init.vim -c ':set arabic' buff.tex with the init.vim? And what terminal emulator did you use?

Before :set arabic: image

After :set arabic: image

lukas-reineke commented 7 months ago

Sorry, I can't reproduce the issue. I am using Kitty as well. I don't think this is an issue with indent-blankline.

When testing, make sure you also use --clean, to skip all other plugins.

avidseeker commented 7 months ago

How can I do this while also including VimPlug? If I run it with --clean I get E117: Unknown function: plug#begin.

lukas-reineke commented 7 months ago

You need to explicitly include your plugin manager as well.

You can use this minimal reproduction template

avidseeker commented 7 months ago

Using nvim --clean -u min-init.lua -c ':set arabic' buff.tex on Kitty v0.31.0 and NVIM v0.9.5:

image

lukas-reineke commented 7 months ago

I can reproduce it now :+1: This is an issue with specifically Neovim 0.9.5, other versions work, that's why I couldn't reproduce it at first. It is fixed in the nightly version, so you'll have to use that for now, or wait until the next release.

There is nothing I can do here, so I'll close the issue.