From a6836fa50374d5a3922c58f9ade49059853fe864 Mon Sep 17 00:00:00 2001 From: theanonymousexyz Date: Sun, 10 Apr 2022 16:57:02 +0200 Subject: [PATCH] Neovim: Indentation settings for specific filetypes --- nvim/.config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index bcb1bb0..0d49999 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -103,10 +103,17 @@ set noshowmode set showtabline=2 set tabstop=4 set shiftwidth=4 +set softtabstop=0 set expandtab syntax on colorscheme onedark +" Indentation settings for specific filetypes +autocmd FileType html setlocal tabstop=2 shiftwidth=2 +autocmd FileType css setlocal tabstop=2 shiftwidth=2 +autocmd FileType scss setlocal tabstop=2 shiftwidth=2 +autocmd FileType svelte setlocal tabstop=2 shiftwidth=2 +autocmd FileType vue setlocal tabstop=2 shiftwidth=2 """ APPEARANCE