sublimelsp / LSP-clangd

C/C++ support for Sublime's LSP plugin provided through clangd.
MIT License
42 stars 1 forks source link

C++ popup is formatted poorly in Sublime Text #15

Closed ns-osmolsky closed 1 year ago

ns-osmolsky commented 1 year ago

Sublime Text shows a popup that is poorly formatted given the following C++ member variable declaration:

ns_event_t *m_eventMsg{nullptr};

The syntax above is C++11 and is (nearly) equivalent to m_eventMsg = nullptr;. Sublime shows that initialization but with extra line breaks… it thinks that it’s a block.

78c18219e01e19756deb0c9f165167b7f0348c81

I think this data comes from clangd via LSP.

predragnikolic commented 1 year ago

Yes, that data is coming from the server(clangd).

Feel free to open an issue at clangd, I will choose this, because we cannot do anything regarding that on the client(LSP-clangd).