Browse Source

Add cppman

master
Schneider 5 years ago
parent
commit
3868e90ee7
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 2
      init.vim
  2. 3
      vim/ftplugin/cpp.vim

2
init.vim

@ -298,7 +298,7 @@ nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references) nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window " Use K to show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>
nnoremap <silent> H :call <SID>show_documentation()<CR>
function! s:show_documentation() function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0) if (index(['vim','help'], &filetype) >= 0)

3
vim/ftplugin/cpp.vim

@ -5,3 +5,6 @@ let g:ale_cpp_clangtidy_checks = ['*,-fuchsia*']
setlocal shiftwidth=2 setlocal shiftwidth=2
setlocal tabstop=2 setlocal tabstop=2
" Documentation inside vim
autocmd FileType cpp set keywordprg=cppman
Loading…
Cancel
Save