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

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

* fix(bufferline): don't force remove buffers

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
Loi ChyanandFolke Lemaitre authored and GitHub committed 2023-04-24 08:40:57 +02:00
1 parent 43763a6226
commit 3e46dd61cd
1 file changed
+4
+4
View File
@@ -59,6 +59,10 @@ return {
},
opts = {
options = {
-- stylua: ignore
close_command = function(n) require("mini.bufremove").delete(n, false) end,
-- stylua: ignore
right_mouse_command = function(n) require("mini.bufremove").delete(n, false) end,
diagnostics = "nvim_lsp",
always_show_bufferline = false,
diagnostics_indicator = function(_, _, diag)