vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Markdown syntax disappears with jedi-vim enabled

Open TymekDev opened this issue 5 years ago • 3 comments
trafficstars

Recently I have started using jedi-vim and stumbled upon following issue. When both jedi-vim and vim-markdown are enabled the markdown syntax element disappear (or are black on black text) as pictured below.

image

When I select entire file I can see that the text is here:

image

Then there is example with just jedi-vim enabled (left) and just vim-markdown enabled (right). In these cases it works just fine

image

As far as configuration goes I have nothing set for the vim-markdown and for jedi-vim it's just: let g:jedi#popup_on_dot = 0.

TymekDev avatar Aug 31 '20 21:08 TymekDev

Seems to me like it's jedi-vim causing this. If I enable only jedi-vim and no other plugin, I get the same problem. So it's not caused by vim-markdown?

sblask avatar Jul 29 '21 00:07 sblask

What I saw was not actually coming from vim-markdown, but from the bundled markdown plugin (this I think: https://github.com/tpope/vim-markdown) because I have vim-markdown through vim-polyglot, but had this in my config (and I don't remember why I added it):

let g:polyglot_disabled = [
\    'jinja',
\    'markdown',
\    'tmux',
\ ]

I also had this:

let g:markdown_fenced_languages = [
\    'bash=sh',
\    'clojure',
\    'python',
\    'sh',
\ ]

When I removed python from the list I wouldn't get any concealing anymore. So I think having a language in that list loads the plugin and in vim-jedi I could find a conceallevel=2 somewhere in the code which enables concealing. I could not actually reproduce the problem in this vim-markdown. So maybe you are looking at the wrong vim-markdown?

sblask avatar Jul 29 '21 01:07 sblask

I have just reproduced this using a minimal .vimrc file:

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'plasticboy/vim-markdown'
Plugin 'davidhalter/jedi-vim'

call vundle#end()
filetype plugin indent on

and creating a markdown file: image

However, since I have raised this issue I have stopped to use jedi-vim. When I opened this I was not sure where to open this issue as it was the combination of two that did not work.

TymekDev avatar Jul 29 '21 16:07 TymekDev