Giter Site home page Giter Site logo

leaderf-snippet's Introduction

Leaderf-snippet

This plugin takes the advantage of the well-known fuzzy finder Leaderf to provide an intuitive way to input snippets:

Snippet names are hard to remember, therefore, I made a Leaderf extension to help input snippets.

Feature

  • Read snippets from SnipMate, UltiSnips, NeoSnippet, or LuaSnip.
  • Display snippet descriptions in the fuzzy finder.
  • Work in both INSERT mode and NORMAL mode.

Installation

" Leaderf-snippet
Plug 'Yggdroot/LeaderF'
Plug 'skywind3000/Leaderf-snippet'

A supported snippet engine, UltiSnips (recommended), SnipMate, or NeoSnippet is required.

Configuration

" maps
inoremap <c-x><c-x> <c-\><c-o>:Leaderf snippet<cr>

" optional: preview
let g:Lf_PreviewResult = get(g:, 'Lf_PreviewResult', {})
let g:Lf_PreviewResult.snippet = 1

Why Leaderf ?

vim-fzf has a Snippets command, but it doesn't provide enough information for each snippet and it can't work correctly in INSERT mode:

Compare to fzf, Leaderf has a NORMAL mode which allows me to browse my snippets more easily like in a normal vim window:

Browse my snippets with full of details. No worry about forgetting snippets.

TODO

  • snipmate
  • ultisnips
  • neosnippet
  • luasnip
  • snipmate preview
  • ultisnips preview
  • neosnippet preview
  • minisnip

Credit

  • Leaderf: An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly.

leaderf-snippet's People

Contributors

skywind3000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lwx5924

leaderf-snippet's Issues

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.