]> git.rmz.io Git - dotfiles.git/commitdiff
vim: disable ale for c/cpp files, already using ycm
authorSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 22:41:34 +0000 (22:41 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Jan 2021 22:41:34 +0000 (22:41 +0000)
vim/ftplugin/c.vim
vim/ftplugin/cpp.vim
vim/vimrc

index 4131fa2e04417de2315be9cf59d1636aa0a41004..5f95ede26da4c2b6be5d48051557de15d5901f4f 100644 (file)
@@ -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 <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
index 78756f47c96629f3d99fd63556fe9e8ba6203f8c..c76f79b3726bc5b7982675a087507df00eb3e3a3 100644 (file)
@@ -45,6 +45,9 @@ let g:switch_const_definitions =
 
 nnoremap <buffer> <leader>c :call switch#Switch({'definitions': g:switch_const_definitions})<cr>
 
+" Disable ale as we use ycm
+let b:ale_enabled = 0
+
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
index 534116d2eac0f115dba86901c76423d61dfce521..38e050a63778f30943c94a34083b50040efc6daf 100644 (file)
--- 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'