Comments (10)
inoremap <expr><C-Space> neocomplete#start_manual_complete('omni')
Yes, you can.
from neocomplete.vim.
You can use PHP omni function in neocomplete.
But it is too slow.
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.php =
\ '[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
from neocomplete.vim.
I did the same settings. The completion works when I typed after -> and ::, but not works when I just type like "set_"..., I have to hit <c-x><c-o>
to get the php completion.
from neocomplete.vim.
let g:neocomplete#sources#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
If you set this settings, you can use full completion. But it is too heavy.
I don't recommend it.
from neocomplete.vim.
Great thanks. I tried it, it works as I want. But, you said you don't recommend it, so, what is the best practice for my purpose? Using dictionary/keyword for native php function completion?
from neocomplete.vim.
PHP omni completion is too slow.
So,
- Create other completion for PHP
- Using dictionary completion
from neocomplete.vim.
I tried https://github.com/shawncplus/phpcomplete.vim with neocomplete, the performance seems acceptable.
from neocomplete.vim.
OK. I will add it in the documentation.
from neocomplete.vim.
Is that possible I set the omni pattern like this
let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
This setting will pop up neocomplete after -> and ::
But, when I click, for example <ctrl-space>
, it will pop up omni completion through neocomplete at any time. So, I can click <ctrl-space>
after 'set_' to get omni complete for patterns like '\h\w*'
YouCompleteMe has this feature. If neocomplete can do the same, then we don't need to worry about the some heavy completions like php or ruby?
from neocomplete.vim.
Wow ...amazing. I really like it. It just works like YouCompleteMe, and the performance is quite acceptable with https://github.com/shawncplus/phpcomplete.vim.
Great thanks.
from neocomplete.vim.
Related Issues (20)
- Vim freezes if the completion candidates are very long HOT 5
- Third party libraries; HOT 3
- Python completion - Feature request HOT 4
- neocomplete.vim with problem of 100% cpu usage HOT 2
- neocomplete development is over HOT 3
- problem when editing tex file HOT 3
- "vim" is not found HOT 1
- Default CSS and SCSS Omni completion input patterns allow too-short strings HOT 5
- Onmi Window Doesn't Appear for PHP While Typing HOT 2
- SCSS keyword patterns include final colon in strings
- Sass variable ctags that begin with dollar signs aren't included in completion popups HOT 5
- New feature request HOT 1
- brew install vim --with-luajit cant work HOT 1
- jedi-vim omni completions not working sometimes HOT 1
- when I press esc Press ENTER or type command to continue HOT 1
- "Extract the files and put them in your Vim directory" which files? HOT 1
- E: Package 'vim-gnome' has no installation candidate HOT 1
- lua array index in vim now starts with 1 starting with patch-8.2.1066 HOT 1
- Asking for username and password HOT 3
- Use register other than the unnamed one HOT 8
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 neocomplete.vim.