diff --git a/.config/nvim/lua/core/commands.lua b/.config/nvim/lua/core/commands.lua index eaab2b0..b18e81d 100644 --- a/.config/nvim/lua/core/commands.lua +++ b/.config/nvim/lua/core/commands.lua @@ -19,3 +19,7 @@ vim.api.nvim_create_user_command("ToggleDiagnostics", function() vim.g.diagnostics_enable = true vim.diagnostic.enable(true) end, {}) + +vim.api.nvim_create_user_command("ClearBuffers", function() + vim.cmd('%bd|e#|bd#') +end, {})