update ALE config

This commit is contained in:
ManjaroOne666 2019-01-18 23:36:04 +00:00
parent 84588b06ca
commit 74cde5f75a
1 changed files with 12 additions and 4 deletions

16
vimrc
View File

@ -181,6 +181,7 @@ if g:vimrc_load_dev_plugins
" #ALE {{{
" https://github.com/w0rp/ale
Plug 'w0rp/ale'
let g:ale_completion_enabled = 1
let g:ale_sign_column_always = 1
let g:ale_open_list = 0
@ -188,14 +189,21 @@ if g:vimrc_load_dev_plugins
" 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': ['eslint'], 'php':['php'], 'python': ['flake8'], 'html':['htmlhint'], 'vue': ['eslint']}
let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['tsserver', 'eslint'], 'json': ['jsonlint'], 'php':['php'], 'python': ['pyls', 'flake8'], 'html':['htmlhint'], 'vue': ['eslint']}
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
let g:ale_fixers = {'javascript': ['eslint'], 'python': ['black'], 'vue': ['eslint']}
let g:ale_fixers = {'javascript': ['eslint'], 'json': ['jq'], 'python': ['black'], 'vue': ['eslint']}
let g:ale_sign_error = 'Α'
let g:ale_sign_warning = 'α'
nmap <space>af <Plug>(ale_fix)
nmap \\ <Plug>(ale_detail)
nmap \f <Plug>(ale_fix)
nmap \r <Plug>(ale_find_references)
nmap \g <Plug>(ale_go_to_definition)
nmap \d <Plug>(ale_documentation)
nmap \h <Plug>(ale_hover)
nmap \n <Plug>(ale_next)
nmap \p <Plug>(ale_previous)
"}}}
" " #coc.nvim{{{
@ -1059,7 +1067,7 @@ set number relativenumber
set hlsearch
" set completeopt=menuone,preview
set completeopt=menuone
set completeopt=menuone,noselect
set nospell
set spelllang=en_gb