-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vim: Minor JS+TS ftplugin fixups. Adds a CA-specific yarn shortcut.
- Loading branch information
1 parent
84f1896
commit def076a
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
" Lint Fix | ||
nnoremap <leader>ll :!eslint --fix %<CR> | ||
" Culture Amp 'frontend-ops'-specific D: | ||
" (frontend-ops has package/* and example/* workspaces set up, so I want to be | ||
" able to quickly run jest and other commands on things within those | ||
" workspaces.) | ||
nnoremap <leader>yy :!yarn <C-R>=expand("%:gs?\\([^/][^/]*/[^/][^/]*\\)/.*?\\1?") . ' '<CR> | ||
nnoremap <leader>yj :!yarn <C-R>=expand("%:gs?\\([^/][^/]*/[^/][^/]*\\)/.*?\\1?") . ' jest %'<CR> | ||
nnoremap <leader>ys :!yarn <C-R>=expand("%:gs?\\([^/][^/]*/[^/][^/]*\\)/.*?\\1?") . ' jest %'<CR><CR> | ||
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