dotfiles/nvim/coc-languages/javascript.vim

15 lines
483 B
VimL
Raw Normal View History

let g:coc_global_extensions += ['coc-tsserver', 'coc-eslint', 'coc-prettier']
2020-03-25 19:42:39 +00:00
let s:filetypes = ['javascript', 'javascriptreact', 'typescript', 'typescriptreact']
let g:coc_filetypes += s:filetypes
let g:coc_user_config['eslint'] = {
2020-03-25 19:42:39 +00:00
\ 'filetypes': s:filetypes,
\ 'autoFixOnSave': v:true,
\ }
let g:coc_user_config['prettier'] = {
\ 'singleQuote': v:true,
\ 'trailingComma': 'all',
\ 'jsxBracketSameLine': v:true,
\ 'eslintIntegration': v:true,
2019-11-09 20:00:23 +00:00
\ 'disableSuccessMessage': v:true
\ }