From 7985cc44f98f4202ef1c125b600526b3f67c7a53 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Aug 2020 16:51:00 +0200 Subject: [PATCH] Disable automatic formatting, auto compiles on less and add few langservers, change options and colorscheme --- pack/themes/start/carbonized | 1 + vimrc | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 160000 pack/themes/start/carbonized diff --git a/pack/themes/start/carbonized b/pack/themes/start/carbonized new file mode 160000 index 0000000..5425563 --- /dev/null +++ b/pack/themes/start/carbonized @@ -0,0 +1 @@ +Subproject commit 5425563ca401253413578e80010ee91889436c2c diff --git a/vimrc b/vimrc index ccdbe74..e056915 100644 --- a/vimrc +++ b/vimrc @@ -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' edit! cnoremap i! execute 'silent! write !sudo make install' @@ -19,15 +20,13 @@ function! CleverTab() endfunction inoremap =CleverTab() -autocmd FileType yaml set sw=8 sts=8 expandtab -autocmd FileType tex let b:compkey = "\\" -autocmd FileType tex set spell +autocmd FileType yaml setlocal sw=8 sts=8 expandtab autocmd FileType tex command! Comp execute 'silent !rubber -d %' redraw! -autocmd FileType css command! Comp execute 'silent !lessc % %:r.css' 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 = {'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