nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.47k stars 288 forks source link

Outline: allow to toggle preview #1335

Open ttytm opened 1 year ago

ttytm commented 1 year ago

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

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

nrob81 commented 11 months ago

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,
        ...
    },
ttytm commented 11 months ago

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?

nrob81 commented 11 months ago

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

ttytm commented 11 months ago

Ok, no worries 👍