doc: remove nvim_buf_get_extmark_by_id limit opt

Passing any key but `details` in the opts results in an error.
This commit is contained in:
Patrice Peterson
2021-01-18 13:32:07 +01:00
parent 1a4d380b5a
commit fe02c65395
2 changed files with 2 additions and 4 deletions

View File

@@ -1937,8 +1937,7 @@ nvim_buf_get_extmark_by_id({buffer}, {ns_id}, {id}, {opts})
{ns_id} Namespace id from |nvim_create_namespace()| {ns_id} Namespace id from |nvim_create_namespace()|
{id} Extmark id {id} Extmark id
{opts} Optional parameters. Keys: {opts} Optional parameters. Keys:
limit: Maximum number of marks to return details: Whether to include the details dict
• details Whether to include the details dict
Return: ~ Return: ~
(row, col) tuple or empty list () if extmark id was absent (row, col) tuple or empty list () if extmark id was absent

View File

@@ -1200,8 +1200,7 @@ static Array extmark_to_array(ExtmarkInfo extmark, bool id, bool add_dict)
/// @param ns_id Namespace id from |nvim_create_namespace()| /// @param ns_id Namespace id from |nvim_create_namespace()|
/// @param id Extmark id /// @param id Extmark id
/// @param opts Optional parameters. Keys: /// @param opts Optional parameters. Keys:
/// - limit: Maximum number of marks to return /// - details: Whether to include the details dict
/// - details Whether to include the details dict
/// @param[out] err Error details, if any /// @param[out] err Error details, if any
/// @return (row, col) tuple or empty list () if extmark id was absent /// @return (row, col) tuple or empty list () if extmark id was absent
ArrayOf(Integer) nvim_buf_get_extmark_by_id(Buffer buffer, Integer ns_id, ArrayOf(Integer) nvim_buf_get_extmark_by_id(Buffer buffer, Integer ns_id,