summaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
authorCrypto-Spartan <29098151+Crypto-Spartan@users.noreply.github.com>2025-03-12 17:24:44 -0400
committerGitHub <noreply@github.com>2025-03-12 17:24:44 -0400
commit1857651f415e7ebf5c5a7c402b6287434d8681da (patch)
treea6544d7f72157caca169cde64f0ca51e059f7f33 /nvim
parent0b85c2a0e62d21a970347ef4f9be3caa385222a0 (diff)
downloaddots-1857651f415e7ebf5c5a7c402b6287434d8681da.tar.gz
feat: add `vim.opt.confirm = true` (#1384)
Diffstat (limited to 'nvim')
-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()`