nvim: add inital config
This commit is contained in:
parent
616a2fd7a6
commit
c177e07c0e
28
config/nvim/init.vim
Normal file
28
config/nvim/init.vim
Normal file
@ -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 <silent><expr> <TAB>
|
||||||
|
\ pumvisible() ? "\<C-n>" :
|
||||||
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
|
\ deoplete#mappings#manual_complete()
|
||||||
|
function! s:check_back_space() abort "{{{
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
endfunction"}}}
|
Loading…
x
Reference in New Issue
Block a user