Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9c2d70

Browse files
authored
#49: Add function and command for eval (#51)
1 parentf8611b7 commitd9c2d70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎plugin/acid.vim‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ function! AcidSendEval(handler)
4646
callluaeval("require('acid.features')." .a:handler ."(_A[1], _A[2])", [code, ns])
4747
endfunction
4848

49+
function!AcidEval(code)
50+
callluaeval("require('acid.features').eval_print(_A)",a:code)
51+
endfunction
52+
4953
function!AcidJobHandler(id, data, stream)
5054
callluaeval('require("acid.nrepl").handle[_A[1]](_A[2], _A[3])', [a:stream,a:data,a:id])
5155
endfunction
@@ -98,3 +102,4 @@ endif
98102
command! -nargs=? AcidClearVtextluarequire('acid.middlewares.virtualtext').clear(<f-args>)
99103
command! -nargs=* AcidRequireluarequire('acid.features').do_require(<f-args>)
100104
command! -nargs=1 AcidAddRequirecallAcidFnAddRequire("[<args>]")
105+
command! -nargs=* AcidEvalcallAcidEval("<args>")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp