GithubHelp home page GithubHelp logo

coc-fzf's Introduction

fzf ❤️ coc.nvim

Use fzf instead of coc.nvim built-in fuzzy finder.

Rationale

❗coc-fzf only supports nvim❗, PR are welcome if you want to change this.

Inspired by Robert Buhren's functions and coc-denite this plugin aims to use fzf for CocList sources when possible. The goal is to keep the coc.nvim style and leverage your FZF Vim integration, such as layout, shortcuts, options etc.

Commands

Command List
:CocFzfList Equivalent to :CocList
:CocFzfList actions Equivalent to :CocList actions
:CocFzfList commands Equivalent to :CocList commands
:CocFzfList diagnostics Equivalent to :CocList diagnostics. Toggle preview: '?'
:CocFzfList diagnostics --current-buf Equivalent to :CocList diagnostics in the current buffer only
:CocFzfList extensions Equivalent to :CocList extensions
:CocFzfList location Equivalent to :CocList location. Toggle preview: '?'. Requires fzf.vim
:CocFzfList outline Equivalent to :CocList outline, with colors. Requires ctags
:CocFzfList symbols Equivalent to :CocList symbols
:CocFzfList symbols --kind {kind} Equivalent to :CocList symbols -kind {kind}
:CocFzfList services Equivalent to :CocList services
:CocFzfListResume Equivalent to :CocListResume

Options

Option Type Description Default value
g:coc_fzf_preview_toggle_key string Change the key to toggle the preview window '?'
g:coc_fzf_preview string Change the preview window position 'up:50%'
g:coc_fzf_opts array Pass additional parameters to fzf, e.g. ['--layout=reverse'] ['--layout=reverse-list']

Vimrc Example

nnoremap <silent> <space>a  :<C-u>CocFzfList diagnostics<CR>
nnoremap <silent> <space>b  :<C-u>CocFzfList diagnostics --current-buf<CR>
nnoremap <silent> <space>c  :<C-u>CocFzfList commands<CR>
nnoremap <silent> <space>e  :<C-u>CocFzfList extensions<CR>
nnoremap <silent> <space>l  :<C-u>CocFzfList location<CR>
nnoremap <silent> <space>o  :<C-u>CocFzfList outline<CR>
nnoremap <silent> <space>s  :<C-u>CocFzfList symbols<CR>
nnoremap <silent> <space>S  :<C-u>CocFzfList services<CR>
nnoremap <silent> <space>p  :<C-u>CocFzfListResume<CR>

FAQ

Q: How to get the FZF floating window? A: You can look at FZF Vim integration:

let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }

License

MIT

coc-fzf's People

Contributors

antoinemadec avatar felippemr avatar expipiplus1 avatar sethfowler avatar

Watchers

James Cloos avatar  avatar

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.