Skip to content

Commit 8199954

Browse files
Crypto-Spartanrexfordessilfie
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 5c0e8c8 commit 8199954

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ vim.opt.cursorline = true
157157
-- Minimal number of screen lines to keep above and below the cursor.
158158
vim.opt.scrolloff = 10
159159

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

0 commit comments

Comments
 (0)