Made ALE configuration permanent

This commit is contained in:
2026-01-25 08:02:56 +00:00
parent 7d3a2ebe5d
commit bea9b28ac3

View File

@@ -202,8 +202,6 @@ command! YCMOn call s:YCMEnable()
" ALE : Linting " ALE : Linting
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function! s:ALEEnable() abort
silent! packadd ale
let g:ale_linters = { let g:ale_linters = {
\ 'cpp': ['cppcheck'], \ 'cpp': ['cppcheck'],
@@ -248,34 +246,6 @@ function! s:ALEEnable() abort
" Set this. Airline will handle the rest. " Set this. Airline will handle the rest.
let g:airline#extensions#ale#enabled = 1 let g:airline#extensions#ale#enabled = 1
echo "ALE enabled"
endfunction
function! s:ALEDisable() abort
let g:ale_linters = {
\ 'cpp': [''],
\ 'c': [''],
\ }
" General settings
let g:ale_linters_explicit = 0
let g:ale_completion_enabled = 0
let g:ale_echo_msg_format = ''
let g:ale_set_balloons = 0
let g:ale_hover_to_floating_preview = 0
let g:ale_use_global_executables = 0
let g:ale_sign_column_always = 0
let g:ale_disable_lsp = 0
" Set this. Airline will handle the rest.
let g:airline#extensions#ale#enabled = 0
echo "ALE disabled"
endfunction
command! ALEOn call s:ALEEnable()
command! ALEOff call s:ALEDisable()
" COC.nvim " COC.nvim
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++