From 3876d9c187271309b88128035989714003f676fa Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Sat, 2 Jan 2021 12:09:11 -0700 Subject: Add new rules --- .config/nvim/init.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index dbe061d..9b8f1be 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -128,11 +128,19 @@ set showcmd \ set tabstop=4 | \ set softtabstop=4 | \ set shiftwidth=4 | - \ set textwidth=79 | \ set expandtab | + \ set textwidth=79 | \ set fileformat=unix au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ + " Some filetypes that require 2 spaces for tabs. + au BufNewFile,BufRead *.xml,*.html + \ set tabstop=2 | + \ set softtabstop=2 | + \ set shiftwidth=2 | + \ set expandtab | + \ set fileformat=unix + " Listchars set showbreak=↪\ set listchars=eol:↲,nbsp:␣,tab:»\ ,trail:•,precedes:⟨,extends:⟩ -- cgit v1.2.3-54-g00ecf