From 6acd1a52403c25071328426a8a73437f5e8f38c2 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Tue, 27 Jul 2021 10:50:43 -0400 Subject: [PATCH] Add back python/yaml autoindent --- home/nvim/lua/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/nvim/lua/init.lua b/home/nvim/lua/init.lua index 2c4abfe..2f35c2e 100644 --- a/home/nvim/lua/init.lua +++ b/home/nvim/lua/init.lua @@ -308,10 +308,10 @@ vim.cmd[[au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe " vim.cmd[[vnoremap "hy:%s/h//g]] -- Indent YAML --- au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab +vim.cmd[[au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab]] -- Python indentation --- au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix +vim.cmd[[au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix]] -- Highlight whitespace vim.cmd[[highlight ExtraWhitespace ctermbg=red guibg=red]]