Skip to content

Commit 48a5093

Browse files
Crypto-SpartanDavidSalazar123
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 9929e8a commit 48a5093

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
@@ -77,6 +77,11 @@ vim.opt.cursorline = true
7777
-- Minimal number of screen lines to keep above and below the cursor.
7878
vim.opt.scrolloff = 10
7979

80+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
81+
-- instead raise a dialog asking if you wish to save the current file(s)
82+
-- See `:help 'confirm'`
83+
vim.opt.confirm = true
84+
8085
-- [[ Basic Keymaps ]]
8186
-- See `:help vim.keymap.set()`
8287

0 commit comments

Comments
 (0)