From bf827e0ebd3ef3c75fd0385fe6d176d5f5fdc4c3 Mon Sep 17 00:00:00 2001 From: siduck Date: Sun, 28 Aug 2022 09:14:09 +0530 Subject: [PATCH] fix #1516 #1517 an autocmd can be used for formatoptions and avoid using bw, read the convo at https://github.com/NvChad/NvChad/commit/39c42ca2bfb2ce7e2858de959f3b0f19681eea8d#r82388570 --- lua/core/options.lua | 3 --- lua/core/utils.lua | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index ee86d75..30ec75e 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -55,9 +55,6 @@ opt.updatetime = 250 -- when cursor reaches end/beginning of line opt.whichwrap:append "<>[]hl" --- auto-wrap comments, don't auto insert comment on o/O and enter -opt.formatoptions:remove "cro" - g.mapleader = " " -- disable some builtin vim plugins diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 930f816..b89b9d7 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -9,7 +9,7 @@ M.close_buffer = function(bufnr) else bufnr = bufnr or api.nvim_get_current_buf() require("core.utils").tabuflinePrev() - vim.cmd("silent! confirm bd" .. bufnr) + vim.cmd("confirm bd" .. bufnr) end end