From 8d6d6fddde413a158beaff57e1bba1b1ee7e220b Mon Sep 17 00:00:00 2001 From: loichyan Date: Mon, 24 Apr 2023 14:09:44 +0800 Subject: [PATCH] feat(bufferline): use `mini.bufremove` to close a buffer --- lua/lazyvim/plugins/ui.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 9a6fadbd..f44f0342 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -59,6 +59,10 @@ return { }, opts = { options = { + -- stylua: ignore + close_command = function(n) require("mini.bufremove").delete(n, true) end, + -- stylua: ignore + right_mouse_command = function(n) require("mini.bufremove").delete(n, true) end, diagnostics = "nvim_lsp", always_show_bufferline = false, diagnostics_indicator = function(_, _, diag)