Skip to content

A neovim plugin to display call tree of a function using LSP

License

Notifications You must be signed in to change notification settings

prasy-loyola/call-tree.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

call-tree.nvim

A neovim plugin to display call heirarchy of a function using LSPs already attached to the buffer

Features

  • Display call heirarchy of a function as a tree
  • <Tab> to expand and collapse tree
  • <Enter> key to load the file in a different window
  • <Shift-Enter> key to open the file in a different window and move to that window
  • Manually add a function to the call Heirarchy (useful to link event based subscribers/publishers)
  • P to add the copied function function between the current under cursor and it's parent
  • p to add the copied function as incoming call to the current function under cursor
  • Telescope integration
  • Show preview of the call location under the cursor

Install

{
    'prasy-loyola/call-tree.nvim',
    name = 'call-tree',
    event = 'VeryLazy',
    config = function()
        require'call-tree'.setup()
    end,
    dependencies = {
      {
        's1n7ax/nvim-window-picker',
        name = 'window-picker',
        version = '2.*',
      },
    },

}

References

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#callHierarchyIncomingCall

About

A neovim plugin to display call tree of a function using LSP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published