diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-01-07 09:42:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-07 09:42:17 +0800 |
| commit | e27f7125d66f6026adacbbad00bbf6e66a6ba883 (patch) | |
| tree | eb2a65a2b975f9fcc56e41ee1db6fde66b58d3dd /runtime/lua/vim/_meta/vimfn.lua | |
| parent | 06ff5480ce274daf3b7ad9950a587099200dc8ff (diff) | |
| parent | 8fa4306eb910028ee8df8685ae9b1649608c2608 (diff) | |
| download | rneovim-e27f7125d66f6026adacbbad00bbf6e66a6ba883.tar.gz rneovim-e27f7125d66f6026adacbbad00bbf6e66a6ba883.tar.bz2 rneovim-e27f7125d66f6026adacbbad00bbf6e66a6ba883.zip | |
Merge pull request #31893 from zeertzjq/vim-9.1.0984
vim-patch:9.1.{0984,0991}: getstacktrace(), v:stacktrace
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 6662fca84f..031b109b38 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -3770,6 +3770,20 @@ function vim.fn.getregtype(regname) end --- @return vim.fn.getscriptinfo.ret[] function vim.fn.getscriptinfo(opts) end +--- Returns the current stack trace of Vim scripts. +--- Stack trace is a |List|, of which each item is a |Dictionary| +--- with the following items: +--- funcref The funcref if the stack is at a function, +--- otherwise this item is omitted. +--- event The string of the event description if the +--- stack is at an autocmd event, otherwise this +--- item is omitted. +--- lnum The line number in the script on the stack. +--- filepath The file path of the script on the stack. +--- +--- @return table[] +function vim.fn.getstacktrace() end + --- If {tabnr} is not specified, then information about all the --- tab pages is returned as a |List|. Each List item is a --- |Dictionary|. Otherwise, {tabnr} specifies the tab page |