linrongbin16/fzfx.nvim

Allow selectively disabling header

savchenko opened this issue · 3 comments

Passing --header= to fzf_opts clears the header content, but does not remove the blank line after the prompt:

image

Perhaps allow its removal?

hi @savchenko , would you tell me, which command are your trying to remove --header option?

Global fzf_opts:

fzf_opts = {
  "--no-separator",
  "--ansi",
  "--info=inline",
  "--layout=reverse",
  "--preview-window=hidden",
  "--border=sharp",
  "--height=100%",
  "--bind=ctrl-e:toggle",
  "--bind=ctrl-a:toggle-all",
  "--bind=ctrl-w:toggle-preview",
}

Buffers override:

buffers = {
  fzf_opts = {
    "--info=hidden --header= --padding=1"
  },
  win_opts = {
        relative = 'win',
        height = 10,
        width = 40,
        border = "none",
        zindex = 51,
    }
  }

Setting padding to 0 removes empty line on top, but not at the bottom. Anyway, this is the lowest possible priority issue :)

Closing as nonsensical quibble. Here is the window after #517 and it looks great:

image

Who would complain about the empty line? It totally makes sense.