From e2517ba58e0c74614d011e9750c06a058328681c Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Thu, 22 Aug 2019 21:11:43 +0100 Subject: [PATCH] update --- UltiSnips/javascript.snippets | 10 ++++++++++ config/plugins.nvim.vim | 4 ++-- vimrc | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 8851546..cec502d 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -40,3 +40,13 @@ snippet st "setTimeout( ... )" setTimeout(() => {$0 }, ${1:1000}); endsnippet + +snippet jsx "import React ..." +import React from "react" + +export default () => ( + <${1:div}> + $0 + +) +endsnippet diff --git a/config/plugins.nvim.vim b/config/plugins.nvim.vim index c4faa62..3331a19 100644 --- a/config/plugins.nvim.vim +++ b/config/plugins.nvim.vim @@ -20,8 +20,8 @@ let g:ale_fix_on_save = 1 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_fixers = {'scss': ['prettier'], 'javascript': ['eslint'], 'json': ['jq'], 'python': [], 'vue': []} + let g:ale_linters = {'scss': [], 'javascript': [], 'json': [], 'php':['php'], 'python': [], 'html':['htmlhint'], 'vue': []} + let g:ale_fixers = {'scss': ['prettier'], 'javascript': [], 'json': ['jq'], 'python': [], 'vue': []} let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' diff --git a/vimrc b/vimrc index d9b374a..681624c 100644 --- a/vimrc +++ b/vimrc @@ -826,7 +826,7 @@ runtime vimrc-overrides if has('nvim') " 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 " vim: set foldmethod=marker: