]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ftplugin/cpp.vim
weechat/wee-slack: update submodule
[dotfiles.git] / vim / ftplugin / cpp.vim
index b54cffd5bdb0f8aa8c110b15196b6acf29f95f0d..c76f79b3726bc5b7982675a087507df00eb3e3a3 100644 (file)
@@ -43,12 +43,17 @@ let g:switch_const_definitions =
     \   'const \([[:alnum:]_:<>]\{-}\) &': '\1 '
     \ } ]
 
-nnoremap <buffer> <leader>c :call switch#Switch(g:switch_const_definitions, {})<cr>
+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>
 
+nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR>
+
 " format with =
 call operator#user#define_ex_command('ycmcompleter-format', 'YcmCompleter Format')
 map <buffer> = <Plug>(operator-ycmcompleter-format)