add tabufline order syntax

backup
siduck 4 months ago
parent 16fadf9e0d
commit 2eac8906fc

@ -97,7 +97,7 @@ autocmd("BufWritePost", {
-- tabufline -- tabufline
if config.ui.tabufline.enabled then if config.ui.tabufline.enabled then
require("plenary.reload").reload_module "nvchad.tabufline.modules" require("plenary.reload").reload_module "nvchad.tabufline.modules"
vim.opt.tabline = "%!v:lua.require('nvchad.tabufline.modules').run()" vim.opt.tabline = "%!v:lua.require('nvchad.tabufline.modules')()"
end end
require("base46").load_all_highlights() require("base46").load_all_highlights()

@ -35,11 +35,11 @@ map("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Lsp diagnostic loclis
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "Buffer New" }) map("n", "<leader>b", "<cmd>enew<CR>", { desc = "Buffer New" })
map("n", "<tab>", function() map("n", "<tab>", function()
require("nvchad.tabufline").tabuflineNext() require("nvchad.tabufline").next()
end, { desc = "Buffer Goto next" }) end, { desc = "Buffer Goto next" })
map("n", "<S-tab>", function() map("n", "<S-tab>", function()
require("nvchad.tabufline").tabuflinePrev() require("nvchad.tabufline").prev()
end, { desc = "Buffer Goto prev" }) end, { desc = "Buffer Goto prev" })
map("n", "<leader>x", function() map("n", "<leader>x", function()

@ -32,15 +32,15 @@ M.ui = {
separator_style = "default", separator_style = "default",
order = nil, order = nil,
modules = nil, modules = {},
}, },
-- lazyload it when there are 1+ buffers -- lazyload it when there are 1+ buffers
tabufline = { tabufline = {
show_numbers = false,
enabled = true, enabled = true,
lazyload = true, lazyload = true,
overriden_modules = nil, order = { "treeOffset", "buffers", "tabs", "btns" },
modules = {},
}, },
-- nvdash (dashboard) -- nvdash (dashboard)

Loading…
Cancel
Save