- Notifications
You must be signed in to change notification settings - Fork 7
Update ncm to ncm2 #15
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,21 @@ | ||
| " autoload/laravel/completion.vim - Completion sources | ||
| " Maintainer: Noah Frederick | ||
| | ||
| function! laravel#completion#cm_routes(opt, ctx) abort | ||
| function! laravel#completion#cm_routes(ctx) abort | ||
| if exists('b:laravel_root') | ||
| call s:cm_complete(laravel#app().routes(), a:opt, a:ctx) | ||
| call s:cm_complete(laravel#app().routes(), a:ctx) | ||
| endif | ||
| endfunction | ||
| | ||
| function! laravel#completion#cm_views(opt, ctx) abort | ||
| function! laravel#completion#cm_views(ctx) abort | ||
| if exists('b:laravel_root') | ||
| call s:cm_complete(laravel#app().templates(), a:opt, a:ctx) | ||
| call s:cm_complete(laravel#app().templates(), a:ctx) | ||
| endif | ||
| endfunction | ||
| | ||
| function! s:cm_complete(candidates, opt, ctx) abort | ||
| function! s:cm_complete(candidates, ctx) abort | ||
| let matches = map(keys(a:candidates), '{"word": v:val, "info": a:candidates[v:val]}') | ||
| call cm#complete(a:opt, a:ctx, a:ctx['startcol'], matches) | ||
| call ncm2#complete(a:ctx, a:ctx['startccol'], matches) | ||
| endfunction | ||
| | ||
| " vim: fdm=marker:sw=2:sts=2:et |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| | @@ -101,23 +101,25 @@ augroup laravel_completion | |||||
| autocmd! | ||||||
| " Set up nvim-completion-manager sources | ||||||
| " :help NCM-source-examples | ||||||
| autocmd User CmSetup call cm#register_source({'name' : 'Laravel Route', | ||||||
| \ 'abbreviation': 'Route', | ||||||
| au User Ncm2Plugin call ncm2#register_source({ | ||||||
| \ 'name' : 'Laravel Route', | ||||||
noahfrederick marked this conversation as resolved. Outdated Show resolved Hide resolved | ||||||
| \ 'name' : 'Laravel Route', | |
| \ 'name': 'Laravel Route', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| \ 'scope': ['php','blade'], | |
| \ 'scope': ['php', 'blade'], |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| \ 'name' : 'Laravel View', | |
| \ 'name': 'Laravel View', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| \ 'scope': ['php','blade'], | |
| \ 'scope': ['php', 'blade'], |
Uh oh!
There was an error while loading. Please reload this page.