We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vim.opt.confirm = true
1 parent 34e7d29 commit 38f4744Copy full SHA for 38f4744
init.lua
@@ -156,6 +156,11 @@ vim.opt.cursorline = true
156
-- Minimal number of screen lines to keep above and below the cursor.
157
vim.opt.scrolloff = 10
158
159
+-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
160
+-- instead raise a dialog asking if you wish to save the current file(s)
161
+-- See `:help 'confirm'`
162
+vim.opt.confirm = true
163
+
164
-- [[ Basic Keymaps ]]
165
-- See `:help vim.keymap.set()`
166
0 commit comments