Skip to content

Commit 1608b46

Browse files
Crypto-Spartanjulianbopp
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent a06b496 commit 1608b46

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
@@ -175,6 +175,10 @@ vim.opt.expandtab = true
175175
-- set vim-slime target
176176
vim.g.slime_target = 'tmux'
177177
vim.g.slime_python_ipython = 1
178+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
179+
-- instead raise a dialog asking if you wish to save the current file(s)
180+
-- See `:help 'confirm'`
181+
vim.opt.confirm = true
178182

179183
-- [[ Basic Keymaps ]]
180184
-- See `:help vim.keymap.set()`

0 commit comments

Comments
 (0)