diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-01 14:58:52 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-05 12:36:47 +0200 |
commit | f0ac91c58b42ed4f38dea7352d89fd39a88142f4 (patch) | |
tree | 743426a5cb8b6c37ae4cb48e7cd8c06a2dcde8d2 /runtime | |
parent | 9e7426718b678e299f3fd03ef94f81b1e2d01ab0 (diff) | |
download | rneovim-f0ac91c58b42ed4f38dea7352d89fd39a88142f4.tar.gz rneovim-f0ac91c58b42ed4f38dea7352d89fd39a88142f4.tar.bz2 rneovim-f0ac91c58b42ed4f38dea7352d89fd39a88142f4.zip |
feat(api): evaluate 'statuscolumn' with nvim_eval_statusline()
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | runtime/doc/news.txt | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 3c3e66dd57..46816856b9 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -773,6 +773,8 @@ nvim_eval_statusline({str}, {*opts}) *nvim_eval_statusline()* • use_tabline: (boolean) Evaluate tabline instead of statusline. When true, {winid} is ignored. Mutually exclusive with {use_winbar}. + • use_statuscol: (boolean) Evaluate statuscolumn instead of + statusline. Return: ~ Dictionary containing statusline information, with these keys: diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index f68edde33b..98f3f3f398 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -73,6 +73,9 @@ NEW FEATURES *news-features* The following new APIs or features were added. +• |nvim_eval_statusline()| supports evaluating the |'statuscolumn'| through a + new `opts` field: `use_statuscol`. + • |nvim_buf_get_extmarks()| now accepts a -1 `ns_id` to request extmarks from all namespaces and adds the namespace id to the details array. Other missing properties have been added to the details array and marks can |