fix(fzf): fzf.lua compatible hidden scrollbar (#5177)
## Description <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> `--no-scrollbar` option is not supported by [fzf-lua](https://github.com/ibhagwan/fzf-lua) The recommended way is to set `winopts.preview.scrollbar=false` ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
@ -89,9 +89,6 @@ return {
|
|||||||
return {
|
return {
|
||||||
"default-title",
|
"default-title",
|
||||||
fzf_colors = true,
|
fzf_colors = true,
|
||||||
fzf_opts = {
|
|
||||||
["--no-scrollbar"] = true,
|
|
||||||
},
|
|
||||||
defaults = {
|
defaults = {
|
||||||
-- formatter = "path.filename_first",
|
-- formatter = "path.filename_first",
|
||||||
formatter = "path.dirname_first",
|
formatter = "path.dirname_first",
|
||||||
@ -115,6 +112,9 @@ return {
|
|||||||
winopts = {
|
winopts = {
|
||||||
title = " " .. vim.trim((fzf_opts.prompt or "Select"):gsub("%s*:%s*$", "")) .. " ",
|
title = " " .. vim.trim((fzf_opts.prompt or "Select"):gsub("%s*:%s*$", "")) .. " ",
|
||||||
title_pos = "center",
|
title_pos = "center",
|
||||||
|
preview = {
|
||||||
|
scrollbar = false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}, fzf_opts.kind == "codeaction" and {
|
}, fzf_opts.kind == "codeaction" and {
|
||||||
winopts = {
|
winopts = {
|
||||||
|
Reference in New Issue
Block a user