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 f5d3552 commit 90fdf63Copy full SHA for 90fdf63
init.lua
@@ -160,6 +160,11 @@ vim.opt.cursorline = true
160
-- Minimal number of screen lines to keep above and below the cursor.
161
vim.opt.scrolloff = 100
162
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
+
168
-- [[ Basic Keymaps ]]
169
-- See `:help vim.keymap.set()`
170
0 commit comments