From 74cde5f75a4bfbfacf619f3c1a69d9d1f5023d44 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Fri, 18 Jan 2019 23:36:04 +0000 Subject: [PATCH] update ALE config --- vimrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 364e8ff..a8c75fc 100644 --- a/vimrc +++ b/vimrc @@ -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 af (ale_fix) + nmap \\ (ale_detail) + nmap \f (ale_fix) + nmap \r (ale_find_references) + nmap \g (ale_go_to_definition) + nmap \d (ale_documentation) + nmap \h (ale_hover) + nmap \n (ale_next) + nmap \p (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