diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-05 15:02:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 15:02:22 +0200 |
commit | 63bffae9e0ba45a6d646f78dadd1e87c8497db78 (patch) | |
tree | 8ffb588cf9ed339c850320af9d160e43f17307b0 /runtime | |
parent | 999cb36c2bb64d1f93bb6f8e607e0eb26eadcd63 (diff) | |
parent | f0ac91c58b42ed4f38dea7352d89fd39a88142f4 (diff) | |
download | rneovim-63bffae9e0ba45a6d646f78dadd1e87c8497db78.tar.gz rneovim-63bffae9e0ba45a6d646f78dadd1e87c8497db78.tar.bz2 rneovim-63bffae9e0ba45a6d646f78dadd1e87c8497db78.zip |
Merge pull request #22859 from luukvbaal/evalstc
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 |