Open nbfalcon opened 4 years ago
not sure how far this overlaps with the imenu functionality already provided by lsp-mode, but I guess I could just add an optional prefix parameter that will be used to match against returned filenames; that way you could restrict your search to a specific directory, or file, such as the file being visited by the current buffer
Actually, imenu might be good enough. I was thinking more of "textDocument/documentSymbols" wrapped in ivy-read
. I tried implementing that, but failed.
Okay, on second thought this would duplicate the functionality of imenu
, which does exactly what I want. I'm closing this.
VSCode has a feature to specifically search for DocumentSymbols, and we should also have that. I'm reopening because I'm almost done implementing this.
@nbfalcon Did you manage to implement this? For me the imenu is not very good to use.
same for me.. imenu integration in lsp appears to cut symbol description up to certain length..
an example:
thinking about implementing lsp-ivy-document-symbol
in lsp-ivy.el unless I find a way to make lsp-mode not truncate imenu items..
oh, found imenu-max-item-length
, so truncation is not a problem for now
There is a function that searches the entire for symbols, but none to search only the current document.