Skip to content

Instantly share code, notes, and snippets.

@jitendravyas
Forked from paulmsmith/keymap.cson
Created October 11, 2016 19:00
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 jitendravyas/550c39dde45b920b0fc69fd77df3caef to your computer and use it in GitHub Desktop.
Save jitendravyas/550c39dde45b920b0fc69fd77df3caef to your computer and use it in GitHub Desktop.
emmet + nunjucks in atom with snippets
'atom-text-editor[data-grammar="text html nunjucks"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar="source nunjucks"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
#https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027
'atom-text-editor.autocomplete-active:not([mini])':
'tab': 'autocomplete-plus:confirm'
# Stop emmet from hijacking tab from snippet tab stops
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar="source nunjucks"]:not([mini]), atom-text-editor[data-grammar="text html nunjucks"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])':
'tab': 'snippets:next-tab-stop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment