leap and bufferline

This commit is contained in:
Christian Nieves
2023-08-23 07:46:28 +00:00
parent fb1185cc2d
commit 87ac7d3773
8 changed files with 135 additions and 122 deletions

View File

@ -53,7 +53,7 @@ return {
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
-- tabline = 1000,
winbar = 1000,
},
},
@ -73,42 +73,42 @@ return {
lualine_y = { "progress" },
lualine_z = { "location" },
},
tabline = {
lualine_a = {
{
"tabs",
mode = 1,
use_mode_colors = true,
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_workspace_diagnostic" },
symbols = { error = "", warn = "", info = "", hint = "" },
},
},
-- lualine_y = { getLGTMs }
lualine_z = {
{
"filename",
file_status = false, -- displays file status (readonly status, modified status)
path = 2, -- 0 = just filename, 1 = relative path, 2 = absolute path
},
},
},
-- tabline = {
-- lualine_a = {
-- {
-- "tabs",
-- mode = 1,
-- use_mode_colors = true,
-- 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_workspace_diagnostic" },
-- symbols = { error = " ", warn = " ", info = " ", hint = " " },
-- },
-- },
-- -- lualine_y = { getLGTMs }
-- lualine_z = {
-- {
-- "filename",
-- file_status = false, -- displays file status (readonly status, modified status)
-- path = 2, -- 0 = just filename, 1 = relative path, 2 = absolute path
-- },
-- },
-- },
})
end,
}