Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list the inherited attributes #396

Closed
roberbnd opened this issue Apr 9, 2021 · 3 comments
Closed

list the inherited attributes #396

roberbnd opened this issue Apr 9, 2021 · 3 comments

Comments

@roberbnd
Copy link
Contributor

roberbnd commented Apr 9, 2021

I would like to see when I open a class file a section with the methods or a window (because the list is big) showing the inherited attributes/methods with PHP I am using nvim-lua/completion-nvim then if I write $this-> shows all the values but I would like to see it with this plugin.

@liuchengxu
Copy link
Owner

I don't follow, can you rephrase that?

@roberbnd
Copy link
Contributor Author

roberbnd commented Apr 10, 2021

Intellij IDE has these options on 'structure' section
Screen Shot 2021-04-10 at 10 10 56
it's possible to see the inherited attributes and filter other things, I want that, of course it's your time, if you don't want it or you don't have time, Could you guide me to implement?

@liuchengxu
Copy link
Owner

First of all, you have to use LSP or tree-sitter(#395, not yet supported) to understand the semantics as ctags is only regexp based and has a big flaw in tree view rendering(#320), it's not reliable to obtain the info of inherited attributes from ctags. You can see the currently supported executives in https://github.com/liuchengxu/vista.vim/tree/master/autoload/vista/executive. Except ctags, all the other executives are LSP client for retrieving the LSP info, but only the coc executive supports the tree view now.

The basic idea of this plugin is to request the original symbols info from these executives/backends, process this info, and render them in tree view if possible. The tree renderer is in https://github.com/liuchengxu/vista.vim/tree/master/autoload/vista/renderer/hir. You can first take a look how vista.vim records the symbols and then you can filter out the symbols you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants