Skip to content

Commit 8c036c5

Browse files
Crypto-Spartanjimmielyon
authored andcommitted
feat: add vim.opt.confirm = true (nvim-lua#1384)
1 parent 7a7c8d1 commit 8c036c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ vim.opt.cursorline = true
156156
-- Minimal number of screen lines to keep above and below the cursor.
157157
vim.opt.scrolloff = 10
158158

159-
vim.opt.shiftwidth = 4
160-
--vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
159+
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
160+
-- instead raise a dialog asking if you wish to save the current file(s)
161+
-- See `:help 'confirm'`
162+
vim.opt.confirm = true
161163

162164
-- [[ Basic Keymaps ]]
163165
-- See `:help vim.keymap.set()`

0 commit comments

Comments
 (0)