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