Skip to content

Commit 90fdf63

Browse files
Crypto-SpartanCamilleMo
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent f5d3552 commit 90fdf63

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

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

0 commit comments

Comments
 (0)