Closed asknet closed 7 months ago
I haven’t tested, but it’s probably because you’re using a very old backward compatible option preview_opts
that takes precedence over your overrides, change your setup to:
fzf.setup({
winopts = { preview = { hidden = 'hidden' }},
fzf_opts = { ["--layout"] = "default" },
})
Do this and your overrides will work as expected.
Btw I also created a shortened version for vimscript where you can set the key with one string, for example to enable preview (with the setup I provided above):
:FzfLua grep_cword winopts.preview.hidden=nohidden
Thank you for quick response @ibhagwan
After fixing preview_opts
it's working. You are awesome!
Thank you for quick response @ibhagwan After fixing
preview_opts
it's working. You are awesome!
Ty for the kind words @asknet!
Info
nvim --version
: 0.9.1fzf --version
:Description
In my init.lua i disable previewer by default, by setting like below
Now for some custom maps, I want to enable preview and I tried below both options, but it's not working. Appreciate your time and help on this.