From 1857651f415e7ebf5c5a7c402b6287434d8681da Mon Sep 17 00:00:00 2001 From: Crypto-Spartan <29098151+Crypto-Spartan@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:24:44 -0400 Subject: feat: add `vim.opt.confirm = true` (#1384) --- nvim/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nvim/init.lua') 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()` -- cgit v1.2.3