.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

@@ -65,15 +65,15 @@ end
return {
'nvim-lualine/lualine.nvim',
dependencies = {'kyazdani42/nvim-web-devicons', opt = true },
dependencies = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function()
require('lualine').setup {
options = {
theme = 'catppuccin',
--fmt = string.lower,
icons_enabled = true,
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {},
winbar = {},
@@ -96,12 +96,12 @@ return {
return { fg = "#000000", gui = "bold" }
end,
-- fmt = function(str) return str:sub(1,1) end,
}},
} },
lualine_b = {
{
'branch',
color = { fg = "#FFF"},
icon = {'', color = function() return { fg = getModeColor('a','bg') } end },
color = { fg = "#FFF" },
icon = { 'εéá', color = function() return { fg = getModeColor('a', 'bg') } end },
},
{
'diff',
@@ -116,45 +116,52 @@ return {
},
-- 'diagnostics'
},
lualine_c = {{
lualine_c = { {
'filename',
on_click = function(nc, mb, mods)
local tb = require("telescope.builtin")
if mb == "l" then
--vim.print(mods)
local mod = mods:gsub("%s+", "")
if mod == "c" then tb.find_files(); return end
if mod == "a" then tb.buffers(); return end
if mod == "c" then
tb.find_files(); return
end
if mod == "a" then
tb.buffers(); return
end
end
--require("telescope.builtin").find_files()
end,
}},
} },
lualine_x = {
-- {
-- function()
-- return getModeColor('a','bg')
-- end
-- },
'encoding', 'fileformat', 'filetype'},
-- print recording messages
{
require("noice").api.statusline.mode.get,
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' },
lualine_y = {
{
'progress',
color = { fg = "#FFFFFF"},
color = { fg = "#FFFFFF" },
}
},
lualine_z = {{
lualine_z = { {
'location',
color = function(section)
if vim.fn.mode() == "n" then return { fg = palette.text } end
return { fg = "#000000", }
end,
}}
} }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {'filename'},
lualine_x = {'location'},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},