Plug 'https://gitlab.com/dbeniamine/vim-mail'
Plug 'Konfekt/vim-DetectSpellLang', {'do': 'spell'}
+Plug 'dpelle/vim-LanguageTool'
" Disable devicons on linux terminal
if $TERM == 'linux'
let g:detectspelllang_langs = {}
let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT']
+ let g:languagetool_cmd='languagetool'
+
au FileType mail let g:VimMailSpellLangs=['de', 'en']
let g:VimMailContactsProvider=['khard']
let g:VimMailContactsCommands={
" Do not show diagnostic window of vim-clang
let g:clang_diagsopt = ''
+ augroup ClangFormatSettings
+ au!
+ au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala
+ \ vmap <buffer><leader>cf <Plug>(operator-clang-format)
+ au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala
+ \ nmap <buffer><leader>cf :ClangFormat<CR>
+ augroup END
+
endfunction