File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 20
20
[cmd-str f]
21
21
(rpc/send-message-async! (->request-msg " vim_command" [cmd-str]) f))
22
22
23
+ (defn get-var-async
24
+ [var-name f]
25
+ (rpc/send-message-async! (->request-msg " vim_get_var" [var-name]) f))
26
+
27
+ (defn get-vvar-async
28
+ [var-name f]
29
+ (rpc/send-message-async! (->request-msg " vim_get_vvar" [var-name]) f))
30
+
31
+ (defn call-function-async
32
+ [f-name args f]
33
+ (rpc/send-message-async! (->request-msg " vim_call_function" [f-name args]) f))
34
+
23
35
(defn get-api-info [] (send-message! " vim_get_api_info" ))
24
36
37
+ (defn get-api-info-async [f]
38
+ (rpc/send-message-async! (->request-msg " vim_get_api_info" []) f))
39
+
25
40
; ; ***** Cursor *****
26
41
27
42
(declare get-current-window-async )
128
143
(defn hsplit! [] (run-command! " new" ))
129
144
(defn vsplit! [] (run-command! " vnew" ))
130
145
146
+ (defn get-current-word-async
147
+ " Get the current word asynchronously."
148
+ [f]
149
+ (call-function-async " expand" [" <cword>" ] f))
150
+
131
151
; ; TODO
132
152
; ; the rest of the functions in (get_api_info)
You can’t perform that action at this time.
0 commit comments