Fork me on GitHub
#editors
<
2016-04-18
>
dominicm11:04:23

snippet ns "Set the namespace. Automatically figures out appropriate ns using fireplace" i
(ns `!v fireplace#ns()`
  $0)
endsnippet
Handy little snippet for vim users in Ultisnips. @juhoteperi You might like this since you removed vim-salve

juhoteperi11:04:14

@dominicm: Hmm, how would I use that?

juhoteperi11:04:53

Looks like it is for ultisnips. I don't use that either 😄

dominicm12:04:48

@juhoteperi: you could ;-) its very lightweight. Great for repetitive structures.

dominicm12:04:35

But I really miss having the namespace auto-inserted by salve. So that snippet handles it for me.

dominicm12:04:45

I might do it with an autocmd at some point, not sure