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 4ec892e commit 1506b35Copy full SHA for 1506b35
init.lua
@@ -88,6 +88,11 @@ vim.api.nvim_create_autocmd('FileType', {
88
end,
89
})
90
91
+-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
92
+-- instead raise a dialog asking if you wish to save the current file(s)
93
+-- See `:help 'confirm'`
94
+vim.opt.confirm = true
95
+
96
-- [[ Basic Keymaps ]]
97
-- See `:help vim.keymap.set()`
98
0 commit comments