Skip to content

Commit 5be1c24

Browse files
committed
fix(global): do not close UI with empty symbols (closes #2221)
1 parent 19beea2 commit 5be1c24

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

lua/fzf-lua/defaults.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,12 @@ M.defaults.global = vim.tbl_deep_extend("force", M.defaults.files,
382382
return {
383383
{ "files", desc = "Files" },
384384
{ "buffers", desc = "Bufs", prefix = "$" },
385-
doc_sym_supported and { "lsp_document_symbols", desc = "Symbols (buf)", prefix = "@" } or {
385+
doc_sym_supported and {
386+
"lsp_document_symbols",
387+
desc = "Symbols (buf)",
388+
prefix = "@",
389+
opts = { no_autoclose = true }
390+
} or {
386391
"btags",
387392
desc = "Tags (buf)",
388393
prefix = "@",
@@ -391,8 +396,13 @@ M.defaults.global = vim.tbl_deep_extend("force", M.defaults.files,
391396
fn_transform = [[return require("fzf-lua.make_entry").tag]],
392397
}
393398
},
394-
wks_sym_supported and { "lsp_workspace_symbols", desc = "Symbols (project)", prefix = "#" } or
399+
wks_sym_supported and
395400
{
401+
"lsp_workspace_symbols",
402+
desc = "Symbols (project)",
403+
prefix = "#",
404+
opts = { no_autoclose = true }
405+
} or {
396406
"tags",
397407
desc = "Tags (project)",
398408
prefix = "#",

0 commit comments

Comments
 (0)