Use complete function in clever tab, disable longest 'cot' and re-enable autocomplete

This commit is contained in:
Alex 2020-05-13 16:06:00 +02:00
parent 327178aea4
commit 13471905c5
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 3 additions and 3 deletions

6
vimrc
View File

@ -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' <bar> edit! <CR>
cnoremap i! execute 'silent! write !sudo make install' <CR>
function! CleverTab()
if strpart( getline('.'), col('.')-2, 3) =~ '^\w'
return "\<C-X>\<C-I>"
return "\<C-X>\<C-U>"
else
return "\<Tab>"
endif
@ -19,7 +19,7 @@ cnoremap cdoc execute 'silent !pandoc -t docx % -o %:r.docx' <bar> redraw! <CR>
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