We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
popup.open
1 parent ec2d3ab commit a2f44f9Copy full SHA for a2f44f9
popup/nvim.ts
@@ -82,8 +82,9 @@ function toNvimWinSetConfig(
82
anchor: options.anchor,
83
width: options.width,
84
height: options.height,
85
- col: options.col,
86
- row: options.row,
+ // Neovim col/row is 0-based
+ col: options.col !== undefined ? options.col - 1 : undefined,
87
+ row: options.row !== undefined ? options.row - 1 : undefined,
88
focusable: false, // To keep consistent with the behavior of Vim's `popup_create()`
89
zindex: options.zindex,
90
border: options.border ? toNvimBorder(options.border) : undefined,
0 commit comments