Wednesday, July 4, 2018

Re: Syntax Completion works only for one language



On Tue, Jul 3, 2018 at 11:55 PM 'Ameesh Oza' via vim_use <vim_use@googlegroups.com> wrote:
On Tuesday, July 3, 2018 at 7:21:27 PM UTC-7, David Fishburn wrote:
> On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <vim...@googlegroups.com> wrote:
> I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories
>
>
> ...
>  Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look
>
>
>
> ...
> When you indicate it works for only one what does that exactly mean?
> Does the completion window open for only 1 language?
Yes only for 1 language
> Does the completion window open for both, but have the same values for both languages? 
>
>
> Can you be a bit more descriptive.
>
>
> Also, what commands did you execute to setup the syntax completion for each buffer?
> Are you using autocommands to do it?

Yes. In both ftdetect vim files I have

if has("autocmd") && exists("+omnifunc")
  autocmd Filetype *
          \     if &omnifunc == "" |
          \             setlocal omnifunc=syntaxcomplete#Complete |
          \     endif
endif


You didn't answer all the questions.
Also, can you provide the :version output. 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: