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 fef428b commit 2a7179eCopy full SHA for 2a7179e
init.lua
@@ -159,6 +159,11 @@ vim.opt.cursorline = true
159
-- Minimal number of screen lines to keep above and below the cursor.
160
vim.opt.scrolloff = 10
161
162
+-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
163
+-- instead raise a dialog asking if you wish to save the current file(s)
164
+-- See `:help 'confirm'`
165
+vim.opt.confirm = true
166
+
167
-- [[ Basic Keymaps ]]
168
-- See `:help vim.keymap.set()`
169
0 commit comments