From: Samir Benmendil Date: Sun, 17 Jan 2021 22:41:34 +0000 (+0000) Subject: vim: disable ale for c/cpp files, already using ycm X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/a975a3a64e3e421dbdf28aedf0a99f17c6b81753?ds=inline vim: disable ale for c/cpp files, already using ycm --- diff --git a/vim/ftplugin/c.vim b/vim/ftplugin/c.vim index 4131fa2..5f95ede 100644 --- a/vim/ftplugin/c.vim +++ b/vim/ftplugin/c.vim @@ -9,6 +9,9 @@ augroup fswitch au BufEnter *.c let b:fswitchlocs = 'reg:|source|include/**|' augroup END +" Disable ale as we use ycm +let b:ale_enabled = 0 + nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo nnoremap gD :YcmCompleter GoToReferences diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 78756f4..c76f79b 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -45,6 +45,9 @@ let g:switch_const_definitions = nnoremap c :call switch#Switch({'definitions': g:switch_const_definitions}) +" Disable ale as we use ycm +let b:ale_enabled = 0 + nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo nnoremap gD :YcmCompleter GoToReferences diff --git a/vim/vimrc b/vim/vimrc index 534116d..38e050a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -73,13 +73,6 @@ Plug 'kana/vim-operator-user' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp Plug 'dense-analysis/ale' " {{{2 let g:ale_echo_msg_format = '[%linter%] %code: %%s' -let g:ale_c_parse_compile_commands = 1 -let g:ale_cpp_parse_compile_commands = 1 -" don't use loclist as it's being populated by ycm -" (might want to enable for other filetypes) -let g:ale_set_loclist = 0 -let g:ale_cpp_gcc_options = '' -let g:ale_linters_ignore = { 'cpp': ['clangd', 'clangtidy', 'clang'] } Plug 'git@github.com:/ram-z/vim-orgmode', { 'branch': 'dev' } " {{{2 Plug 'vim-scripts/syntaxrange'