Created
August 20, 2021 15:09
-
-
Save Omochice/9e976353d85fc157c183463dfcdd6911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:dein_dir = expand('~/.vim/dein') | |
let s:dein_repo_dir = g:dein_dir . '/repos/github.com/Shougo/dein.vim' | |
if &runtimepath !~# '/dein.vim' | |
if !isdirectory(s:dein_repo_dir) | |
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir | |
endif | |
execute 'set runtimepath^=' . s:dein_repo_dir | |
endif | |
if dein#load_state(g:dein_dir) | |
call dein#begin(g:dein_dir) | |
call dein#add('mattn/vim-lsp-settings') | |
call dein#add('prabirshrestha/vim-lsp') | |
call dein#add('vim-denops/denops.vim', {'lazy': v:true, 'augroup': 'denops_plugin_internal'}) | |
call dein#add('Shougo/ddc.vim', {'lazy': v:true, 'on_event': 'InsertEnter'}) | |
" call dein#add('Shougo/ddc-around') | |
call dein#add('Shougo/ddc-matcher_head', {'lazy': v:true, 'on_source': 'ddc.vim'}) | |
call dein#add('Shougo/ddc-sorter_rank', {'lazy': v:true, 'on_source': 'ddc.vim'}) | |
call dein#add('Shougo/ddc-converter_remove_overlap', {'lazy': v:true, 'on_source': 'ddc.vim'}) | |
call dein#add('shun/ddc-vim-lsp', {'lazy': v:true, 'on_source': 'ddc.vim'}) | |
call dein#end() | |
call dein#save_state() | |
endif | |
if dein#check_install() | |
call dein#install() | |
endif | |
let s:removed_plugins = dein#check_clean() | |
if len(s:removed_plugins) > 0 | |
call map(s:removed_plugins, "delete(v:val, 'rf')") | |
call dein#recache_runtimepath() | |
endif | |
call ddc#custom#patch_global( | |
\ 'sources', ['ddc-vim-lsp'] | |
\ ) | |
call ddc#custom#patch_global('sourceOptions', { | |
\ '_': { | |
\ 'matchers': ['matcher_head'], | |
\ 'sorters': ['sorter_rank'], | |
\ 'converters': ['converter_remove_overlap'], | |
\ 'minAutoCompleteLength': 2, | |
\ 'smartCase': v:true, | |
\ }, | |
\ 'ddc-vim-lsp': {'mark': 'LSP', | |
\ 'forceCompletionPattern': '\.|:|->|"\w+/'}, | |
\ 'around': {'mark': 'Around'}, | |
\ }) | |
call ddc#enable() | |
set noshowmode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment