Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bx2 committed Apr 14, 2019
1 parent f73f806 commit 9100b62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
config/nvim/plugged/**
config/nvim/autoload/**
config/base16-shell

config/yarn
5 changes: 5 additions & 0 deletions config/nvim/init.vim
Expand Up @@ -83,13 +83,18 @@ let g:ale_linters_explicit=1
let g:ale_set_balloons=1
let g:ale_sign_column_always=1
let g:ale_set_highlights=0
let g:ale_linter_aliases = {'javascript': ['css', 'jsx', 'html', 'typescript', 'yaml']}
let g:ale_fixer_aliases = {'javascript': ['css', 'jsx', 'html', 'typescript', 'yaml']}
let g:ale_linters={
\ 'go': ['gopls', 'golint', 'go vet'],
\ 'python': ['black'],
\ 'javascript': ['prettier'],
\}
let g:ale_fixers={
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'go': ['gofmt', 'goimports'],
\ 'python': ['black'],
\ 'javascript': ['prettier'],
\}

" latex
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Expand Up @@ -87,9 +87,9 @@ if [[ $answer != "n" ]] && [[ $answer != "N" ]] ; then
# terminal colors
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell

# install prettier
# install black
# install checkmake
# js
brew install yarn
yarn global add prettier
fi

# symlink config files
Expand Down

0 comments on commit 9100b62

Please sign in to comment.