diff --git a/src/plugins/lua/meta/texteditor.lua b/src/plugins/lua/meta/texteditor.lua index 8cd4bce5d5e..2bdb5ff89ca 100644 --- a/src/plugins/lua/meta/texteditor.lua +++ b/src/plugins/lua/meta/texteditor.lua @@ -65,7 +65,7 @@ function TextEditor:cursor() end ---Adds a floating widget at the specified position in the text editor. ---The widget will be positioned at the location corresponding to the given position in the ---text document and will be automatically managed to stay pined to that position. ----@param widget Widget The widget to be added as a floating widget. +---@param widget Widget|Layout The widget to be added as a floating widget. ---@param position integer The position in the document where the widget should appear. function TextEditor:addFloatingWidget(widget, position) end