aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/general.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/general.lua')
-rw-r--r--.config/nvim/lua/general.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua
index ccf0ee3..9f52d42 100644
--- a/.config/nvim/lua/general.lua
+++ b/.config/nvim/lua/general.lua
@@ -19,10 +19,11 @@ vim.opt.cursorline = true
-- vim.opt.expandtab = true
-- vim.opt.autoindent = true
-vim.cmd [[autocmd FileType typescript setlocal shiftwidth=2 softtabstop=2 expandtab]]
+vim.cmd [[autocmd FileType typescript setlocal softtabstop=2 expandtab]]
vim.cmd [[autocmd FileType typescriptreact setlocal shiftwidth=2 softtabstop=2 expandtab]]
vim.cmd [[autocmd FileType css setlocal shiftwidth=2 softtabstop=2 expandtab]]
vim.cmd [[autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab]]
+vim.cmd [[autocmd BufNew,BufNewFile,BufRead *.cshtml :set filetype=razor]]
vim.cmd [[autocmd FileType json setlocal shiftwidth=2 softtabstop=2 expandtab]]
vim.cmd [[autocmd FileType cs setlocal shiftwidth=4 softtabstop=4 expandtab]]
vim.cmd [[autocmd FileType mail setlocal textwidth=72 colorcolumn=72 spell]]