From 13471905c599326a098f6294c9d8623127ffc553 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 13 May 2020 16:06:00 +0200 Subject: [PATCH] Use complete function in clever tab, disable longest 'cot' and re-enable autocomplete --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 6fb37bc..ff30da1 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,4 @@ -set mouse=a cb=unnamed,unnamedplus wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 bg=dark nu rnu showcmd incsearch listchars=trail:·,tab:\\ ,eol: list cot=menu,longest si sta cpt=".,w,b,i" tf path+=** aw +set mouse=a cb=unnamed,unnamedplus wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 bg=dark nu rnu showcmd incsearch listchars=trail:·,tab:\\ ,eol: list cot=menu si sta cpt=".,w,b,i" tf path+=** aw cfu=path filetype plugin indent on syntax on colorscheme slate @@ -7,7 +7,7 @@ cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! cnoremap i! execute 'silent! write !sudo make install' function! CleverTab() if strpart( getline('.'), col('.')-2, 3) =~ '^\w' - return "\\" + return "\\" else return "\" endif @@ -19,7 +19,7 @@ cnoremap cdoc 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_auto_map = v:true -let g:lsc_enable_autocomplete = v:false +let g:lsc_enable_autocomplete = v:true let g:netrw_banner = 0 let g:netrw_liststile = 3