Add back clang for cpp and add format options

This commit is contained in:
Alex D. 2021-03-05 15:03:59 +00:00
parent d2bfbd376a
commit a91a6c4eac
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 2 deletions

4
vimrc
View File

@ -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 filetype plugin indent on
syntax on syntax on
colorscheme delek colorscheme delek
@ -26,7 +26,7 @@ autocmd FileType tex command! Comp execute 'silent !pdflatex %' <bar> redraw!
autocmd FileType less command! Comp execute 'silent !lessc % %:r.css' <bar> redraw! autocmd FileType less command! Comp execute 'silent !lessc % %:r.css' <bar> redraw!
autocmd FileType tex command! Compdoc execute 'silent !pandoc -t docx % -o %:r.docx' <bar> redraw! autocmd FileType tex command! Compdoc execute 'silent !pandoc -t docx % -o %:r.docx' <bar> 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_auto_map = v:true
let g:lsc_enable_autocomplete = v:true let g:lsc_enable_autocomplete = v:true