Fork me on GitHub
#vim
<
2022-04-12
>
futurile09:04:11

Can I get some help with a vim-iced function for the Clerk library?

futurile09:04:50

Clerk suggests creating a hotkey to evaluate a notebook: https://github.com/nextjournal/clerk

futurile09:04:09

The Vim example it provides is for Conjure. I'm using Vim-iced.

futurile09:04:32

function! ClerkShow()

futurile09:04:33

exe "ConjureEval (nextjournal.clerk/show! \"" . expand("%:p") . "\")"

futurile09:04:33

endfunctiony

futurile09:04:19

I tried: IcedEval (nextjournal.clerk/show! \"" . expand "%:p") . "\")" but I'm not getting anything.

futurile09:04:41

I'm not sure if IcedEval can work this way - as just trying it from the Vim command line is not working.

futurile09:04:01

Or whether it's my general lack of ignorance on Vim exe's and functions

futurile09:04:53

Damm - got it - :exe "IcedEval (clerk/show! \"" . expand("%:p") . "\")"

nice 1
Dumch20:04:31

Wrote a message on how I moved to Fennel lisp for my vim config. May be someone will try it to https://www.reddit.com/r/nvim/comments/u28v8n/one_more_nvim_config_with_fennel_i_am_glad_i/

👍 6
lemuel12:04:01

Thanks for writing this. It’s given me the push to try porting over to fennel

Dumch13:04:33

If you have any questions, ask, may be I will be able to help.

👍 1