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
// This transform converts stuff like: | |
// | |
// import get from 'lodash/get' | |
// const bar = get(foo, 'foo.bar', 'baz') | |
// | |
// to | |
// | |
// import { pathOr } from 'ramda' | |
// const bar = pathOr('baz', ['foo', 'bar'], foo) | |
// |
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
" This can conflict with the default mappings provided by snipmate. | |
" See the after directory in .vim/bundle/snipMate/after | |
function! SuperCleverTab() | |
if strpart(getline('.'), 0, col('.') - 1) =~ '^\s*$' | |
return "\<Tab>" | |
elseif pumvisible() | |
return "\<c-n>" | |
else | |
if &omnifunc != '' | |
return "\<C-X>\<C-O>" |