Skip to content

Commit

Permalink
nvim:load cmp plugins on insert event
Browse files Browse the repository at this point in the history
Signed-off-by: tracyone <tracyone@live.cn>
  • Loading branch information
tracyone committed Dec 10, 2023
1 parent 16e8754 commit 760990e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rc/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ elseif g:complete_plugin_type.cur_val ==# 'nvim-cmp'
\ },
\ }
endfunction
"Important config neovim lsp and cmp when vim enter
call te#feat#register_vim_enter_setting2([function('<SID>enable_nvim_lsp')],
\ ['cmp-nvim-lsp', 'nvim-cmp', 'cmp-path', 'cmp-buffer',
\ 'cmp-nvim-lua', 'cmp-cmdline', 'cmp-nvim-ultisnips', 'cmp-look', 'cmp-calc'])
let g:complete_plugin.name=['cmp-nvim-lsp', 'nvim-cmp', 'cmp-path', 'cmp-buffer',
\ 'cmp-nvim-lua', 'cmp-cmdline', 'cmp-nvim-ultisnips', 'cmp-look', 'cmp-calc']
let g:complete_plugin.enable_func=function('<SID>enable_nvim_lsp')
endif
elseif g:complete_plugin_type.cur_val ==# 'coc.nvim'
if !te#env#Executable('node') || !te#env#SupportAsync()
Expand Down

0 comments on commit 760990e

Please sign in to comment.