Closed vext01 closed 4 years ago
Hovering window produced by K binding disables syntax highlighting.
K
nvim --version
vim --version
NVIM v0.5.0-622-gf26df8bb6
git rev-parse --short HEAD
0e5c954
bin/languageclient --version
languageclient 0.1.158
af6e9a7eb
Steps to reproduce the behavior:
if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall | source $MYVIMRC endif syntax on call plug#begin('~/.vim/plugged') Plug 'autozimu/LanguageClient-neovim', { \ 'branch': 'next', \ 'do': 'bash install.sh', \ } call plug#end() set hidden if executable('rust-analyzer') let g:LanguageClient_serverCommands = { \ 'rust': ['rust-analyzer'], \ } endif nmap <silent>K <Plug>(lcn-hover)
cargo new --bin myprog
nvim -u </path/to/config> src/main.rs
main
Hover window appears, text in the buffer behind is no longer syntax highlighted(!).
Can anyone repro, or just me?
FWIW, I had the same issue with hovering windows using vim-lsp.
This turned out to be due to a syntax off in ~/.vim/ftplugin/markdown.vim.
syntax off
~/.vim/ftplugin/markdown.vim
Describe the bug
Hovering window produced by
K
binding disables syntax highlighting.Environment
nvim --version
orvim --version
):NVIM v0.5.0-622-gf26df8bb6
git rev-parse --short HEAD
):0e5c954
bin/languageclient --version
):languageclient 0.1.158
af6e9a7eb
To Reproduce
Steps to reproduce the behavior:
cargo new --bin myprog
nvim -u </path/to/config> src/main.rs
main
symbol. PressK
.Hover window appears, text in the buffer behind is no longer syntax highlighted(!).
Screenshots
Can anyone repro, or just me?
FWIW, I had the same issue with hovering windows using vim-lsp.