Skip to content

Commit 891bdd8

Browse files
committed
Merge 'upstream': feat: add vim.opt.confirm = true
2 parents af749bd + 38f4744 commit 891bdd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/options.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,9 @@ vim.opt.cursorline = true
6161
-- Minimal number of screen lines to keep above and below the cursor.
6262
vim.opt.scrolloff = 10
6363

64+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
65+
-- instead raise a dialog asking if you wish to save the current file(s)
66+
-- See `:help 'confirm'`
67+
vim.opt.confirm = true
68+
6469
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)