Fix vim config
This commit is contained in:
parent
93f1687ce9
commit
b3bf44a483
|
@ -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>
|
||||||
|
|
|
@ -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/nvim-yarp'
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
" Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
endif
|
" endif
|
||||||
let g:deoplete#enable_at_startup = 1
|
" let g:deoplete#enable_at_startup = 1
|
||||||
|
|
||||||
|
" Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
|
||||||
|
|
||||||
|
Plug 'ncm2/ncm2'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
|
||||||
|
Plug 'ncm2/ncm2-bufword'
|
||||||
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue