parent
71d2859e57
commit
a602651b84
@ -1,19 +0,0 @@
|
|||||||
(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)))
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit cc4469c204099c73dd7534531fa8ba271f704831
|
|
Loading…
Reference in new issue