From 2bc591369a2112ffc22d6d27ac26eba149927a46 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Tue, 26 Sep 2023 02:25:19 +0200 Subject: [PATCH] re-enable smartindent and autoindent --- lua/settings.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/settings.lua b/lua/settings.lua index a683417..a460000 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -23,14 +23,15 @@ utils.opt('o', 'wildmode', 'list:longest') utils.opt('w', 'number', true) utils.opt('o', 'clipboard','unnamed,unnamedplus') --- see smartindent --- vim.opt.autoindent = true +vim.opt.autoindent = true +vim.opt.smartindent = true vim.opt.background = 'light' vim.opt.errorformat:prepend('%f|%l col %c|%m') vim.opt.fileformat = 'unix' vim.opt.pastetoggle = '' vim.opt.textwidth = 79 vim.opt.undofile = true + -- Enable vimrc files per project and disable unsafe commands in project vimrc vim.opt.exrc = true vim.opt.secure = true