Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.17 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.17 KB

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