-- meow.yarn.nvim — interactive, expandable call/type hierarchy TREE (like VS Code's -- Call Hierarchy panel), built on native LSP + nui.nvim. Added 2026-10-23 for reading -- call chains in the TS code-walkthrough prep. Telescope's lsp_*_calls is flat/one-level; -- this one expands recursively, previews code, and lets you drill in / switch direction. -- -- Keys (y = "yarn"): put the cursor on a function, then -- yc callers (who calls this) yC callees (what this calls) -- yt supertypes yT subtypes -- yl re-open last hierarchy -- In the tree: jump, o/za expand, zO/zC expand/collapse all, / filter, back. return { { "retran/meow.yarn.nvim", dependencies = { "MunifTanjim/nui.nvim" }, keys = { { "y", "", desc = "+yarn (hierarchy)" }, { "yc", function() require("meow.yarn").open_tree("call_hierarchy", "callers") end, desc = "Yarn: callers (who calls this)" }, { "yC", function() require("meow.yarn").open_tree("call_hierarchy", "callees") end, desc = "Yarn: callees (what this calls)" }, { "yt", function() require("meow.yarn").open_tree("type_hierarchy", "supertypes") end, desc = "Yarn: supertypes" }, { "yT", function() require("meow.yarn").open_tree("type_hierarchy", "subtypes") end, desc = "Yarn: subtypes" }, { "yl", "(MeowYarnLast)", desc = "Yarn: last hierarchy" }, }, opts = {}, config = function(_, opts) require("meow.yarn").setup(opts) end, }, }