Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04b9a3c

Browse files
committed
fixx
1 parent dddf978 commit 04b9a3c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tools/neovim/init.vim

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,11 @@ map <leader>js :call json_format#parse("l")<cr>
7777
" deoplete
7878
let g:deoplete#enable_at_startup = 1
7979
let g:deoplete#ignore_sources = get(g:, 'deoplete#ignore_sources', {})
80-
call deoplete#custom#source('ultisnips', 'rank', 1000)
8180
set hidden
8281
let g:LanguageClient_diagnosticsEnable = 0
83-
call deoplete#custom#option('sources', {
84-
\ 'sh': []})
8582
let g:LanguageClient_serverCommands = {
8683
\ 'python': ['pyls'],
8784
\ }
88-
8985
" <TAB>: completion.
9086
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
9187

tools/neovim/ubuntu_init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,9 @@ if [ "Y$OPT_DICT" == "Yyes" ];then
299299
END
300300
fi
301301

302+
! ( grep -F "deoplete#custom#source('ultisnips', 'rank', 1000)" ~/.config/nvim/init.vim ) && \
303+
cat >> ~/.config/nvim/init.vim <<END
304+
call deoplete#custom#source('ultisnips', 'rank', 1000)
305+
call deoplete#custom#option('sources', {
306+
\ 'sh': []})
307+
END

0 commit comments

Comments
 (0)