Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bijoythomas/1b6ef58907ef54c62159c5ebc60e11c7 to your computer and use it in GitHub Desktop.
Save bijoythomas/1b6ef58907ef54c62159c5ebc60e11c7 to your computer and use it in GitHub Desktop.
Sanctuary functions in Sublime autocomplete
let S = require('sanctuary')
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
)(S)
// write out contents or copy paste into sanctuary.sublime-completions under the Packages dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment