From a91a6c4eac9362693d61ab5b6dfbe9a1e79e0046 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 5 Mar 2021 15:03:59 +0000 Subject: [PATCH] Add back clang for cpp and add format options --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 6accb5c..5505eae 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,4 @@ -set mouse=a cb=unnamed,unnamedplus wim=longest,list,full backspace=indent,eol,start cmdheight=1 bg=dark nu rnu incsearch cot=menu si sta cpt=.,w,b,i tf foldmethod=syntax path+=** nocompatible sc nosmd cursorline listchars=trail:·,eol:,tab:\ list directory=$HOME/.vim/swap// shortmess=asTI +set mouse=a cb=unnamed,unnamedplus wim=longest,list,full backspace=indent,eol,start cmdheight=1 bg=dark nu rnu incsearch cot=menu si sta cpt=.,w,b,i tf foldmethod=syntax path+=** nocompatible sc nosmd cursorline listchars=trail:·,eol:,tab:\ list directory=$HOME/.vim/swap// shm=asTIt fo=rnl filetype plugin indent on syntax on colorscheme delek @@ -26,7 +26,7 @@ autocmd FileType tex command! Comp execute 'silent !pdflatex %' redraw! autocmd FileType less command! Comp execute 'silent !lessc % %:r.css' redraw! autocmd FileType tex command! Compdoc execute 'silent !pandoc -t docx % -o %:r.docx' redraw! -let g:lsc_server_commands = {'c': { 'command': 'clangd --completion-style=detailed --suggest-missing-includes --clang-tidy -j=8', 'suppress_stderr': v:true }} +let g:lsc_server_commands = {'cpp': { 'command': 'clangd --completion-style=detailed --suggest-missing-includes --clang-tidy -j=8', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd --completion-style=detailed --suggest-missing-includes --clang-tidy -j=8', 'suppress_stderr': v:true }} let g:lsc_auto_map = v:true let g:lsc_enable_autocomplete = v:true