From c177e07c0e075330811d117eb541de9c25bf766a Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Tue, 6 Feb 2018 20:13:03 +0100 Subject: [PATCH] nvim: add inital config --- config/nvim/init.vim | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/nvim/init.vim diff --git a/config/nvim/init.vim b/config/nvim/init.vim new file mode 100644 index 0000000..631d74a --- /dev/null +++ b/config/nvim/init.vim @@ -0,0 +1,28 @@ +" GENERAL SETTINGS +set number + +"### VIM-PLUG SETTINGS +" Neovim ~/.local/share/nvim/plugged +" https://github.com/junegunn/vim-plug +" run :PlugInstall to install them +call plug#begin('~/.local/share/nvim/plugged') + +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } + +Plug 'zchee/deoplete-jedi' + +" Initialize plugin system +call plug#end() + +" PLUGIN SETTINGS +" enable deoplete +let g:deoplete#enable_at_startup = 1 +" tab autocomplete for deoplete +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ deoplete#mappings#manual_complete() +function! s:check_back_space() abort "{{{ + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' +endfunction"}}}