Skip to content

Commit b9f7683

Browse files
Crypto-Spartan19edwin-jones
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent bd488e6 commit b9f7683

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

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

0 commit comments

Comments
 (0)