Update init.vim
This commit is contained in:
parent
f1ee5b1aff
commit
7bbf9b8c9b
33
init.vim
33
init.vim
|
@ -3,35 +3,22 @@ set nocompatible
|
|||
|
||||
" PLUGNIS ###########################################################{{{
|
||||
call plug#begin()
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
else
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
endif
|
||||
|
||||
" General plugins
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'https://gitea.tforgione.fr/tforgione/peach.git'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'w0rp/ale'
|
||||
Plug 'tpope/vim-abolish'
|
||||
|
||||
" Language specific plugins
|
||||
|
||||
" C++
|
||||
Plug 'Shougo/deoplete-clangx'
|
||||
|
||||
" Rust
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'racer-rust/vim-racer'
|
||||
Plug 'sebastianmarkow/deoplete-rust'
|
||||
|
||||
" Elm
|
||||
Plug 'ElmCast/elm-vim'
|
||||
Plug 'antew/vim-elm-language-server'
|
||||
|
||||
" Toml
|
||||
Plug 'cespare/vim-toml'
|
||||
|
@ -39,9 +26,6 @@ Plug 'cespare/vim-toml'
|
|||
" Pug
|
||||
Plug 'digitaltoad/vim-pug'
|
||||
|
||||
" Spandex
|
||||
Plug 'rust-spandex/spandex.vim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" Line numbers and syntaxic coloration
|
||||
|
@ -157,20 +141,11 @@ let g:markdown_composer_browser = 'firefox'
|
|||
let g:instant_markdown_autostart = 0
|
||||
" }}}
|
||||
|
||||
" CODE COMPLETION ###################################################{{{
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~ '\s'
|
||||
endfunction
|
||||
|
||||
" Use deoplete
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
autocmd FileType elm call deoplete#custom#buffer_option('auto_complete', v:false)
|
||||
|
||||
" Autoclose preview
|
||||
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
|
||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||
|
||||
" Complete on tab
|
||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
|
||||
" }}}
|
||||
|
||||
" CUSTOM THINGS DEPENDING ON ENV ####################################{{{
|
||||
let g:rustfmt_autosave = 1
|
||||
|
|
Loading…
Reference in New Issue