main
Alpha Chen 1 month ago
parent 7759036795
commit 79d2db46a3
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -201,6 +201,12 @@
(let [{: setup} (require :ibl)] (setup))
;; peekaboo
; there's probably a better way to make this function accessible
; from lua without putting it in another file to be required...
(set vim.g.peekaboo_window "lua require('peekaboo')()")
;;; generate help files
;; Load all plugins now.

@ -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)))

4
.gitmodules vendored

@ -155,3 +155,7 @@
path = .local/share/nvim/site/pack/alpha/start/dispatch
url = https://github.com/tpope/vim-dispatch.git
branch = master
[submodule "peekaboo"]
path = .local/share/nvim/site/pack/alpha/start/peekaboo
url = https://github.com/junegunn/vim-peekaboo.git
branch = master

@ -0,0 +1 @@
Subproject commit cc4469c204099c73dd7534531fa8ba271f704831
Loading…
Cancel
Save