Fix vim config

This commit is contained in:
Daniel Flanagan 2018-11-01 11:06:55 -05:00
parent 93f1687ce9
commit b3bf44a483
3 changed files with 33 additions and 8 deletions

View file

@ -132,6 +132,8 @@ nnoremap <C-j> :bprevious<CR>
nnoremap <leader>c ciw nnoremap <leader>c ciw
nnoremap <leader>C ciW nnoremap <leader>C ciW
inoremap <silent> <expr> <CR> ncm2_ultisnips#expand_or("\<CR>", 'n')
" bash-like deletion " bash-like deletion
inoremap <C-BS> <C-w> inoremap <C-BS> <C-w>
inoremap <A-BS> <C-w> inoremap <A-BS> <C-w>

View file

@ -79,14 +79,26 @@ let g:ale_completion_enabled = 0
" Plug 'neomake/neomake' " syntax checker " Plug 'neomake/neomake' " syntax checker
if has('nvim') " if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } " Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else " else
Plug 'Shougo/deoplete.nvim' " Plug 'Shougo/deoplete.nvim'
" Plug 'roxma/nvim-yarp'
" Plug 'roxma/vim-hug-neovim-rpc'
" endif
" let g:deoplete#enable_at_startup = 1
" Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif Plug 'ncm2/ncm2-bufword'
let g:deoplete#enable_at_startup = 1 Plug 'ncm2/ncm2-tmux'
Plug 'ncm2/ncm2-path'
Plug 'ncm2/ncm2-ultisnips'
Plug 'SirVer/ultisnips'
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} " fuzzy file finding
Plug 'junegunn/fzf.vim' " helpers for using fzf in vim Plug 'junegunn/fzf.vim' " helpers for using fzf in vim

View file

@ -9,6 +9,17 @@ let g:LanguageClient_serverCommands = {
\ 'python': ['/usr/local/bin/pyls'], \ 'python': ['/usr/local/bin/pyls'],
\ } \ }
" call deoplete#custom#source('javacomplete2', 'max_abbr_width', 1000)
" call deoplete#custom#source('javacomplete2', 'max_kind_width', 1000)
" call deoplete#custom#source('javacomplete2', 'max_menu_width', 1000)
"
" call deoplete#custom#source('rust', 'max_kind_width', 1000)
" call deoplete#custom#source('rust', 'max_abbr_width', 1000)
" call deoplete#custom#source('rust', 'max_menu_width', 1000)
autocmd BufEnter * call ncm2#enable_for_buffer()
set completeopt=noinsert,menuone,noselect
" fix neovim cursor " fix neovim cursor
let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 1 let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 1