Disable automatic formatting, auto compiles on less and add few langservers, change options and colorscheme

This commit is contained in:
Alex 2020-08-27 16:51:00 +02:00
parent 7de2d57f3e
commit 7985cc44f9
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 9 additions and 9 deletions

@ -0,0 +1 @@
Subproject commit 5425563ca401253413578e80010ee91889436c2c

17
vimrc
View File

@ -1,6 +1,7 @@
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 path+=** nocompatible sc nosmd listchars=trail,eol:,tab:\ list
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
filetype plugin indent on
syntax on
colorscheme peachpuff
colorscheme delek
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! <CR>
cnoremap i! execute 'silent! write !sudo make install' <CR>
@ -19,15 +20,13 @@ function! CleverTab()
endfunction
inoremap <Tab> <C-R>=CleverTab()<CR>
autocmd FileType yaml set sw=8 sts=8 expandtab
autocmd FileType tex let b:compkey = "\<C-X>\<C-S>"
autocmd FileType tex set spell
autocmd FileType yaml setlocal sw=8 sts=8 expandtab
autocmd FileType tex command! Comp execute 'silent !rubber -d %' <bar> redraw!
autocmd FileType css 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!
let g:lsc_server_commands = {'java': 'jdtls','html': 'html-languageserver --stdio','less': 'css-languageserver --stdio','css': 'css-languageserver --stdio', 'cpp': { 'command': 'clangd', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd', 'suppress_stderr': v:true }}
let g:lsc_server_commands = {'java': 'jdtls', 'rust': 'rls', 'python': 'pyls','html': 'html-languageserver --stdio','less': 'css-languageserver --stdio','css': 'css-languageserver --stdio', 'cpp': { 'command': 'clangd', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd', 'suppress_stderr': v:true }}
let g:lsc_auto_map = v:true
let g:lsc_enable_autocomplete = v:true
@ -40,5 +39,5 @@ let g:airline_skip_empty_sections = v:true
let g:airline_theme='term'
let g:clang_format#code_style = 'llvm'
let g:clang_format#detect_style_file = 1
let g:clang_format#auto_format = 0
let g:clang_format#detect_style_file = v:true
let g:clang_format#auto_format = v:false