Updated lualine so it's transparent and reanabled eslint
This commit is contained in:
@@ -37,7 +37,7 @@ return {
|
|||||||
"yamlls",
|
"yamlls",
|
||||||
"bashls",
|
"bashls",
|
||||||
"marksman",
|
"marksman",
|
||||||
-- "eslint",
|
"eslint",
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.lsp.config("*", {
|
vim.lsp.config("*", {
|
||||||
|
|||||||
@@ -52,57 +52,6 @@ return {
|
|||||||
t = colors.red,
|
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 function mason_updates()
|
||||||
local registry = require("mason-registry")
|
local registry = require("mason-registry")
|
||||||
registry.refresh()
|
registry.refresh()
|
||||||
@@ -159,6 +108,13 @@ return {
|
|||||||
vim.cmd("Neogit")
|
vim.cmd("Neogit")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
local lsp_status = {
|
||||||
|
"lsp-status",
|
||||||
|
color = { fg = colors.green, bg = "None", gui = "bold" },
|
||||||
|
on_click = function()
|
||||||
|
vim.cmd("LspInfo")
|
||||||
|
end,
|
||||||
|
}
|
||||||
local diagnostics = {
|
local diagnostics = {
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = { "nvim_diagnostic" },
|
sources = { "nvim_diagnostic" },
|
||||||
@@ -291,19 +247,15 @@ return {
|
|||||||
|
|
||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
theme = theme,
|
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
always_divide_middle = false,
|
always_divide_middle = false,
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
lualine_b = { filename, branch, "lsp-status" },
|
lualine_b = { filename, branch, lsp_status },
|
||||||
-- lualine_b = { branch, "lsp-status" },
|
|
||||||
lualine_c = { diagnostics, sep, macro_recording, harpoon },
|
lualine_c = { diagnostics, sep, macro_recording, harpoon },
|
||||||
-- lualine_c = { sep, harpoon },
|
|
||||||
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
||||||
-- lualine_x = { copilot, fileformat, lazy, mason },
|
|
||||||
lualine_y = { buffers, filetype, progress },
|
lualine_y = { buffers, filetype, progress },
|
||||||
lualine_z = { location },
|
lualine_z = { location },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -40,11 +40,13 @@ return {
|
|||||||
"VertSplit",
|
"VertSplit",
|
||||||
"EndOfBuffer",
|
"EndOfBuffer",
|
||||||
"SignColumn",
|
"SignColumn",
|
||||||
"NotifyTRACEBorder",
|
"StatusLine",
|
||||||
"NotifyERRORBorder",
|
"StatusLineNC",
|
||||||
"NotifyDEBUGBorder",
|
"Tabline",
|
||||||
"NotifyWARNBorder",
|
"TabLineFill",
|
||||||
"NotifyINFOBorder",
|
"TabLineSel",
|
||||||
|
"Winbar",
|
||||||
|
"WinbarNC",
|
||||||
},
|
},
|
||||||
exclude_groups = {},
|
exclude_groups = {},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user