rm misleading field name for tabufline in default_config
This commit is contained in:
parent
845d5b4866
commit
876295ec02
|
@ -1,5 +1,4 @@
|
|||
-- IMPORTANT NOTE : This is default config, so dont change anything here.
|
||||
-- chadrc overrides this file
|
||||
-- Chadrc overrides this file
|
||||
|
||||
local M = {}
|
||||
|
||||
|
@ -28,7 +27,8 @@ M.ui = {
|
|||
override = {},
|
||||
},
|
||||
|
||||
tabufline_enabled = true,
|
||||
-- lazyload it when there are 1+ buffers
|
||||
tabufline_lazyloaded = true,
|
||||
}
|
||||
|
||||
M.plugins = {
|
||||
|
|
|
@ -38,7 +38,7 @@ autocmd("BufEnter", {
|
|||
|
||||
vim.t.bufs = vim.api.nvim_list_bufs()
|
||||
|
||||
-- thx to https://github.com/ii14 && stores buffer per tab -> table
|
||||
-- thx to https://github.com/ii14 & stores buffer per tab -> table
|
||||
autocmd({ "BufAdd" }, {
|
||||
callback = function(args)
|
||||
if vim.t.bufs == nil then
|
||||
|
@ -72,7 +72,7 @@ autocmd("BufDelete", {
|
|||
end,
|
||||
})
|
||||
|
||||
if require("core.utils").load_config().ui.tabufline_enabled then
|
||||
if require("core.utils").load_config().ui.tabufline_lazyloaded then
|
||||
require("core.lazy_load").tabufline()
|
||||
else
|
||||
vim.opt.showtabline = 2
|
||||
|
|
|
@ -116,8 +116,6 @@ M.tabufline = function()
|
|||
vim.opt.showtabline = 2
|
||||
vim.opt.tabline = "%!v:lua.require('ui.tabline').run()"
|
||||
vim.api.nvim_del_augroup_by_name "TabuflineLazyLoad"
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue