Skip to content

Commit 982dd92

Browse files
Crypto-SpartanShadowmeister
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 31c88cc commit 982dd92

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
@@ -160,6 +160,11 @@ vim.opt.tabstop = 4
160160
vim.opt.shiftwidth = 4
161161
-- vim.opt.expandtab = true
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)