debugloop / telescope-undo.nvim

A telescope extension to view and search your undo tree 🌴
MIT License
635 stars 11 forks source link

Requirements to see preview window? #20

Closed femtomc closed 1 year ago

femtomc commented 1 year ago

Hi!

I love the concept behind this package! I added it to my config:

    use({
        "nvim-telescope/telescope.nvim",
        requires = {
            "nvim-lua/plenary.nvim",
            "debugloop/telescope-undo.nvim",
        },
        config = function()
            require("telescope").setup({
                extensions = {
                    undo = {
                        use_delta = false,
                        side_by_side = true,
                        layout_strategy = "vertical",
                        layout_config = {
                            preview_height = 0.8,
                        },
                    },
                },
            })
            require("telescope").load_extension("undo")
        end,
    })

However, when I attempt to browse my undo tree -- I don't get a preview window:

image

I do get a preview window when I use telescope for other things.

Is there some requirement to get a preview window which I might be missing?

debugloop commented 1 year ago

I can't check it out right now, but I'm pretty sure what happens is this: Your config states not to use delta, but to use side_by_side. However, regular diff can't do side_by_side, and I probably forgot to handle that combination of configs. I'll fix this soon and/or introduce a warning for it, but for now you'd need to get rid of the conflicting configs :)

maugusto99 commented 1 year ago

@femtomc it maybe be your screen resolution, try to decrease your terminal font size. It works for me