Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generate ramda.sublime-completions
let R = require('ramda')
let filecontent = R.compose(
JSON.stringify,
R.assoc('scope', 'source.js'),
R.flip(R.assoc('completions'))({}),
R.map(R.converge(R.merge, [R.flip(R.assoc('trigger'))({}), R.flip(R.assoc('content'))({})])),
R.keys
)(R)
// write out contents or copy paste into ramda.sublime-completions under the Packages dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment