-
Notifications
You must be signed in to change notification settings - Fork 17
Highlighting problems if cursorline is activated #44
Comments
Ok, with a clean install in a Docker container and a minimal FROM debian:unstable
LABEL maintainer="Ingo Heimbach <i.heimbach@fz-juelich.de>"
RUN apt-get update && \
apt-get install --no-install-recommends -y automake \
build-essential \
ca-certificates \
cmake \
curl \
git \
libclang-3.9-dev \
libtool-bin \
pkg-config \
python3-pip \
python3-setuptools \
unzip && \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN git clone https://github.com/neovim/neovim.git && \
cd neovim && \
make CMAKE_BUILD_TYPE=Release && \
make install && \
cd .. && \
rm -rf neovim
RUN pip3 install neovim
RUN curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh && \
bash installer.sh ~/.vim/dein && \
rm -f installer.sh
RUN mkdir -p "${HOME}/.config/nvim" && \
echo 'set runtimepath^=~/.vim runtimepath+=~/.vim/after\n\
let &packpath = &runtimepath\n\
source ~/.vimrc' \
> "${HOME}/.config/nvim/init.vim" && \
echo "set nocompatible\n\
\n\
set runtimepath+=/root/.vim/dein/repos/github.com/Shougo/dein.vim\n\
if dein#load_state('/root/.vim/dein')\n\
call dein#begin('/root/.vim/dein')\n\
call dein#add('Shougo/dein.vim')\n\
call dein#add('arakashic/chromatica.nvim')\n\
call dein#end()\n\
call dein#save_state()\n\
endif\n\
\n\
filetype plugin indent on\n\
syntax enable\n\
set background=dark\n\
set cursorline\n\
\n\
let g:chromatica#libclang_path = '/usr/lib/llvm-3.9/lib'\n\
let g:chromatica#enable_at_startup = 1\n\
let g:chromatica#responsive_mode = 1\n\
let g:chromatica#highlight_feature_level = 0" > /root/.vimrc
RUN echo ":call dein#install()\n" > ./vim_install_plugins && \
echo '#!/bin/bash\nnvim -s /tmp/vim_install_plugins\nexec "$@"' > /tmp/entrypoint.sh && \
chmod +x /tmp/entrypoint.sh
WORKDIR /root
RUN echo "#include<stdlib.h>\n#include<stdio.h>\n\
\n\
int main(void) {\n\
printf(\"Hello World!\");\n\
return 0;\n\
}" > test.c
ENTRYPOINT ["/tmp/entrypoint.sh"]
CMD ["/bin/bash"] to docker build -t chromatica-test:latest .
docker run -it chromatica-test:latest Neovim opens automatically and installs Chromatica with Dein.vim. When the installation is finished, close Neovim and restart it again with the given test file: nvim test.c |
Thanks for submitting this issue! This is indeed a problem due to the conflict between the When A quick workaround is setting A correct solution would require creating a modified Note, the purpose of setting |
Special thanks for providing the docker file! It is super helpful for reproducing the problem! |
Ok, thanks for your detailed response. 😃 I will try to set |
The highlight conflict on stderr and other "keywords" should have been solved by the latest fix. The highlight problem regarding the header filename and angle brackets is a known problem caused by the parsing of libclang. Will figure that out later. |
Thanks a lot for your work! 👍 |
First: Thanks for your project! Chromatica helps a lot for daily work.
If the cursorline setting is activated, the syntax highlighting of chromatica is overriden by the default highlighting:
![image](https://user-images.githubusercontent.com/1449087/36266105-04999aaa-1271-11e8-95e7-81af5a654c63.png)
Unfortunately, I am not sure if this is a issue with chromatica, neovim or maybe my colorscheme (vim-one).
The text was updated successfully, but these errors were encountered: