From 581a73ce653ef399001016c02e55f8e846210945 Mon Sep 17 00:00:00 2001 From: Nao Ueda Date: Sun, 2 Feb 2020 20:22:14 +0900 Subject: Don't use ale in javascript files. --- _config/200-lsp.vim | 8 +++++--- _config/201-ale.vim | 7 +------ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to '_config') diff --git a/_config/200-lsp.vim b/_config/200-lsp.vim index e7521c8..b44a028 100644 --- a/_config/200-lsp.vim +++ b/_config/200-lsp.vim @@ -2,11 +2,13 @@ if empty(globpath(&rtp, 'autoload/lsp.vim')) finish endif -let g:lsp_diagnostics_enabled = 0 +let g:lsp_diagnostics_enabled = 1 let g:lsp_diagnostics_echo_cursor = 1 let g:lsp_signs_error = {'text': '✗'} -let g:lsp_signs_warning = {'text': '▲'} -let g:lsp_signs_hint = {'text': '! '} " icons require GUI +let g:lsp_signs_warning = {'text': '🐍'} +let g:lsp_signs_hint = {'text': '🦉'} " icons require GUI +let g:lsp_signs_enabled = 1 " enable signs +let g:lsp_diagnostics_echo_cursor = 1 " enable echo under cursor when in normal mode " let g:lsp_ultisnips_integration = 1 " for debug " let g:lsp_log_verbose = 1 diff --git a/_config/201-ale.vim b/_config/201-ale.vim index 8872dd7..2d491f6 100644 --- a/_config/201-ale.vim +++ b/_config/201-ale.vim @@ -7,14 +7,9 @@ let g:ale_sign_error = '✗' highlight link ALEWarningSign String highlight link ALEErrorSign Title -" let g:ale_linter_aliases = {'jsx': ['css', 'javascript']} -" npm install -g eslint eslint-plugin-react -let g:ale_linters = { -\ 'css': [], -\} + let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], -\ 'javascript': ['eslint'], \ 'php': ['php_cs_fixer'], \} -- cgit v1.2.3-54-g00ecf