dotfiles/nvim/coc-languages/javascript.vim
2020-03-25 21:42:39 +02:00

14 lines
483 B
VimL

let g:coc_global_extensions += ['coc-tsserver', 'coc-eslint', 'coc-prettier']
let s:filetypes = ['javascript', 'javascriptreact', 'typescript', 'typescriptreact']
let g:coc_filetypes += s:filetypes
let g:coc_user_config['eslint'] = {
\ 'filetypes': s:filetypes,
\ 'autoFixOnSave': v:true,
\ }
let g:coc_user_config['prettier'] = {
\ 'singleQuote': v:true,
\ 'trailingComma': 'all',
\ 'jsxBracketSameLine': v:true,
\ 'eslintIntegration': v:true,
\ 'disableSuccessMessage': v:true
\ }