diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/general.lua | 19 |
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]] |