Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"in buffer" autocompletion is missed #34

Closed
maxvi opened this issue Sep 11, 2016 · 1 comment
Closed

"in buffer" autocompletion is missed #34

maxvi opened this issue Sep 11, 2016 · 1 comment

Comments

@maxvi
Copy link

maxvi commented Sep 11, 2016

After I installed and configured ac-php "in buffer" autocompletion is missed

What I mean. There are (##) no completion ($customArray).

<?php

$customArray = array();

var_dump($cust##);

"in buffer" completion will work if I remove these lines from .emacs

(add-hook 'php-mode-hook '(lambda ()
                (add-to-list 'company-backends 'company-ac-php-backend)
                ))

have any ideas? sorry I am a newbie in company. Thanks for help!

@maxvi
Copy link
Author

maxvi commented Sep 13, 2016

It's related to company backends.

See company-mode/company-mode#182

backends need to be grouped to use several backends (company-dabbrev-code company-gtags company-etags company-keywords - are default backends used in php-mode w/o ac-php)

(add-hook 'php-mode-hook (lambda ()
               (set (make-local-variable 'company-backends)
                '((company-ac-php-backend company-dabbrev-code company-gtags company-etags company-keywords)))
               ))

@maxvi maxvi closed this as completed Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant