prabirshrestha / asyncomplete-neosnippet.vim Goto Github PK
View Code? Open in Web Editor NEWprovides neosnippet autocomplete for asyncomplete.vim
provides neosnippet autocomplete for asyncomplete.vim
Some of the snippets shown by asyncomplete-neosnippet.vim
in the popup menu cannot be expanded.
This is the screencast for explanation:
In this screencast, I typed a dot, and asyncomplete-neosnippet.vim
opened the popup menu.
I typed <C-k>
to expand selected snippets, but the snippets did not be expanded.
This is the vimrc used in the above screencast:
language C
if !filereadable('plug.vim')
silent !curl --insecure -fLo plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
source plug.vim
call plug#begin('plugged')
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-neosnippet.vim'
call plug#end()
call asyncomplete#register_source(asyncomplete#sources#neosnippet#get_source_options({
\ 'name': 'neosnippet',
\ 'whitelist': ['*'],
\ 'completor': function('asyncomplete#sources#neosnippet#completor'),
\ }))
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
The way to reporoduce:
vim.exe -u vimrc -N
.
<C-n>
<Plug>(nesonippet_expand_or_jump)
by <C-k>
Environment:
Hello, I have been trying to configure asyncomplete so that in the pop up menu <CR>
will expand a snippet if one is selected, otherwise insert the completion. My best attempt has been
imap <expr><CR> pumvisible() ? neosnippet#expandable() ? "\<Plug>(neosnippet_expand)" : "<C-y>" : "\<CR>"
but this seems to always choose a snippet if one is listed.
Hello Sir, I have Installed asyncomplete from this asyncomplete-neosnippet source. I want to use snippets with autocompletion.
I want that asyncomplete only popup snippets words not those words which are exist in the file.
How can I stop asyncomplete to read words from file ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.