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

Distinguish between public and private function display in Elixir #187

Open scottming opened 1 year ago

scottming commented 1 year ago

Elixir always returns the function kind, both private and private functions, but their names are not the same.

https://github.com/elixir-lsp/elixir-ls/blob/master/apps/language_server/test/providers/document_symbols_test.exs#L79

I know this is less scalable, so if there is a better way, I hope you guys can give me some direction.

But in general, it works well, and I think it's important to distinguish between public and private functions because we tend to care more about public functions, while private functions contain more implementation details.

image