chore: format everything with stylua and update

This commit is contained in:
Alexander Gehrke 2025-02-26 11:22:27 +01:00
parent 473d78494e
commit e90763e223
22 changed files with 273 additions and 222 deletions

View file

@ -1,74 +1,77 @@
return {
'nvim-lualine/lualine.nvim',
"nvim-lualine/lualine.nvim",
dependencies = {
{ 'kyazdani42/nvim-web-devicons', lazy = true },
'crater2150/vim-theme-chroma',
{ "kyazdani42/nvim-web-devicons", lazy = true },
"crater2150/vim-theme-chroma",
{
'linrongbin16/lsp-progress.nvim',
"linrongbin16/lsp-progress.nvim",
config = function()
require('lsp-progress').setup()
end
require("lsp-progress").setup()
end,
},
},
event = "VeryLazy",
opts = function(_, opts)
return {
options = {
theme = require('chroma-theme.lualine')
theme = require("chroma-theme.lualine"),
},
tabline = {
lualine_a = { 'branch' },
lualine_a = { "branch" },
lualine_b = {},
lualine_c = { { 'buffers', show_filename_only = false, symbols = { modified = " ✏️]", alternate_file = " 🔃", folder = " 📁" }, } },
lualine_c = {
{
"buffers",
show_filename_only = false,
symbols = { modified = " ✏️]", alternate_file = " 🔃", folder = " 📁" },
},
},
lualine_x = {},
lualine_y = {},
lualine_z = {
{
'tabs',
"tabs",
mode = 1,
fmt = function(name, context)
local buflist = vim.fn.tabpagebuflist(context.tabnr)
local mod = not vim.tbl_isempty(vim.tbl_filter(
function(bufnr)
return vim.fn.getbufvar(bufnr, '&mod') ==
1
end,
buflist))
local mod = not vim.tbl_isempty(vim.tbl_filter(function(bufnr)
return vim.fn.getbufvar(bufnr, "&mod") == 1
end, buflist))
local wincount = #vim.tbl_filter(
function(i) return i == 'leaf' end,
vim.tbl_flatten(vim.fn.winlayout(context.tabnr))
)
local wincount = #vim.tbl_filter(function(i)
return i == "leaf"
end, vim.tbl_flatten(vim.fn.winlayout(context.tabnr)))
return name ..
(wincount > 1 and ' +' .. (wincount - 1) or '') ..
(mod and ' [✏️]]' or '')
end
} }
return name
.. (wincount > 1 and " +" .. (wincount - 1) or "")
.. (mod and " [✏️]]" or "")
end,
},
},
},
sections = {
lualine_a = { 'filename' },
lualine_b = { 'diff', 'diagnostics' },
lualine_a = { "filename" },
lualine_b = { "diff", "diagnostics" },
lualine_x = {
function()
-- invoke `progress` here.
return require('lsp-progress').progress()
end
return require("lsp-progress").progress()
end,
},
lualine_y = { 'filetype' },
lualine_z = { 'searchcount', 'selectioncount', 'location' }
lualine_y = { "filetype" },
lualine_z = { "searchcount", "selectioncount", "location" },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_y = {},
lualine_z = {}
lualine_z = {},
},
winbar = {},
inactive_winbar = {},
extensions = {}
extensions = {},
}
end,
config = function(_, opts)