]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp-ale/plugin/lsp_ale.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / vim-lsp-ale / plugin / lsp_ale.vim
1 if (exists('g:loaded_lsp_ale') && g:loaded_lsp_ale) || &cp
2     finish
3 endif
4 let g:loaded_lsp_ale = 1
5
6 let g:lsp_ale_diagnostics_severity = get(g:, 'lsp_ale_diagnostics_severity', 'information')
7 let g:lsp_ale_auto_enable_linter = get(g:, 'lsp_ale_auto_enable_linter', v:true)
8
9 if get(g:, 'lsp_ale_auto_config_vim_lsp', v:true)
10     " Enable diagnostics and disable all functionalities to show error
11     " messages by vim-lsp
12     let g:lsp_diagnostics_enabled = 1
13     let g:lsp_diagnostics_echo_cursor = 0
14     let g:lsp_diagnostics_float_cursor = 0
15     let g:lsp_diagnostics_highlights_enabled = 0
16     let g:lsp_diagnostics_signs_enabled = 0
17     let g:lsp_diagnostics_virtual_text_enabled = 0
18 endif
19 if get(g:, 'lsp_ale_auto_config_ale', v:true)
20     " Disable ALE's LSP integration
21     let g:ale_disable_lsp = 1
22 endif
23
24 augroup plugin-lsp-ale
25     autocmd!
26     autocmd User lsp_setup call lsp#ale#enable()
27     autocmd User ALEWantResults call lsp#ale#on_ale_want_results(g:ale_want_results_buffer)
28 augroup END