diff --git a/lua/options.lua b/lua/options.lua index a8ad934..26ca92a 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,6 +1,7 @@ local opt = vim.opt local g = vim.g +opt.undofile = true opt.ruler = false opt.hidden = true opt.ignorecase = true @@ -64,5 +65,10 @@ for _, plugin in pairs(disabled_built_ins) do vim.g["loaded_" .. plugin] = 1 end +-- Opening a file from its last left off position +--vim.cmd( +-- [[au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif]] +--) + -- file extension specific tabbing -- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])