diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-02 12:00:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 12:00:32 +0200 |
commit | da6a42cdafb812b0a188b8f06cffa9835c19d3fb (patch) | |
tree | 50b179a840c0b629bfc82efc87892e55da847199 /runtime/doc/api.txt | |
parent | d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f (diff) | |
parent | 2a10f64e254375e77e1c5a6aeae3cd65cd122afb (diff) | |
download | rneovim-da6a42cdafb812b0a188b8f06cffa9835c19d3fb.tar.gz rneovim-da6a42cdafb812b0a188b8f06cffa9835c19d3fb.tar.bz2 rneovim-da6a42cdafb812b0a188b8f06cffa9835c19d3fb.zip |
Merge pull request #22778 from luukvbaal/getext
feat(extmarks): extend nvim_buf_get_extmarks()
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r-- | runtime/doc/api.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 844bf772f1..3c3e66dd57 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2546,6 +2546,8 @@ nvim_buf_get_extmark_by_id({buffer}, {ns_id}, {id}, {opts}) • {id} Extmark id • {opts} Optional parameters. Keys: • details: Whether to include the details dict + • hl_name: Whether to include highlight group name instead + of id, true if omitted Return: ~ 0-indexed (row, col) tuple or empty list () if extmark id was absent @@ -2582,7 +2584,8 @@ nvim_buf_get_extmarks({buffer}, {ns_id}, {start}, {end}, {opts}) Parameters: ~ • {buffer} Buffer handle, or 0 for current buffer - • {ns_id} Namespace id from |nvim_create_namespace()| + • {ns_id} Namespace id from |nvim_create_namespace()| or -1 for all + namespaces • {start} Start of range: a 0-indexed (row, col) or valid extmark id (whose position defines the bound). |api-indexing| • {end} End of range (inclusive): a 0-indexed (row, col) or valid @@ -2590,7 +2593,11 @@ nvim_buf_get_extmarks({buffer}, {ns_id}, {start}, {end}, {opts}) |api-indexing| • {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 + • hl_name: Whether to include highlight group name instead + of id, true if omitted + • type: Filter marks by type: "highlight", "sign", + "virt_text" and "virt_lines" Return: ~ List of [extmark_id, row, col] tuples in "traversal order". |