summaryrefslogtreecommitdiffstats
path: root/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/init.lua')
-rw-r--r--nvim/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 5cac3d1..1427b6c 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -156,6 +156,11 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
+-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
+-- instead raise a dialog asking if you wish to save the current file(s)
+-- See `:help 'confirm'`
+vim.opt.confirm = true
+
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`