From cce99c41ffb9a66e7036b857be2a42b5c573da00 Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Tue, 21 Aug 2018 08:21:19 +0200 Subject: Add yaml support --- ftdetect/yaml.vim | 1 + ftplugin/yaml.vim | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 ftdetect/yaml.vim create mode 100644 ftplugin/yaml.vim diff --git a/ftdetect/yaml.vim b/ftdetect/yaml.vim new file mode 100644 index 0000000..ecad6aa --- /dev/null +++ b/ftdetect/yaml.vim @@ -0,0 +1 @@ +autocmd BufNewFile,BufReadPost *.yaml,*.yml setfiletype yaml diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim new file mode 100644 index 0000000..ce67a09 --- /dev/null +++ b/ftplugin/yaml.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'yaml', + \ } + +augroup Prettier + autocmd! + if g:prettier#autoformat + autocmd BufWritePre *.yaml call prettier#Autoformat() + endif +augroup end -- cgit v1.3 From 9e4fccf911d05be0ade529b02a586c90bdbd9304 Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Tue, 21 Aug 2018 08:39:41 +0200 Subject: vim-vint only works with Python 3 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 957cc9c..5cde9c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ --- language: python +python: + - "3.6" dist: precise install: - pip install vim-vint -- cgit v1.3 From 52c02ba251050bb1caeba0284a535545ab541f38 Mon Sep 17 00:00:00 2001 From: Jan Brauer Date: Tue, 21 Aug 2018 08:44:50 +0200 Subject: Remove Ubuntu version deprecated by Travis --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5cde9c9..e700563 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: python python: - "3.6" -dist: precise install: - pip install vim-vint script: -- cgit v1.3