Updated lualine so it's transparent and reanabled eslint

This commit is contained in:
2025-04-29 10:39:16 +02:00
parent c6747e973b
commit dd664b31d9
3 changed files with 16 additions and 62 deletions

View File

@@ -37,7 +37,7 @@ return {
"yamlls",
"bashls",
"marksman",
-- "eslint",
"eslint",
}
vim.lsp.config("*", {

View File

@@ -52,57 +52,6 @@ return {
t = colors.red,
}
local theme = {
normal = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
insert = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
visual = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
replace = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
command = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
inactive = {
a = { bg = "None", gui = "bold" },
b = { bg = "None", gui = "bold" },
c = { bg = "None", gui = "bold" },
x = { bg = "None", gui = "bold" },
y = { bg = "None", gui = "bold" },
z = { bg = "None", gui = "bold" },
},
}
local function mason_updates()
local registry = require("mason-registry")
registry.refresh()
@@ -159,6 +108,13 @@ return {
vim.cmd("Neogit")
end,
}
local lsp_status = {
"lsp-status",
color = { fg = colors.green, bg = "None", gui = "bold" },
on_click = function()
vim.cmd("LspInfo")
end,
}
local diagnostics = {
"diagnostics",
sources = { "nvim_diagnostic" },
@@ -291,19 +247,15 @@ return {
lualine.setup({
options = {
theme = theme,
component_separators = "",
section_separators = { left = "", right = "" },
always_divide_middle = false,
},
sections = {
lualine_a = { mode },
lualine_b = { filename, branch, "lsp-status" },
-- lualine_b = { branch, "lsp-status" },
lualine_b = { filename, branch, lsp_status },
lualine_c = { diagnostics, sep, macro_recording, harpoon },
-- lualine_c = { sep, harpoon },
lualine_x = { copilot, diff, fileformat, lazy, mason },
-- lualine_x = { copilot, fileformat, lazy, mason },
lualine_y = { buffers, filetype, progress },
lualine_z = { location },
},

View File

@@ -40,11 +40,13 @@ return {
"VertSplit",
"EndOfBuffer",
"SignColumn",
"NotifyTRACEBorder",
"NotifyERRORBorder",
"NotifyDEBUGBorder",
"NotifyWARNBorder",
"NotifyINFOBorder",
"StatusLine",
"StatusLineNC",
"Tabline",
"TabLineFill",
"TabLineSel",
"Winbar",
"WinbarNC",
},
exclude_groups = {},
})