an autocmd can be used for formatoptions and avoid using bw, read the convo at https://github.com/NvChad/NvChad/commit/39c42ca2bfb2ce7e2858de959f3b0f19681eea8d#r82388570
This commit is contained in:
siduck
2022-08-28 09:14:09 +05:30
parent 696559863b
commit bf827e0ebd
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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