Skip to content

How to disable the serial number in select UI #1678

Answered by zhiim
zhiim asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your answer. It works to remove serial number by setting this

:lua require("fzf-lua").register_ui_select({fzf_opts={["--with-nth"]="2.."}})

By the way, if the serial number is passed to format_item like format_item(i, e), then I can keep the number and format items to aligned.

ui_opts.format_item and ui_opts.format_item(e) or tostring(e)))

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ibhagwan
Comment options

@zhiim
Comment options

Answer selected by zhiim
@ibhagwan
Comment options

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