You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be great if I could define a defun to control the auto-expansion for files in lsp-xref; ie, if there are only 20 refs, I want every file expanded, but if there are 300 refs I want files collapsed by default.
The text was updated successfully, but these errors were encountered:
What about a function that take a list as parameter, with each element is a cons with the filename and the number of references in that file.
The function should return a list of filename to expand.
Add the variable 'lsp-xref-expand-function' which take the value of a
function.
The function should returns a list of files to expand.
See the variable's docstring for more info.
It'd be great if I could define a defun to control the auto-expansion for files in lsp-xref; ie, if there are only 20 refs, I want every file expanded, but if there are 300 refs I want files collapsed by default.
The text was updated successfully, but these errors were encountered: