This commit is contained in:
ManjaroOne666 2019-08-22 21:11:43 +01:00
parent 52a3eefe20
commit e2517ba58e
3 changed files with 13 additions and 3 deletions

View File

@ -40,3 +40,13 @@ snippet st "setTimeout( ... )"
setTimeout(() => {$0 setTimeout(() => {$0
}, ${1:1000}); }, ${1:1000});
endsnippet endsnippet
snippet jsx "import React ..."
import React from "react"
export default () => (
<${1:div}>
$0
</$1>
)
endsnippet

View File

@ -20,8 +20,8 @@
let g:ale_fix_on_save = 1 let g:ale_fix_on_save = 1
let g:ale_fix_on_save_ignore = { 'vue': ['eslint'] } let g:ale_fix_on_save_ignore = { 'vue': ['eslint'] }
let g:ale_linters = {'scss': [], 'javascript': ['eslint'], 'json': ['jsonlint'], 'php':['php'], 'python': [], 'html':['htmlhint'], 'vue': []} let g:ale_linters = {'scss': [], 'javascript': [], 'json': [], 'php':['php'], 'python': [], 'html':['htmlhint'], 'vue': []}
let g:ale_fixers = {'scss': ['prettier'], 'javascript': ['eslint'], 'json': ['jq'], 'python': [], 'vue': []} let g:ale_fixers = {'scss': ['prettier'], 'javascript': [], 'json': ['jq'], 'python': [], 'vue': []}
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'

2
vimrc
View File

@ -826,7 +826,7 @@ runtime vimrc-overrides
if has('nvim') if has('nvim')
" TODO - try 'coc-tsserver' " TODO - try 'coc-tsserver'
call coc#add_extension( 'coc-vetur', 'coc-python', 'coc-phpls', 'coc-json', 'coc-css', 'coc-eslint', 'coc-vimlsp') call coc#add_extension( 'coc-vetur', 'coc-python', 'coc-phpls', 'coc-json', 'coc-css', 'coc-prettier', 'coc-eslint', 'coc-vimlsp')
endif endif
" vim: set foldmethod=marker: " vim: set foldmethod=marker: