lspsaga.nvim icon indicating copy to clipboard operation
lspsaga.nvim copied to clipboard

Outline: allow to toggle preview

Open ttytm opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe.

I couldn't find a way to toggle the preview in the outline.

ttytm avatar Oct 22 '23 18:10 ttytm

I need this too. checked the source and there is a default config for outline.auto_preview here: https://github.com/nvimdev/lspsaga.nvim/blob/8b027966d1d5845831107a2505999d380cb18669/lua/lspsaga/init.lua#L126-L130

@ttytm, you need to configure it:

lvim.plugins = {
    {
        "glepnir/lspsaga.nvim",
        lazy = true,
        branch = "main",
        event = "LspAttach",
        config = function()
            require("lspsaga").setup({
                outline = {
                    auto_preview = false
                }
            })
        end,
        ...
    },

nrob81 avatar Nov 08 '23 14:11 nrob81

Thanks for the response @nrob81. I know about the setting. It's in the docs, also I checked the default config values. Can you tell how to toggle the preview on and off during usage when disabling auto preview?

ttytm avatar Nov 08 '23 16:11 ttytm

sorry i misunderstood the question. i don't know, how to toggle.

nrob81 avatar Nov 08 '23 16:11 nrob81

Ok, no worries 👍

ttytm avatar Nov 08 '23 16:11 ttytm