mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
docs: adjust the generated nvim_open_win docs
The format here is not meant to be ideal, just a backstop until auto-generation has been fixed.
This commit is contained in:
parent
f9d3e69cc9
commit
dec3e027d9
@ -647,30 +647,42 @@ nvim_open_win({buffer}, {enter}, {width}, {height}, {options})
|
||||
{height} height of window (in character cells)
|
||||
{options} dict of options for configuring window
|
||||
positioning accepts the following keys:
|
||||
`relative`: If set, the window becomes a
|
||||
floating window. The window will be placed with
|
||||
row,col coordinates relative one of the
|
||||
following: "editor" the global editor grid
|
||||
"win" a window. Use 'win' option below to
|
||||
specify window id, or current window will be
|
||||
used by default. "cursor" the cursor position
|
||||
in current window. `anchor`: the corner of the
|
||||
float that the row,col position defines "NW"
|
||||
north-west (default) "NE" north-east "SW"
|
||||
south-west "SE" south-east `focusable`: Whether
|
||||
window can be focused by wincmds and mouse
|
||||
events. Defaults to true. Even if set to false,
|
||||
the window can still be entered using
|
||||
|nvim_set_current_win()| API call. `row`: row
|
||||
position. Screen cell height are used as unit.
|
||||
Can be floating point. `col`: column position.
|
||||
Screen cell width is used as unit. Can be
|
||||
floating point. `win`: when using
|
||||
relative='win', window id of the window where
|
||||
the position is defined. `external` GUI should
|
||||
display the window as an external top-level
|
||||
window. Currently accepts no other positioning
|
||||
options together with this.
|
||||
|
||||
`relative`: If set, the window becomes a
|
||||
floating window. The window will be placed with
|
||||
row,col coordinates relative one of the
|
||||
following:
|
||||
"editor" the global editor grid
|
||||
"win" a window. Use 'win' option below to
|
||||
specify window id, or current window will
|
||||
be used by default.
|
||||
"cursor" the cursor position in current window.
|
||||
|
||||
`anchor`: the corner of the float that the row,col
|
||||
position defines
|
||||
"NW" north-west (default)
|
||||
"NE" north-east
|
||||
"SW" south-west
|
||||
"SE" south-east
|
||||
|
||||
`focusable`: Whether window can be focused by wincmds and
|
||||
mouse events. Defaults to true. Even if set to false,
|
||||
the window can still be entered using
|
||||
|nvim_set_current_win()| API call.
|
||||
|
||||
`row`: row position. Screen cell height are used as unit.
|
||||
Can be floating point.
|
||||
|
||||
`col`: column position. Screen cell width is used as
|
||||
unit. Can be floating point.
|
||||
|
||||
`win`: when using relative='win', window id of the window
|
||||
where the position is defined.
|
||||
|
||||
`external`: GUI should display the window as an external
|
||||
top-level window. Currently accepts no other
|
||||
positioning options together with this.
|
||||
|
||||
With editor positioning row=0, col=0 refers to the top-left
|
||||
corner of the screen-grid and row=Lines-1, Columns-1 refers to
|
||||
the bottom-right corner. Floating point values are allowed,
|
||||
|
Loading…
Reference in New Issue
Block a user