Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 3980946

Browse files
Crypto-SpartanVertenz
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 22101e3 commit 3980946

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ vim.opt.spell = false
182182
vim.opt.spelllang = { 'en', 'en_us', 'ru', 'ru_ru' }
183183

184184
vim.g.coc_global_extensions = { 'coc-spell-checker' }
185+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
186+
-- instead raise a dialog asking if you wish to save the current file(s)
187+
-- See `:help 'confirm'`
188+
vim.opt.confirm = true
185189

186190
-- [[ Basic Keymaps ]]
187191
-- See `:help vim.keymap.set()`

0 commit comments

Comments
 (0)