dotfiles/config/nvim/init.vim

41 lines
1002 B
VimL
Raw Normal View History

2018-02-06 20:13:03 +01:00
" GENERAL SETTINGS
2018-02-06 20:54:16 +01:00
" ================
2018-02-06 20:13:03 +01:00
set number
2018-02-06 20:54:16 +01:00
" Highlight Past Column 80
highlight ColorColumn ctermbg=234
execute "set colorcolumn=" . join(range(81,335), ',')
" VIM-PLUG SETTINGS
" =================
2018-02-06 20:13:03 +01:00
" 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'
2018-02-06 20:54:16 +01:00
Plug 'w0rp/ale'
2018-02-06 20:13:03 +01:00
" Initialize plugin system
call plug#end()
" PLUGIN SETTINGS
2018-02-06 20:54:16 +01:00
" ===============
"
2018-02-06 20:13:03 +01:00
" 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"}}}
2018-02-06 20:54:16 +01:00
" enable ale linter whenever available
let g:ale_completion_enabled = 1