Skip to content

Commit 085b54f

Browse files
Crypto-Spartannico281
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 69846f8 commit 085b54f

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
@@ -95,6 +95,11 @@ vim.g.have_nerd_font = true
9595
-- [[ Setting options ]]
9696
require 'options'
9797

98+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
99+
-- instead raise a dialog asking if you wish to save the current file(s)
100+
-- See `:help 'confirm'`
101+
vim.opt.confirm = true
102+
98103
-- [[ Basic Keymaps ]]
99104
require 'keymaps'
100105

0 commit comments

Comments
 (0)