Skip to content

Commit 174013c

Browse files
Crypto-Spartanarkottke
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent d9517d2 commit 174013c

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
@@ -162,6 +162,11 @@ vim.opt.cursorline = true
162162
-- Minimal number of screen lines to keep above and below the cursor.
163163
vim.opt.scrolloff = 10
164164

165+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
166+
-- instead raise a dialog asking if you wish to save the current file(s)
167+
-- See `:help 'confirm'`
168+
vim.opt.confirm = true
169+
165170
-- [[ Basic Keymaps ]]
166171
-- See `:help vim.keymap.set()`
167172

0 commit comments

Comments
 (0)