add: tidy up the code, more modular

This commit is contained in:
asep.komarudin 2024-05-21 08:33:21 +07:00
parent 1545d8335d
commit 1f424a1225
10 changed files with 583 additions and 522 deletions

View file

@ -43,10 +43,10 @@ return {
color_icons = true,
numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string,
close_command = function(bufnum)
require("user.utils").bufremove(bufnum)
require("user.utils.bufferline").bufremove(bufnum)
end,
right_mouse_command = function(bufnum)
require("user.utils").bufremove(bufnum)
require("user.utils.bufferline").bufremove(bufnum)
end,
-- close_command = "bdelete! %d",
-- right_mouse_command = "bdelete! %d",