diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-01-06 16:54:49 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-01-06 16:54:49 +0100 |
| commit | 1c75903bd0b1efed6db8a2769b96e900b2c38494 (patch) | |
| tree | d98a6d424225e2cd8dfb1ff6621983d0096ba8a5 | |
| parent | 81f3e688e42c534903b7f85faad985473f781c23 (diff) | |
Fix ycm plugin signs and closing preview after completion
| -rw-r--r-- | .vimrc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -148,17 +148,12 @@ autocmd BufNewFile,BufRead,BufReadPost *.tsx set syntax=javascript " better tsx autocmd FileType markdown setlocal spell " spell check markdown files autocmd FileType gitcommit setlocal spell " spell check commits autocmd FileType ruby setlocal nospell " disable spell checking for ruby documentation -autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR> -autocmd FileType typescript setlocal completeopt+=preview - -autocmd CompleteDone * pclose " auto-close preview after completion """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => MISC """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "Highlight the 80, 120 columns "============================= highlight ColorColumn ctermbg=235 guibg=#2c2d27 -" let &colorcolumn="80,".join(range(121,999),",") let &colorcolumn="80,".join(range(121,130),",") " let &colorcolumn="80" @@ -168,6 +163,10 @@ let &colorcolumn="80,".join(range(121,130),",") "YouCompleteMe "============= let g:ycm_python_binary_path = '/usr/local/bin/python3' +let g:ycm_auto_hover='' +let g:ycm_enable_diagnostic_signs = 1 +let g:ycm_autoclose_preview_window_after_completion = 1 +let g:ycm_autoclose_preview_window_after_insertion = 1 "polyglot" "============= |
