Browse Source

feat: add clear buffers command

master
Tovi Jaeschke-Rogers 3 months ago
parent
commit
8b7b582614
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      .config/nvim/lua/core/commands.lua

+ 4
- 0
.config/nvim/lua/core/commands.lua View File

@ -19,3 +19,7 @@ vim.api.nvim_create_user_command("ToggleDiagnostics", function()
vim.g.diagnostics_enable = true vim.g.diagnostics_enable = true
vim.diagnostic.enable(true) vim.diagnostic.enable(true)
end, {}) end, {})
vim.api.nvim_create_user_command("ClearBuffers", function()
vim.cmd('%bd|e#|bd#')
end, {})

Loading…
Cancel
Save