From 861b2c7ea8d329ebea34fbd5fddec940f38e011e Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 24 Apr 2017 15:00:40 -0700 Subject: [PATCH] Unbreak YAML files --- dotfiles/config/nvim/init.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 278b771..6562e0a 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -142,6 +142,9 @@ autocmd BufRead,BufNewFile *.rs set filetype=rust " Set column width to 80 only on python files autocmd BufNewFile,BufRead *.py setlocal colorcolumn=80 +" Indent YAML files correctly +au FileType yaml setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2 + " Disable the rust style guide recommended 4 space indentation let g:rust_recommended_style=0