rename function
This commit is contained in:
parent
c09138ad02
commit
d76769752b
@ -29,7 +29,7 @@
|
||||
})
|
||||
|
||||
|
||||
(fn completions [term]
|
||||
(fn match-engines [term]
|
||||
(icollect [keyword {: name : function} (pairs searchers)]
|
||||
(if (string.match keyword term)
|
||||
(completion {
|
||||
@ -47,6 +47,6 @@
|
||||
[:buffer
|
||||
#(lume.map (Buffer.match $1) #(completion { :text $1.name :value $1 }))
|
||||
#$1.buffer.name]
|
||||
[:engine completions #:ddg]]
|
||||
[:engine match-engines #:ddg]]
|
||||
(fn [{: term : engine : buffer}]
|
||||
(buffer:visit ((. (. searchers engine) :function) term))))
|
||||
|
Loading…
Reference in New Issue
Block a user