Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F99540
integration.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
618 B
Referenced Files
None
Subscribers
None
integration.lua
View Options
vim
.
opt
.
rtp
:
append
(
vim
.
fn
.
getcwd
())
local
ivy
=
require
"ivy"
local
prompt
=
require
"ivy.prompt"
require
"plugin.ivy"
if
#
vim
.
v
.
argv
~=
5
then
print
"[ERROR] Expected 5 arguments"
print
" Usage: nvim -l ./scripts/integration.lua <directory> <search>"
return
end
ivy
.
setup
()
vim
.
fn
.
chdir
(
vim
.
v
.
argv
[
4
])
print
(
"Working in "
..
vim
.
fn
.
getcwd
())
vim
.
cmd
"IvyFd"
for
_
,
value
in
pairs
(
vim
.
split
(
vim
.
v
.
argv
[
5
],
""
))
do
local
start_time
=
os.clock
()
vim
.
ivy
.
input
(
value
)
vim
.
wait
(
0
)
local
running_time
=
os.clock
()
-
start_time
io.stdout
:
write
(
prompt
.
text
()
..
"
\t
"
..
running_time
..
"
\n
"
)
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Apr 4 2026, 8:18 AM (16 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5530
Default Alt Text
integration.lua (618 B)
Attached To
Mode
R1 ivy.nvim
Attached
Detach File
Event Timeline
Log In to Comment