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
Is your feature request related to a problem? Please describe.
When go through the reference, if I know the name of function in which the reference is used, it would be helpful for me to quickly find out whether it is the one I want to check.
Describe the solution you'd like
I am working on C projects. In cscope way, each reference item has the caller function name showed above. After switching to LSP, I don't find a plugin can do similar thing. It seems that Clangd doesn't support returning such information. Then, I find nvim-treesitter-context is a convenient way to show the function name when the function name is out of window. If it can be applied to preview window, at least I can check the caller function name in preview window.
Describe alternatives you've considered
Previewing the reference items in telescope preview window and scrolling to check the function name.
With trouble.nvim v2, I rely on inactive winbar to show the function name from 'require('nvim-treesitter.statusline').statusline(opts)'. But it doesn't work with V3.
This discussion was converted from issue #469 on June 02, 2024 14:32.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Did you check the docs?
Is your feature request related to a problem? Please describe.
When go through the reference, if I know the name of function in which the reference is used, it would be helpful for me to quickly find out whether it is the one I want to check.
Describe the solution you'd like
I am working on C projects. In cscope way, each reference item has the caller function name showed above. After switching to LSP, I don't find a plugin can do similar thing. It seems that Clangd doesn't support returning such information. Then, I find nvim-treesitter-context is a convenient way to show the function name when the function name is out of window. If it can be applied to preview window, at least I can check the caller function name in preview window.
Describe alternatives you've considered
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions