feat(bufferline): use mini.bufremove to close a buffer

This commit is contained in:
loichyan 2023-04-24 14:09:44 +08:00
parent d18331ca89
commit 8d6d6fddde

View file

@ -59,6 +59,10 @@ return {
}, },
opts = { opts = {
options = { 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", diagnostics = "nvim_lsp",
always_show_bufferline = false, always_show_bufferline = false,
diagnostics_indicator = function(_, _, diag) diagnostics_indicator = function(_, _, diag)