From 550f7bec287fbb4f6659c443931a4643bf80ebc3 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 30 Mar 2019 15:57:51 +0000 Subject: [PATCH] python fixer: black, linter: pyls using flake8 --- vimrc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 4d82498..fd650dc 100644 --- a/vimrc +++ b/vimrc @@ -179,14 +179,25 @@ if g:vimrc_load_dev_plugins let g:ale_sign_column_always = 1 let g:ale_open_list = 0 + let g:ale_fix_on_save = 1 " when coc enabled " let g:ale_linters = {'scss': ['stylelint'], 'javascript': [], 'php':['php'], 'html':['htmlhint'], 'python': [], 'vue': []} + " when coc not enabled - let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['tsserver', 'eslint'], 'json': ['jsonlint'], 'php':['php'], 'python': ['pyls', 'flake8'], 'html':['htmlhint'], 'vue': ['vls', 'eslint']} + let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['tsserver', 'eslint'], 'json': ['jsonlint'], 'php':['php'], 'python': ['pyls'], 'html':['htmlhint'], 'vue': ['vls', 'eslint']} + let g:ale_fixers = {'javascript': ['eslint'], 'json': ['jq'], 'python': ['black'], 'vue': ['eslint']} let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' - let g:ale_fixers = {'javascript': ['eslint'], 'json': ['jq'], 'python': ['black'], 'vue': ['eslint']} + + let g:ale_python_pyls_config = { +\ 'pyls': { +\ 'pycodestyle': { +\ 'enabled': v:false +\ } +\ } +\ } + let g:ale_sign_error = 'Α' let g:ale_sign_warning = 'α'