mfussenegger / nvim-fzy

Fuzzy picker & vim.ui.select implementation via fzy for neovim
GNU General Public License v3.0
55 stars 4 forks source link

Add opts table #21

Closed gpanders closed 1 year ago

gpanders commented 2 years ago

For now this table contains three user-configurable options:

  1. number_items (default true): Enumerate items in the fzy window when using fzy.pick_one()
  2. popup_opts: A table (or function which returns a table) that is passed to nvim_open_win() to create the popup window
  3. fzy_opts: Additional command line flags passed to the fzy shell command

I understand if you don't want to introduce user configuration, as that naturally increases complexity. I'm happy to maintain my own fork, but I thought I'd propose the PR just in case.

mfussenegger commented 1 year ago

The popup function can be overriden since https://github.com/mfussenegger/nvim-fzy/pull/24 and a there is now also a function that generates the command: https://github.com/mfussenegger/nvim-fzy/pull/39