nvimdev / nvimdev/lspsaga.nvim

outline with positon left shows no preview window

Open
#1,471 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
3.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When I set the win_position to left, I can not see the preview window:
image

Enven when I close the nvim-tree, I cannot see the preview window either:
image

Besides, I wonder how to set the windows at the left of the nvim-tree or aside left with current buffer.

Steps to reproduce

lspsaga config:

require('lspsaga').setup({

    outline = {
        win_position = 'left',
        keys = {
            jump = '<cr>',
            toggle_or_jump = 'o',
            quit = { 'q' }
        }
    },
    code_action = {
        keys = {
            quit = { 'q', '<esc>', '<c-n>' },
            exec = '<cr>'
        }
    },
    diagnostic = {
        keys = {
            quit = { 'q', '<esc>', '<c-n>' },
            quit_in_show = { 'q', '<esc>', '<c-n>' },
        }
    },
    hover = {
        open_cmd = '!wslview'
    },
    rename = {
        keys = {
            quit = { '<esc>', '<c-n>' }
        }
    }
})
Expected behavior

The outline window is attached to current buffer at lfet.

Neovim version (nvim -v)

0.10.0

lspsaga commit

6f920cfabddb9b7de5a3a4d0b7cd4f0774ae23e2

Terminal name/version

wt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the provided lspsaga setup, focusing on outline.win_position = 'left' with and without nvim-tree. Start by tracing the outline window entry point and its left-position handling. Done means the outline preview is visible to the left of the current buffer, with behavior matching the expected placement.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.