Giter VIP home page Giter VIP logo

Comments (8)

roxma avatar roxma commented on June 14, 2024 2

Ultisnips is kind of heavy and complicated for me.

So I started looking into neosnippet by @Shougo. It's more lightweight and easier to integrate, since it has been integrated in neocomplete already. Although I don't enjoy the display of '<2:foo:>' placeholder. It's simple, and it works well.

Requirement: installation of neosnippet and let g:neosnippet#enable_completed_snippet=1
Here's a screencast for python completion and expansion:

A + sign means the completion item is expandable.

soutput

This feature is still experimental.

Besides, the syntax of neosnippet by @Shougo and snipmate maintained by @garbas seems to be compatible at some level.

I'll look into snipmate as another alternative when I have some free time available.

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024 2

Just take a deeper look into ultisnips, now it works with ultisnips, πŸ˜„

output

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024 2

snipmate is supported now

output

config:

    let g:snips_no_mappings = 1 
    " imap <expr> <c-u> pumvisible() ? "\<c-y>\<Plug>snipMateTrigger" : "\<Plug>snipMateTrigger"
    " wrap the mapping
    imap <expr> <Plug>(snipmate_force_trigger) pumvisible() ? "\<c-y>\<Plug>snipMateTrigger" : "\<Plug>snipMateTrigger"
    " show a list of snippets when no the user has typed nothing
    inoremap <silent> <c-u> <c-r>=cm#sources#snipmate#trigger_or_popup("\<Plug>(snipmate_force_trigger)")<cr>
    vmap <c-u> <Plug>snipMateTrigger
    imap <expr> <c-j> pumvisible() ? "\<c-y>\<Plug>snipMateNextOrTrigger" : "\<Plug>snipMateNextOrTrigger"
    vmap <c-j> <Plug>snipMateNextOrTrigger
    imap <expr> <c-k> pumvisible() ? "\<c-y>\<Plug>snipMateBack" : "\<Plug>snipMateBack"
    vmap <c-k> <Plug>snipMateBack

// cc @ajzafar @garbas

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

Closing this, snipmate support may be implemented in the future. But this is not high priority.

from nvim-completion-manager.

Battleroid avatar Battleroid commented on June 14, 2024

Does anything special need to be done in order to get snippets provided by Ultisnips to expand?

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

@Battleroid

No. This issue is about parameter expansion.

from nvim-completion-manager.

roxma avatar roxma commented on June 14, 2024

@Battleroid
I’m not sure what you need. But this might be useful.
#89

from nvim-completion-manager.

Battleroid avatar Battleroid commented on June 14, 2024

Thank you, I'll poke at it.

from nvim-completion-manager.

Related Issues (20)

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.