diff --git a/lua/options.lua b/lua/options.lua index 6fb86c6..8761e31 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -61,4 +61,9 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 +-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`), +-- instead raise a dialog asking if you wish to save the current file(s) +-- See `:help 'confirm'` +vim.opt.confirm = true + -- vim: ts=2 sts=2 sw=2 et