add tabufline order syntax

backup
siduck 3 months ago
parent 16fadf9e0d
commit 2eac8906fc

@ -97,7 +97,7 @@ autocmd("BufWritePost", {
-- tabufline
if config.ui.tabufline.enabled then
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
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", "<tab>", function()
require("nvchad.tabufline").tabuflineNext()
require("nvchad.tabufline").next()
end, { desc = "Buffer Goto next" })
map("n", "<S-tab>", function()
require("nvchad.tabufline").tabuflinePrev()
require("nvchad.tabufline").prev()
end, { desc = "Buffer Goto prev" })
map("n", "<leader>x", function()

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

Loading…
Cancel
Save