.config/nvim/lua/kamu/plugins/lualine.lua aktualisiert
This commit is contained in:
@@ -65,15 +65,15 @@ end
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
dependencies = {'kyazdani42/nvim-web-devicons', opt = true },
|
dependencies = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
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 = {},
|
||||||
@@ -96,12 +96,12 @@ return {
|
|||||||
return { fg = "#000000", gui = "bold" }
|
return { fg = "#000000", gui = "bold" }
|
||||||
end,
|
end,
|
||||||
-- fmt = function(str) return str:sub(1,1) end,
|
-- fmt = function(str) return str:sub(1,1) end,
|
||||||
}},
|
} },
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
{
|
{
|
||||||
'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',
|
||||||
@@ -116,45 +116,52 @@ return {
|
|||||||
},
|
},
|
||||||
-- 'diagnostics'
|
-- 'diagnostics'
|
||||||
},
|
},
|
||||||
lualine_c = {{
|
lualine_c = { {
|
||||||
'filename',
|
'filename',
|
||||||
on_click = function(nc, mb, mods)
|
on_click = function(nc, mb, mods)
|
||||||
local tb = require("telescope.builtin")
|
local tb = require("telescope.builtin")
|
||||||
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
|
||||||
'encoding', 'fileformat', 'filetype'},
|
end,
|
||||||
|
color = { fg = "#ff9e64" },
|
||||||
|
},
|
||||||
|
'encoding', 'fileformat', 'filetype' },
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
{
|
{
|
||||||
'progress',
|
'progress',
|
||||||
color = { fg = "#FFFFFF"},
|
color = { fg = "#FFFFFF" },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_z = {{
|
lualine_z = { {
|
||||||
'location',
|
'location',
|
||||||
color = function(section)
|
color = function(section)
|
||||||
if vim.fn.mode() == "n" then return { fg = palette.text } end
|
if vim.fn.mode() == "n" then return { fg = palette.text } end
|
||||||
return { fg = "#000000", }
|
return { fg = "#000000", }
|
||||||
end,
|
end,
|
||||||
}}
|
} }
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = {'filename'},
|
lualine_c = { 'filename' },
|
||||||
lualine_x = {'location'},
|
lualine_x = { 'location' },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {}
|
lualine_z = {}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user