addet lualine becouse slimline has compatability issues

This commit is contained in:
pika 2025-04-05 18:50:52 +02:00
parent acc5c649f3
commit 3af369e397

View file

@ -220,96 +220,132 @@ return {
vim.keymap.set("n", "<leader>tn", "<cmd>Telescope notify<CR>", { desc = "Telescope show Notifications" }), vim.keymap.set("n", "<leader>tn", "<cmd>Telescope notify<CR>", { desc = "Telescope show Notifications" }),
}, },
-- ╭────────────────────────────────╮
-- │ lualine - another bar for nvim │
-- ╰────────────────────────────────╯
{
"nvim-lualine/lualine.nvim",
opts = {
options = {
theme = bubbles_theme,
component_separators = "",
section_separators = { left = "", right = "" },
},
sections = {
lualine_a = { { "mode", separator = { left = "" }, right_padding = 4 } },
lualine_b = { "filename", "branch" },
lualine_c = {
"%=",
"cwd",
},
lualine_x = {},
lualine_y = { "filetype", "progress" },
lualine_z = {
{ "location", separator = { right = "" }, left_padding = 4 },
},
},
inactive_sections = {
lualine_a = { "filename" },
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = { "location" },
},
tabline = {},
extensions = {},
},
},
-- ╭──────────────────────────────╮ -- ╭──────────────────────────────╮
-- │ slimline - nice bar for nvim │ -- │ slimline - nice bar for nvim │
-- ╰──────────────────────────────╯ -- ╰──────────────────────────────╯
{ -- {
-- Calls `require('slimline').setup({})` -- "sschleemilch/slimline.nvim",
"sschleemilch/slimline.nvim", -- opts = {
opts = { -- bold = true, -- makes primary parts and mode bold
bold = true, -- makes primary parts and mode bold -- verbose_mode = false, -- Mode as single letter or as a word
verbose_mode = false, -- Mode as single letter or as a word -- style = "bg", -- or "fg". Whether highlights should be applied to bg or fg of components
style = "bg", -- or "fg". Whether highlights should be applied to bg or fg of components -- mode_follow_style = true, -- Whether the mode color components should follow the style option
mode_follow_style = true, -- Whether the mode color components should follow the style option -- spaces = {
spaces = { -- components = "─",
components = "", -- left = "─",
left = "", -- right = "─",
right = "", -- },
}, -- configs = {
configs = { -- path = {
path = { -- hl = {
hl = { -- primary = "Define",
primary = "Define", -- },
}, -- },
}, -- git = {
git = { -- hl = {
hl = { -- primary = "Function",
primary = "Function", -- },
}, -- },
}, -- diagnostics = {
diagnostics = { -- hl = {
hl = { -- primary = "Statement",
primary = "Statement", -- },
}, -- },
}, -- filetype_lsp = {
filetype_lsp = { -- hl = {
hl = { -- primary = "String",
primary = "String", -- },
}, -- },
}, -- },
}, -- components = { -- Choose components and their location
components = { -- Choose components and their location -- left = {
left = { -- "mode",
"mode", -- "progress",
"progress", -- -- "path",
-- -- "git",
-- },
-- center = {
-- "path", -- "path",
-- "git", -- "git",
}, -- },
center = { -- right = {
"path", -- "diagnostics",
"git", -- "filetype_lsp",
}, -- "progress",
right = { -- },
"diagnostics", -- },
"filetype_lsp", -- sep = {
"progress", -- hide = {
}, -- first = false, -- hides the first separator
}, -- last = false, -- hides the last separator
sep = { -- },
hide = { -- left = "", -- left separator of components
first = false, -- hides the first separator -- right = "", -- right separator of components
last = false, -- hides the last separator -- },
}, -- hl = {
left = "", -- left separator of components -- modes = {
right = "", -- right separator of components -- normal = "Type", -- highlight base of modes
}, -- insert = "Function",
hl = { -- pending = "Boolean",
modes = { -- visual = "Keyword",
normal = "Type", -- highlight base of modes -- command = "String",
insert = "Function", -- },
pending = "Boolean", -- base = "Comment", -- highlight of everything in in between components
visual = "Keyword", -- primary = "Normal", -- highlight of primary parts (e.g. filename)
command = "String", -- secondary = "Comment", -- highlight of secondary parts (e.g. filepath)
}, -- },
base = "Comment", -- highlight of everything in in between components -- icons = {
primary = "Normal", -- highlight of primary parts (e.g. filename) -- diagnostics = {
secondary = "Comment", -- highlight of secondary parts (e.g. filepath) -- ERROR = " ",
}, -- WARN = " ",
icons = { -- HINT = " ",
diagnostics = { -- INFO = " ",
ERROR = "", -- },
WARN = "", -- git = {
HINT = "", -- branch = "",
INFO = "", -- },
}, -- folder = " ",
git = { -- lines = " ",
branch = "", -- },
}, -- },
folder = "", -- },
lines = "",
},
},
},
-- ╭────────────────────────────────────────╮ -- ╭────────────────────────────────────────╮
-- │ which key - to know what to press next │ -- │ which key - to know what to press next │