~kaction/config

de33004900d550d837aac3e4d5e0003908ae8488 — Dmitry Bogatov 2 months ago 23b99bf
neovim: indent python with "yapf" tool
1 files changed, 2 insertions(+), 0 deletions(-)

M universe/neovim/init.vim
M universe/neovim/init.vim => universe/neovim/init.vim +2 -0
@@ 57,7 57,9 @@ let g:timestamp_regexp = '\v\c%(Time-stamp:\s+).*'
let g:timestamp_rep='Time-stamp: <%Y-%m-%d %H:%M:%S dbogatov>'

let g:formatdef_indent = '"indent -linux -psl -bad"'
let g:formatdef_yapf = '"yapf"'
let g:formatters_c = ['indent']
let g:formatters_python = ['yapf']
" Otherwise it does stupid things with regard to git-commit buffers.
let g:autoformat_autoindent = 0
let g:autoformat_retab = 0