Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with svelte and deoplete #39
I have added following lines to my .vimrc:
Adding this helps with css autocomplete but I think this shouldn't be necessary:
Any ideas what's wrong?
My .vimrc can be found here https://github.com/daliusd/cfg/blob/master/.vimrc if it is necessary.
Shougo, I'm happy that there are two ways how to say to deoplete where to look for css omnifunc but my concern is different. The problem is that when I open css file I get omnifunc=csscomplete#CompleteCSS automatically and deoplete uses that. That's awesome. Now when I use context_filtype.vim for file that has JS, CSS and HTML/Svelte in one file then CSS autocompletion is not working out-of-the box and I need to do something about that (mine or your solution). I'm pretty sure that .vue files have the same problem.
I can live with current workarounds but IMHO that shouldn't be requirement for CSS.
I think this is the same problem as here with CSS: Shougo/deoplete.nvim#424
BTW, your proposal does not seem to be necessary or does not seem to change anything. I must note that autocomplete actually works but only partially and omni completions are not working. Here is how autocomplete looks like with my workaround:
Omni completions are shown with [O] and there are other autocompletions. With my workaround I can even get potential values:
Your proposal does not enable omnifunc ([O]) autocompletions.