]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: silent GTest mappings + additional mappings
[dotfiles.git] / vim / vimrc
index 656771c84a0c21820fc675837da4ba2f520fba62..ddc53d985af39f0ec88fd3e0930313d9a558fd15 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'
@@ -752,6 +745,7 @@ endfunction
 
 " youcompleteme {{{2
 let g:ycm_clangd_binary_path = 'clangd'   " use clangd in path
+let g:ycm_clangd_args = ['--clang-tidy']
 let g:ycm_extra_conf_vim_data = ['getcwd()']
 let g:ycm_add_preview_to_completeopt = 1
 let g:ycm_complete_in_comments = 1
@@ -766,9 +760,11 @@ nmap ga <Plug>(EasyAlign)
 " vim-gtest {{{2
 let g:gtest#highlight_failing_tests = 0
 
-nnoremap <Leader>tt :GTestRun<CR>
-nnoremap <Leader>ta :GTestCase *<CR>:GTestName *<CR>:GTestRun<CR>
-nnoremap <Leader>tu :GTestRunUnderCursor<CR>
+nnoremap <silent> <Leader>tt :GTestRun<CR>
+nnoremap          <Leader>tc :GTestCase<space>
+nnoremap          <Leader>tn :GTestName<space>
+nnoremap <silent> <Leader>ta :GTestCase *<CR>:GTestName *<CR>:GTestRun<CR>
+nnoremap <silent> <Leader>tu :GTestRunUnderCursor<CR>
 
 " vim-json {{{2
 let g:vim_json_syntax_conceal = 0