Comments (10)
And after "$this->" I can see that automatically it's being called, but there is some kind of error:
It is important to keep the ncm2#on_complete#omni
in the on_complete
field.
from ncm2-phpactor.
How can I set up ncm2 in order to trigger automatically the phpactor suggestions instead of the default ones?
Remove this plugin.
Read the css example in ncm2 README. You might also need :help ncm2#register_source
.
from ncm2-phpactor.
From the screen shot, this plugin is returning the phpactor suggestions. The omni-complete suggestions are the same? ncm2 does not, by default, complete PHP.
from ncm2-phpactor.
From the screen shot, this plugin is returning the phpactor suggestions. The omni-complete suggestions are the same? ncm2 does not, by default, complete PHP.
The first image is what I think omni-complete, second (pressing <C-x><C-o>) phpactor. The look different despite both are perfectly valid
from ncm2-phpactor.
Yep that's expected. One is using native VIM omni-complete, the other ncm2 (both are using Phactor underneath)
from ncm2-phpactor.
How can I set up ncm2 in order to trigger automatically the phpactor suggestions instead of the default ones?
Remove this plugin.
Read the css example in ncm2 README. You might also need
:help ncm2#register_source
.
I removed 'phpactor/ncm2-phpactor', then in my vimrc:
autocmd FileType php setlocal omnifunc=phpactor#Complete
au User Ncm2Plugin call ncm2#register_source({
\ 'name' : 'php',
\ 'priority': 9,
\ 'subscope_enable': 1,
\ 'scope': ['php'],
\ 'mark': 'php',
\ 'word_pattern': '[\w\-]+',
\ 'complete_pattern': ['->'],
\ 'on_complete': ['phpactor#Complete'],
\ })
And after "$this->" I can see that automatically it's being called, but there is some kind of error:
[ncm2_core@yarp] php on_complete: Vim(call):E119: Not enough arguments for function: phpactor#Complete
Still working well when called through <C-x><C-o>
from ncm2-phpactor.
Just out of interest, what advantage are you trying to gain here?
from ncm2-phpactor.
mmm I like your plugin and I'm aware you are actively working on it so I'd like to adapt my vim settings as much as possible to it. I saw the completions look different when triggered automatically and manually and I asked here.
from ncm2-phpactor.
With "your plugin" I mean Phpactor of course.
from ncm2-phpactor.
Yep that's expected. One is using native VIM omni-complete, the other ncm2 (both are using Phactor underneath)
Ok, got it; Both are using phpactor but they represent the list in different ways. Thanks
from ncm2-phpactor.
Related Issues (17)
- The `$` is doubled when autocompleting variables HOT 4
- Exception thrown HOT 41
- no $ when call static methods HOT 1
- JSONDecodeError (Error on insert mode) HOT 2
- How to get import auto completion? HOT 4
- Open preview window on auto completing HOT 3
- Autocompletion breaks with native functions HOT 3
- AttributeError: 'NoneType' object has no attribute 'group' HOT 5
- Different class list than the omnifunc
- Composer and git only found when opening a file directly HOT 3
- try_notify_on_complete_failed, job is dead
- KeyError: 'suggestions' HOT 17
- It work on my golang file !!
- Update use of suggestion `info` => `short_description`
- Automatic class import. HOT 4
- Trouble with dynamic snippets for method parameter expansion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncm2-phpactor.