Skip to content

Commit 2faf9a7

Browse files
Crypto-Spartanjpoliv
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent ca80e2f commit 2faf9a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ vim.g.have_nerd_font = true
9797
-- [[ Setting options ]]
9898
require 'options'
9999

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

0 commit comments

Comments
 (0)