techee / geany-lsp

LSP plugin for the Geany editor
GNU General Public License v2.0
19 stars 1 forks source link

Why can't TM symbol tree be used? #35

Closed elextr closed 3 months ago

elextr commented 5 months ago

The first thing in README is to disable TM symbols for languages using LSPs. But IIUC from discussions on https://github.com/geany/geany/pull/3849 the LSP symbol list is no longer used, and certainly leaving TM on works for me with C++ (which is all I tried so far)

techee commented 5 months ago

It does work, I'm just not happy with what I'd introduce to Geany with this patch: https://github.com/geany/geany/pull/3850/commits/98b7000e9c30be4bf2a255e99ad2460c80495ae3

One just has to check all the time whether the TMTag is Geany's TMTag or LSP's TMTag and the result is ugly and I don't know how to do in a non-ugly way.

I'll rather implement a separate symbol tree (and a separate sidebar tab) serving for LSP only.

elextr commented 5 months ago

I'll rather implement a separate symbol tree (and a separate sidebar tab) serving for LSP only.

I don't see any problem with that, in fact I thought LSP could no longer be added to the TM symbols pane specifically because the mixed implementation was so messy.

Edit: and of course TM treats all languages as C, but LSP could be more specific.

techee commented 5 months ago

I don't see any problem with that, in fact I thought LSP could no longer be added to the TM symbols pane specifically because the mixed implementation was so messy.

Well, the separate symbol tree isn't implemented yet - the one you were using before was the Geany's one. I'll try to start working on it soon - should pretty much be copy/paste.

techee commented 3 months ago

To clarify, having a separate symbol tree tab for LSP is possible but not very comfortable when switching among files of multiple languages where some are using LSP and the other use Geany's tag manager symbols - this then means the user has to switch between two symbol tree tabs.

Closing this issue in favor of #39.