Skip to content

Commit

Permalink
fix compaiable issue
Browse files Browse the repository at this point in the history
Signed-off-by: tracyone <[email protected]>
  • Loading branch information
tracyone committed Oct 18, 2021
1 parent 56b683c commit a77dd78
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 6 additions & 5 deletions autoload/te/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ function! te#complete#goto_def(open_type) abort
execute a:open_type
if get(g:, 'feat_enable_complete', 0)
if te#env#SupportYcm() && g:complete_plugin_type.cur_val ==# 'YouCompleteMe'
let l:ret=s:YcmGotoDef()
if &filetype == 'vim'
:call lookup#lookup()
return 0
else
let l:ret=s:YcmGotoDef()
endif
else
let l:ret=te#lsp#gotodefinion()
endif
endif
if l:ret < 0
if &filetype == 'vim'
:call lookup#lookup()
return 0
endif
try
execute 'cs find g '.l:cword
catch /^Vim\%((\a\+)\)\=:E/
Expand Down
2 changes: 1 addition & 1 deletion rc/basic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ EOF
endif
call add(s:sexy_command, ':Defx -toggle -split=vertical -winwidth=50 -direction=topleft')
endif
if te#env#IsNvim() >= 0.5 || has('patch-8.1.2114')
if te#env#IsNvim() >= 0.5 && te#env#IsDisplay()
Plug 'liuchengxu/vista.vim'
function! s:vista_setup()
" How each level is indented and what to prepend.
Expand Down
6 changes: 5 additions & 1 deletion rc/jump.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ if get(g:,'feat_enable_airline') == 0
let g:buftabline_numbers=2
let g:buftabline_show=1
let g:buftabline_indicators=1
let g:buftabline_separators = 1
if te#env#IsDisplay()
let g:buftabline_separators = 1
else
let g:buftabline_separators = 0
endif
endif
" }}}
" Matchit.vim {{{
Expand Down

0 comments on commit a77dd78

Please sign in to comment.