parent
7759036795
commit
79d2db46a3
@ -0,0 +1,19 @@
|
|||||||
|
(local {: floor} math)
|
||||||
|
(local {: columns : lines} vim.o)
|
||||||
|
(local {:nvim_create_buf nvim-create-buf :nvim_open_win nvim-open-win} vim.api)
|
||||||
|
|
||||||
|
;; https://github.com/junegunn/vim-peekaboo/issues/68/#issuecomment-1013782594
|
||||||
|
(fn []
|
||||||
|
(let [width (floor (* columns 0.8))
|
||||||
|
height (floor (* lines 0.8))
|
||||||
|
row (- (/ (- lines height) 2) 1)
|
||||||
|
col (/ (- columns width) 2)
|
||||||
|
opts {:relative :editor
|
||||||
|
: row
|
||||||
|
: col
|
||||||
|
: width
|
||||||
|
: height
|
||||||
|
:style :minimal
|
||||||
|
:border :rounded}
|
||||||
|
buf (nvim-create-buf false true)]
|
||||||
|
(nvim-open-win buf true opts)))
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit cc4469c204099c73dd7534531fa8ba271f704831
|
Loading…
Reference in new issue