nvimdev / lspsaga.nvim

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

hierarchical structure on winbar #1312

Closed arafune closed 1 year ago

arafune commented 1 year ago

It may not be an lspsaga issue, but please let me know the hint.

Please see the screenshot.

スクリーンショット 2023-10-07 16 16 38

On the left is the lua file editing and on the right is the snapthot of python file editing. In the lua file, the winbar region shows the current line status as a hierarchical structure. It is very clear. In python, on the other hand, this is not the case. The current line is 141, so I want "TightLayoutEngine >> init" to appear in the winbar area. If it is the lsp issue let me what I should check first?

(I usually use ruff by "python-lsp/python-lsp-ruff").

glepnir commented 1 year ago

I use pyright for test it works fine.

image

arafune commented 1 year ago

Could you test if it works well or not with python-lsp/python-lsp-ruff"? (This may be due to lspsaga's lack of support for python-lsp-ruff.) I have checked it works with pyright, but I don't use it usually.

If python-lsp-ruff does not work well, it may be because lspsaga does not support python-lsp-ruff well enough.

If you find that lspsaga does not work well with "python-lsp/python-lsp-ruff", I would like to use to Barbecue (utilyre/barbecue.nvim) instead in this regard (i.e. symbol_in_winbar = { enable = false }). I have found that barbecue works python-lsp-ruff works as well.