lexima.vim icon indicating copy to clipboard operation
lexima.vim copied to clipboard

nvim + minpac + ultisnips + ncm

Open hurricanehrndz opened this issue 6 years ago • 0 comments

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?

hurricanehrndz avatar Mar 16 '18 01:03 hurricanehrndz