mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
docs(api): fix treesitter parsing errors
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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`.
|
||||
|
Reference in New Issue
Block a user