Skip to content
Discussion options

You must be logged in to vote

I custom my own, it's not hard:

require('fzf-lua').setup { 'hide' }

vim.ui.select = function(ui_items, ui_opts, ui_on_choice)
  ui_on_choice = ui_on_choice or function() end
  ui_opts = ui_opts or {}
  local opts = ui_opts.fzf_lua_opts or {}
  local contents
  local title = ('[%s]'):format(ui_opts.prompt or 'Select')
  local default = {
    winopts = function()
      return {
        relative = 'cursor',
        title = title,
        row = 0.5,
        height = not opts.preview and math.min(math.max(#ui_items + 1, 2), 20) or nil,
      }
    end,
    query = ui_opts.default,
    actions = {
      ['enter'] = {
        fn = function(sel)
          local n = #sel
          if n == 0 then

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nenahp
Comment options

@proxima1998
Comment options

@nenahp
Comment options

@nenahp
Comment options

@proxima1998
Comment options

Answer selected by proxima1998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants