maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

Strange character highlight #234

Open predmijat opened 5 years ago

predmijat commented 5 years ago

Hi,

I need help debugging strange character highlighting (maybe it's a feature :D).

screen shot 2018-11-21 at 10 05 52 am

If I save the file, close it, then open it again, the highlight is gone. If I comment out Plug 'maralla/completor.vim' in my .vimrc I can't reproduce this issue.

commit 09ff2140886a79b02c1e6c17d185c405839f6ba2 (HEAD -> master, origin/master, origin/HEAD)

What am I looking at here? :)

maralla commented 5 years ago

completor dose nothing about highlight. Have you tried to comment out all other plugins and make completor the only plugin to test if the problem still exists?

predmijat commented 5 years ago

I commented out all other plugins, got in insert mode and held 0:

screen shot 2018-11-21 at 10 51 25 am

However, if I copy that line and paste it right below I get this:

screen shot 2018-11-21 at 10 51 47 am

Another test (first line is what I typed, second line is copy of the first one (yy p)):

screen shot 2018-11-21 at 10 54 02 am
predmijat commented 5 years ago

So it's not due to completor per se, but it doesn't happen after I comment out the following line in my .vimrc:

let g:completor_go_omni_trigger = '(?:\b[^\W\d]\w*|[\]\)])\.(?:[^\W\d]\w*)?'

which is there for the reason I don't know :) probably solving some problem I had by copy pasting from the Internet.