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

nvim + minpac + ultisnips + ncm #74

Open
hurricanehrndz opened this issue Mar 16, 2018 · 0 comments
Open

nvim + minpac + ultisnips + ncm #74

hurricanehrndz opened this issue Mar 16, 2018 · 0 comments

Comments

@hurricanehrndz
Copy link

hurricanehrndz commented Mar 16, 2018

No really reporting an issue, but rather a working config and posing a question.
After looking at issue #65, I tried to tie in all the plugins mentioned above. Unfortunately after trying the suggestions in issue #65, I had little success. Specifically the following line was causing me issues:

let g:lexima_no_default_rules = 1

Anyhow, my resulting config is as follows:
completion.vim

" Lexmia and UltiSnips Completion
imap <expr> <CR>  (pumvisible() ?  "\<c-y>\<Plug>(expand_or_nl)" : lexima#expand('<CR>', 'i'))
imap <expr> <Plug>(expand_or_nl) (cm#completed_is_snippet() ? "\<C-U>" : "\<CR>")
" optional, expand snippts with Ctrl+U
inoremap <silent> <c-u> <c-r>=cm#sources#ultisnips#trigger_or_popup("\<Plug>(ultisnips_expand)")<cr>

You can find it [here.](https://github.com/hurricanehrndz/nvim)
I guess my question is whether you would expect this to work, or is it just a fluke?
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