summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-02 12:09:11 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-02 12:09:11 -0700
commit3876d9c187271309b88128035989714003f676fa (patch)
treedcf8f0d5ec2787cec21053338c99fda9dea8d8ca
parente165f221c8eb4d2a1befc640a378a8d1ab242812 (diff)
Add new rules
-rw-r--r--.config/nvim/init.vim10
1 files changed, 9 insertions, 1 deletions
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:⟩