dotfiles/nvim/coc-languages/javascript.vim

14 lines
450 B
VimL
Raw Normal View History

call coc#add_extension('coc-tsserver', 'coc-eslint', 'coc-prettier')
let g:coc_filetypes += ['javascript', 'javascript.jsx', 'typescript', 'typescript.jsx']
call coc#config('eslint', {
2019-11-18 19:47:13 +00:00
\ 'filetypes': ['javascript', 'javascriptreact'],
\ 'autoFixOnSave': v:true,
\ })
call coc#config('prettier', {
\ 'singleQuote': v:true,
\ 'trailingComma': 'all',
\ 'jsxBracketSameLine': v:true,
\ 'eslintIntegration': v:true,
2019-11-09 20:00:23 +00:00
\ 'disableSuccessMessage': v:true
\ })