fix tabs
This commit is contained in:
@ -67,7 +67,26 @@ require('lualine').setup {
|
||||
},
|
||||
tabline = {
|
||||
lualine_a = {
|
||||
{'tabs', mode = 1},
|
||||
{
|
||||
'tabs',
|
||||
mode = 1,
|
||||
max_length = (vim.o.columns / 5) * 4,
|
||||
fmt = function(name, context)
|
||||
-- Show + if buffer is modified in tab
|
||||
local buflist = vim.fn.tabpagebuflist(context.tabnr)
|
||||
local winnr = vim.fn.tabpagewinnr(context.tabnr)
|
||||
local bufnr = buflist[winnr]
|
||||
local mod = vim.fn.getbufvar(bufnr, '&mod')
|
||||
|
||||
return name .. (mod == 1 and ' +' or '')
|
||||
end
|
||||
},
|
||||
},
|
||||
lualine_b = {'branch'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_c = {
|
||||
{ 'diagnostics', sources = {"nvim_lsp", "nvim_workspace_diagnostic"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||
},
|
||||
-- lualine_y = { getLGTMs }
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user