diff options
| author | Crypto-Spartan <29098151+Crypto-Spartan@users.noreply.github.com> | 2025-03-12 17:24:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-12 17:24:44 -0400 |
| commit | 1857651f415e7ebf5c5a7c402b6287434d8681da (patch) | |
| tree | a6544d7f72157caca169cde64f0ca51e059f7f33 /nvim | |
| parent | 0b85c2a0e62d21a970347ef4f9be3caa385222a0 (diff) | |
| download | dots-1857651f415e7ebf5c5a7c402b6287434d8681da.tar.gz | |
feat: add `vim.opt.confirm = true` (#1384)
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 5 |
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()` |