.config/nvim/lua/kamu/plugins/lualine.lua aktualisiert

This commit is contained in:
2024-03-30 06:34:39 +01:00
parent 91ee686a5d
commit beadaaba8b

View File

@@ -72,8 +72,8 @@ return {
theme = 'catppuccin', theme = 'catppuccin',
--fmt = string.lower, --fmt = string.lower,
icons_enabled = true, icons_enabled = true,
component_separators = { left = '', right = ''}, component_separators = { left = '', right = '' },
section_separators = { left = '', right = ''}, section_separators = { left = '', right = '' },
disabled_filetypes = { disabled_filetypes = {
statusline = {}, statusline = {},
winbar = {}, winbar = {},
@@ -101,7 +101,7 @@ return {
{ {
'branch', 'branch',
color = { fg = "#FFF" }, color = { fg = "#FFF" },
icon = {'', color = function() return { fg = getModeColor('a','bg') } end }, icon = { 'εéá', color = function() return { fg = getModeColor('a', 'bg') } end },
}, },
{ {
'diff', 'diff',
@@ -123,18 +123,25 @@ return {
if mb == "l" then if mb == "l" then
--vim.print(mods) --vim.print(mods)
local mod = mods:gsub("%s+", "") local mod = mods:gsub("%s+", "")
if mod == "c" then tb.find_files(); return end if mod == "c" then
if mod == "a" then tb.buffers(); return end tb.find_files(); return
end
if mod == "a" then
tb.buffers(); return
end
end end
--require("telescope.builtin").find_files() --require("telescope.builtin").find_files()
end, end,
} }, } },
lualine_x = { lualine_x = {
-- { -- print recording messages
-- function() {
-- return getModeColor('a','bg') require("noice").api.statusline.mode.get,
-- end cond = function()
-- }, return require("noice").api.statusline.mode.has() and string.match(require("noice").api.statusline.mode.get(), '^recording @.$') ~= nil
end,
color = { fg = "#ff9e64" },
},
'encoding', 'fileformat', 'filetype' }, 'encoding', 'fileformat', 'filetype' },
lualine_y = { lualine_y = {
{ {