-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvim.sh
executable file
·39 lines (31 loc) · 827 Bytes
/
vim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DOTFILES_SRC=${DOTFILES_SRC:-~/.dotfiles}
# ensure node is installed
which node || brew install node
# linting
# eslint
which eslint || npm i eslint \
standard \
semistandard \
eslint-plugin-node \
eslint-plugin-import \
eslint-plugin-standard \
eslint-config-standard \
eslint-config-semistandard \
eslint-plugin-promise \
eslint-plugin-react \
eslint-plugin-jest \
typescript \
ts-node \
@types/node \
tslint -g
# cloud formation
which cfn-lint || pip3 install cfn-lint
# dockerfile linting
which hadolint || brew install hadolint
# snippets
ln -sfv ${DOTFILES_SRC}/.vim/snippets ~/.vim
# file types
ln -sfv $DOTFILES_SRC/.vim/ftplugin ~/.vim
# manage my own js snippets
# list of original ones: https://github.com/honza/vim-snippets
rm -rf ~/.vim/bundle/vim-snippets/snippets/javascript/