return { "dnlhc/glance.nvim", config = function() local glance = require("glance") local actions = glance.actions glance.setup({ border = { enable = true, }, folds = { fold_closed = "", fold_open = "", folded = false, -- Automatically fold list on startup }, mappings = { list = { ["j"] = actions.next, -- Bring the cursor to the next item in the list ["k"] = actions.previous, -- Bring the cursor to the previous item in the list [""] = actions.next, [""] = actions.previous, ["J"] = actions.next_location, ["K"] = actions.previous_location, [""] = actions.preview_scroll_win(5), [""] = actions.preview_scroll_win(-5), ["v"] = actions.jump_vsplit, ["s"] = actions.jump_split, ["t"] = actions.jump_tab, [""] = actions.jump, [""] = actions.enter_win("preview"), -- Focus preview window ["q"] = actions.close, ["Q"] = actions.close, [""] = actions.close, [""] = actions.quickfix, -- [''] = false -- disable a mapping }, preview = { ["Q"] = actions.close, ["q"] = actions.close, ["J"] = actions.next_location, ["K"] = actions.previous_location, [""] = actions.enter_win("list"), -- Focus list window }, }, winbar = { enable = false, }, use_trouble_qf = true, }) end }