Enable autoindent and smartindent for PHP and general use
This change re-enables autoindent and smartindent options in both PHP and general settings to improve code formatting and maintain consistency across file types.
This commit is contained in:
parent
341236833d
commit
e450617eb6
2 changed files with 8 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ vim.opt.tabstop = 4 -- Display tabs as 4 spaces
|
|||
vim.opt.shiftwidth = 4 -- Indent by 4
|
||||
vim.opt.softtabstop = 4 -- Backspace removes 4 spaces
|
||||
vim.opt.expandtab = true -- Use spaces by default (overridden per-filetype)
|
||||
vim.opt.autoindent = true -- Copy indent from current line when starting new line
|
||||
vim.opt.smartindent = true -- Smart autoindenting (C-like programs, PHP, etc.)
|
||||
|
||||
-- Persistent undo
|
||||
vim.opt.undofile = true -- Enable persistent undo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue