Skip to content

Commit 38f4744

Browse files
feat: add vim.opt.confirm = true (#1384)
1 parent 34e7d29 commit 38f4744

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ vim.opt.cursorline = true
156156
-- Minimal number of screen lines to keep above and below the cursor.
157157
vim.opt.scrolloff = 10
158158

159+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
160+
-- instead raise a dialog asking if you wish to save the current file(s)
161+
-- See `:help 'confirm'`
162+
vim.opt.confirm = true
163+
159164
-- [[ Basic Keymaps ]]
160165
-- See `:help vim.keymap.set()`
161166

0 commit comments

Comments
 (0)