Skip to content

Commit 6ee1383

Browse files
Crypto-SpartanKevin Langmade
authored and
Kevin Langmade
committed
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 168e691 commit 6ee1383

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ vim.opt.scrolloff = 10
116116

117117
-- Highlight as you create a search
118118
vim.opt.incsearch = true
119+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
120+
-- instead raise a dialog asking if you wish to save the current file(s)
121+
-- See `:help 'confirm'`
122+
vim.opt.confirm = true
119123

120124
-- [[ Basic Keymaps ]]
121125
-- See `:help vim.keymap.set()`

0 commit comments

Comments
 (0)