simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 100 forks source link

feat(providers): jsx provider #144

Closed mxsdev closed 2 years ago

mxsdev commented 2 years ago
Screen Shot 2022-07-14 at 1 45 10 AM

Adds provider for jsx/react with LSP.

Probably a feature to enable/disable specific providers on the config level should be added before this.

Also, the config for LSP symbols is overloaded to add new symbols. This may technically cause incompatibilities with future versions of LSP (and is also a bit lazy) so if you want I could move those symbols to their own config section. But doing that would require some changes to the way symbols are handled. Probably each provider would need a mechanism to define its own symbols.

simrat39 commented 2 years ago

Also, the config for LSP symbols is overloaded to add new symbols. This may technically cause incompatibilities with future versions of LSP (and is also a bit lazy)

Think it's fine for now, I doubt the LSP guys add any more symbols anytime soon, but yeah eventually we should allow providers to add their own icons

Probably a feature to enable/disable specific providers on the config level should be added before this.

Maybe on a filetype level? not sure