-- New empty buffer. remap_normal("n", "enew") -- Close buffer. function _buf_close() pcall(vim.cmd, "w") vim.cmd([[bp|sp|bn|bd!]]) end rekey_normal("x", "lua _buf_close()") -- Close all hidden buffers. rekey_normal("X", "BDelete hidden")