aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-12-28 14:08:17 +0100
committerChristian Clason <c.clason@uni-graz.at>2023-01-01 15:05:21 +0100
commit9cc37e057a7afa02dcb9f384aa43217d82b9d479 (patch)
tree7bc83b11f7ba8e2e8bbacd1c8725a136f1bc1fa3
parent18c22a6fb4c2526c996452215abd62a6a2abe781 (diff)
downloadrneovim-9cc37e057a7afa02dcb9f384aa43217d82b9d479.tar.gz
rneovim-9cc37e057a7afa02dcb9f384aa43217d82b9d479.tar.bz2
rneovim-9cc37e057a7afa02dcb9f384aa43217d82b9d479.zip
docs(api): fix treesitter parsing errors
-rw-r--r--runtime/doc/api.txt8
-rw-r--r--src/nvim/api/extmark.c4
-rw-r--r--src/nvim/api/win_config.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 26679f0330..32c7ba67a5 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2535,8 +2535,8 @@ nvim_buf_get_extmarks({buffer}, {ns_id}, {start}, {end}, {opts})
Region can be given as (row,col) tuples, or valid extmark ids (whose
positions define the bounds). 0 and -1 are understood as (0,0) and (-1,-1)
respectively, thus the following are equivalent: >lua
- nvim_buf_get_extmarks(0, my_ns, 0, -1, {})
- nvim_buf_get_extmarks(0, my_ns, [0,0], [-1,-1], {})
+ vim.api.nvim_buf_get_extmarks(0, my_ns, 0, -1, {})
+ vim.api.nvim_buf_get_extmarks(0, my_ns, {0,0}, {-1,-1}, {})
<
If `end` is less than `start`, traversal works backwards. (Useful with
@@ -3071,8 +3071,8 @@ nvim_open_win({buffer}, {enter}, {*config}) *nvim_open_win()*
borders but not horizontal ones. By default,
`FloatBorder` highlight is used, which links to
`WinSeparator` when not defined. It could also be
- specified by character: [ {"+", "MyCorner"}, {"x",
- "MyBorder"} ].
+ specified by character: [ ["+", "MyCorner"], ["x",
+ "MyBorder"] ].
• title: Title (optional) in window border, String or list.
List is [text, highlight] tuples. if is string the default
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index f7c6b398d5..992c134a0f 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -256,8 +256,8 @@ ArrayOf(Integer) nvim_buf_get_extmark_by_id(Buffer buffer, Integer ns_id,
/// positions define the bounds). 0 and -1 are understood as (0,0) and (-1,-1)
/// respectively, thus the following are equivalent:
/// <pre>lua
-/// nvim_buf_get_extmarks(0, my_ns, 0, -1, {})
-/// nvim_buf_get_extmarks(0, my_ns, [0,0], [-1,-1], {})
+/// vim.api.nvim_buf_get_extmarks(0, my_ns, 0, -1, {})
+/// vim.api.nvim_buf_get_extmarks(0, my_ns, {0,0}, {-1,-1}, {})
/// </pre>
///
/// If `end` is less than `start`, traversal works backwards. (Useful
diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c
index 828ef2f0eb..56d5f8fb16 100644
--- a/src/nvim/api/win_config.c
+++ b/src/nvim/api/win_config.c
@@ -141,7 +141,7 @@
/// will only make vertical borders but not horizontal ones.
/// By default, `FloatBorder` highlight is used, which links to `WinSeparator`
/// when not defined. It could also be specified by character:
-/// [ {"+", "MyCorner"}, {"x", "MyBorder"} ].
+/// [ ["+", "MyCorner"], ["x", "MyBorder"] ].
/// - title: Title (optional) in window border, String or list.
/// List is [text, highlight] tuples. if is string the default
/// highlight group is `FloatTitle`.