vim.treesitter.dev.inspect_tree.Opts
@inlinedoc
Fields5
Opts.lang : nil | string
The language of the source buffer. If omitted, the filetype of the source buffer is used.
Opts.bufnr : nil | integer
Buffer to draw the tree into. If omitted, a new buffer is created.
Opts.winid : nil | integer
Window id to display the tree buffer in. If omitted, a new window is created with {command}.
Opts.command : nil | string
Vimscript command to create the window. Default value is "60vnew". Only used when {winid} is nil.
Opts.title : string | fun(bufnr: integer) -> nil | string
Title of the window. If a function, it accepts the buffer number of the source buffer as its only argument and should return a string.