blines: expose multi-select in config options

main
bhagwan 2 years ago
parent 782abfd69c
commit 0e775b075b

@ -658,6 +658,8 @@ require'fzf-lua'.setup {
['--delimiter'] = "'[\\]:]'",
["--with-nth"] = '2..',
["--tiebreak"] = 'index',
-- disable multi-select, set to false to disable
["--no-multi"] = '',
},
-- actions inherit from 'actions.buffers'
},

@ -703,6 +703,8 @@ Consult the list below for available settings:
['--delimiter'] = "'[\\]:]'",
["--with-nth"] = '2..',
["--tiebreak"] = 'index',
-- disable multi-select, set to false to disable
["--no-multi"] = '',
},
-- actions inherit from 'actions.buffers'
},

@ -375,6 +375,7 @@ M.globals.blines = {
['--delimiter'] = "'[:]'",
["--with-nth"] = '2..',
["--tiebreak"] = 'index',
["--no-multi"] = '',
},
_actions = function() return M.globals.actions.buffers end,
}

@ -253,9 +253,6 @@ M.buffer_lines = function(opts)
end
end
-- ignore bufnr when searching
-- disable multi-select
opts.fzf_opts["--no-multi"] = ''
opts.fzf_opts["--preview-window"] = 'hidden:right:0'
if opts.search and #opts.search>0 then

Loading…
Cancel
Save