mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
20 lines
608 B
VimL
20 lines
608 B
VimL
augroup vimrc-javascript
|
|
autocmd FileType javascript setlocal matchpairs-=<:>
|
|
augroup END
|
|
|
|
if !g:vim_ide | finish | endif
|
|
|
|
call coc#add_extension('coc-tsserver', 'coc-eslint', 'coc-prettier')
|
|
let g:coc_filetypes += ['javascript', 'javascript.jsx', 'typescript', 'typescript.jsx']
|
|
call coc#config('eslint', {
|
|
\ 'filetypes': ['javascript', 'javascriptreact', 'typescript', 'typescriptreact'],
|
|
\ 'autoFixOnSave': v:true,
|
|
\ })
|
|
call coc#config('prettier', {
|
|
\ 'singleQuote': v:true,
|
|
\ 'trailingComma': 'all',
|
|
\ 'jsxBracketSameLine': v:true,
|
|
\ 'eslintIntegration': v:true,
|
|
\ 'disableSuccessMessage': v:true
|
|
\ })
|