We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vim.opt.confirm = true
1 parent 4c13088 commit 795b56dCopy full SHA for 795b56d
init.lua
@@ -162,6 +162,11 @@ vim.opt.shiftwidth = 2
162
vim.opt.expandtab = true
163
vim.bo.softtabstop = 2
164
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
+
170
-- [[ Basic Keymaps ]]
171
-- See `:help vim.keymap.set()`
172
0 commit comments