add tabufline order syntax

This commit is contained in:
siduck 2024-03-03 22:12:12 +05:30
parent 16fadf9e0d
commit 2eac8906fc
3 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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)