From 82ad83f4053adbc59c130180cc1bddae30f63d97 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 15 Feb 2020 02:59:41 +0000 Subject: Adding support for prettier python plugin - updating Dockerfile to include python3 on vim test bed image in order to work with prettier python plugin - prettier python plugin seems to require python3 to be available on the system --- ftplugin/python.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ftplugin/python.vim (limited to 'ftplugin/python.vim') diff --git a/ftplugin/python.vim b/ftplugin/python.vim new file mode 100644 index 0000000..15dccff --- /dev/null +++ b/ftplugin/python.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'python', + \ } + +augroup Prettier + autocmd! + if get(g:, 'prettier#autoformat') + autocmd BufWritePre *.py call prettier#Autoformat() + endif +augroup end -- cgit v1.3