Skip to content

Commit 3ffff7c

Browse files
Crypto-Spartanmonk3yd
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 98b7c93 commit 3ffff7c

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
@@ -152,6 +152,11 @@ vim.opt.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
152152
-- Display lines as one long line
153153
vim.opt.wrap = false;
154154

155+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
156+
-- instead raise a dialog asking if you wish to save the current file(s)
157+
-- See `:help 'confirm'`
158+
vim.opt.confirm = true
159+
155160
-- [[ Basic Keymaps ]]
156161
-- See `:help vim.keymap.set()`
157162

0 commit comments

Comments
 (0)