]> git.rmz.io Git - dotfiles.git/commitdiff
vim: update switch#Switch to new API
authorSamir Benmendil <me@rmz.io>
Mon, 1 Jun 2020 15:27:10 +0000 (16:27 +0100)
committerSamir Benmendil <me@rmz.io>
Mon, 1 Jun 2020 15:27:10 +0000 (16:27 +0100)
It now takes a dict.

vim/ftplugin/cpp.vim

index b54cffd5bdb0f8aa8c110b15196b6acf29f95f0d..a3846a831e495e868a061b47d2595e838be6b830 100644 (file)
@@ -43,7 +43,7 @@ let g:switch_const_definitions =
     \   'const \([[:alnum:]_:<>]\{-}\) &': '\1 '
     \ } ]
 
     \   '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>
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 
 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>