Giter Club home page Giter Club logo

asyncomplete-neosnippet.vim's People

Contributors

jsit avatar kg8m avatar prabirshrestha avatar rliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asyncomplete-neosnippet.vim's Issues

Snippets that cannot be expanded are also listed in the popup menu

Some of the snippets shown by asyncomplete-neosnippet.vim in the popup menu cannot be expanded.

This is the screencast for explanation:
not expandable snippets are also listed in the popup
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:

  1. execute vim.exe -u vimrc -N
  2. type a dot .
  3. select an item by <C-n>
  4. execute <Plug>(nesonippet_expand_or_jump) by <C-k>
  5. (the issue occurs; some items will not be expanded)

Environment:

  • OS: Windows 10 64bit
  • Vim: 8.1.1174
  • async.vim: f30145
  • asyncomplete.vim: db0cd
  • asyncomplete-neosnippet.vim: 9d8956

Using the same key to select completion and expand snippet

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.

asyncomplete should popup only snippets

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.