Skip to content

Commit 84c4fc3

Browse files
committed
Explicitly add vim.opt.confirm = true nvim-lua#1384
1 parent 3070817 commit 84c4fc3

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
@@ -88,3 +88,8 @@ vim.opt.cursorline = true
8888

8989
-- Minimal number of screen lines to keep above and below the cursor.
9090
vim.opt.scrolloff = 10
91+
92+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
93+
-- instead raise a dialog asking if you wish to save the current file(s)
94+
-- See `:help 'confirm'`
95+
vim.opt.confirm = true

0 commit comments

Comments
 (0)