Skip to content

Instantly share code, notes, and snippets.

@bijoythomas
Last active January 16, 2018 15:21
Show Gist options
  • Save bijoythomas/30b49d7a8f1e29c2c6de817786b3e5e7 to your computer and use it in GitHub Desktop.
Save bijoythomas/30b49d7a8f1e29c2c6de817786b3e5e7 to your computer and use it in GitHub Desktop.
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