maralla / completor.vim

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

"//" locks up comments in cygwin #192

Closed squeezyphresh closed 6 years ago

squeezyphresh commented 6 years ago

Any time I try and type a comment with "//" in any type of file, file path completion tries to complete a windows network share path (e.g. "//foo/bar/remote_file.txt"), causing my whole editor to freeze while it tries to complete the path, probably because I'm using vim in an environment with tons of network paths. Is it possible to turn on file path completion?

Just in case it matters, I'm running in cygwin, on Windows 7, terminal vim.

ErichDonGubler commented 6 years ago

I getting this issue too on Windows 10 using MSYS2's installation of vim and vim-plug to use this plugin without additional configuration.

If you need, I can make a minimum reproducible example -- it wouldn't be hard. :)

ErichDonGubler commented 6 years ago

I was able to resolve this with this current configuration in my .vimrc:

" Completion
if has('python')
    Plug 'maralla/completor.vim'
    if has('win32unix')
        let g:completor_disable_filename = 1
    endif
endif
squeezyphresh commented 6 years ago

This resolved my issue as well, but it's a shame you have to disable filename completion completely

ErichDonGubler commented 6 years ago

Yeah...hopefully we can get a config option to get a finer-grained blacklisting of the offending functionality!

maralla commented 6 years ago

I made a slightly improvement by ignoring // in the commit ef74ebcf934ebf6a68190cebcd3debce495aa481. Please update.