Skip to content

Commit

Permalink
update some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrysteve committed Mar 2, 2022
1 parent 64f3480 commit 7c02fdc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,18 @@ let g:UltiSnipsJumpBackwardTrigger="<c-k>"
" let g:jedi#auto_close_doc = 0 " close preview window after completion
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif

augroup FiletypeGroup
autocmd!
au BufNewFile,BufRead *.jsx set filetype=javascript.jsx
augroup END

let g:ale_linters = {
\ 'jsx': ['eslint'],
\ 'javascript': ['eslint'],
\ 'python': ['flake8'],
\}
" \ 'python': ['flake8', 'mypy'],
let g:ale_fixers = {'python': ['black']}
let g:ale_fixers = {'python': ['black'], 'javascript': ['prettier', 'eslint'], 'jsx': ['prettier', 'eslint']}
let g:airline#extensions#ale#enabled = 1
let g:ale_echo_msg_error_str = 'E'
let g:ale_echo_msg_warning_str = 'W'
Expand Down

0 comments on commit 7c02fdc

Please sign in to comment.