Created
March 21, 2019 23:51
-
-
Save bijoythomas/1b6ef58907ef54c62159c5ebc60e11c7 to your computer and use it in GitHub Desktop.
Sanctuary functions in Sublime autocomplete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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