aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2023-10-01 19:58:16 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2023-10-01 19:58:16 +0000
commitf1b9413acc4248547eb082cf02129f7c739aedb0 (patch)
tree4d18effe42f975a236c516f65974333925237550
parenta86b5c9f76fe038fde613c4f049124c15038ad24 (diff)
downloaddotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar.gz
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar.bz2
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar.lz
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar.xz
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.tar.zst
dotfiles-f1b9413acc4248547eb082cf02129f7c739aedb0.zip
Neovim: Tweaks to indentation settings
-rw-r--r--.config/nvim/lua/general.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/.config/nvim/lua/general.lua b/.config/nvim/lua/general.lua
index 9f52d42..cfe3c9c 100644
--- a/.config/nvim/lua/general.lua
+++ b/.config/nvim/lua/general.lua
@@ -19,16 +19,19 @@ vim.opt.cursorline = true
-- vim.opt.expandtab = true
-- vim.opt.autoindent = true
-vim.cmd [[autocmd FileType typescript setlocal softtabstop=2 expandtab]]
+vim.cmd [[autocmd FileType typescript setlocal shiftwidth=2 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 FileType javascript setlocal shiftwidth=2 softtabstop=2 expandtab]]
+vim.cmd [[autocmd FileType javascriptreact setlocal shiftwidth=2 softtabstop=2 expandtab]]
+vim.cmd [[autocmd FileType css setlocal shiftwidth=2 softtabstop=2 expandtab]]
+vim.cmd [[autocmd FileType scss setlocal shiftwidth=4 softtabstop=4 expandtab]]
+vim.cmd [[autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab]]
+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]]
+vim.cmd [[autocmd FileType markdown setlocal textwidth=72 colorcolumn=72 spell]]
+vim.cmd [[autocmd FileType gitcommit setlocal textwidth=72 colorcolumn=50,72 spell]]
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]]
-vim.cmd [[autocmd FileType markdown setlocal textwidth=72 colorcolumn=72 spell]]
-vim.cmd [[autocmd FileType gitcommit setlocal textwidth=72 colorcolumn=50,72 spell]]
vim.cmd [[filetype indent off]]