Use complete function in clever tab, disable longest 'cot' and re-enable autocomplete
This commit is contained in:
parent
327178aea4
commit
13471905c5
6
vimrc
6
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
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
colorscheme slate
|
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>
|
cnoremap i! execute 'silent! write !sudo make install' <CR>
|
||||||
function! CleverTab()
|
function! CleverTab()
|
||||||
if strpart( getline('.'), col('.')-2, 3) =~ '^\w'
|
if strpart( getline('.'), col('.')-2, 3) =~ '^\w'
|
||||||
return "\<C-X>\<C-I>"
|
return "\<C-X>\<C-U>"
|
||||||
else
|
else
|
||||||
return "\<Tab>"
|
return "\<Tab>"
|
||||||
endif
|
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_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_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_banner = 0
|
||||||
let g:netrw_liststile = 3
|
let g:netrw_liststile = 3
|
||||||
|
|
Loading…
Reference in New Issue