diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 7ebb577..75f3390 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -3,7 +3,7 @@ local M = {} local cmd = vim.cmd M.close_buffer = function(force) - if force or not vim.bo.buflisted then + if force or not vim.bo.buflisted or vim.bo.buftype == 'nofile' then cmd ":bd!" else cmd "bd"