fennel snippet #459
shortcuts
started this conversation in
Show and tell
Replies: 4 comments
-
|
Here's what I ended up with (module plugins.no-neck-pain
{require
{a aniseed.core
r r
md utils.module
utils utils}
require-macros [macros]})
(defn main []
(when-let [nnp (md.prequire :no-neck-pain)]
(nnp.setup
{:width 100})
(augroup :NoNeckPainEnter
{:event :VimEnter
:pattern :*
:callback
(fn []
(if (not= (n buf_get_name 0) "")
(vim.schedule
(fn [] (nnp.start)))))})))
There some macro's I'm using here, but that can be easily stripped out |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks! If you have a bit of time, feel free to open a PR! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Should I add it to the wiki instead? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey! Now that it's available yes please |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
motivated by #18
Beta Was this translation helpful? Give feedback.
All reactions