Disbaled incline plugin
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
return {
|
||||
"b0o/incline.nvim",
|
||||
event = "VeryLazy",
|
||||
enabled = false,
|
||||
config = function()
|
||||
local incline = require("incline")
|
||||
|
||||
|
||||
@@ -23,11 +23,11 @@ return {
|
||||
red = "#f38ba8",
|
||||
}
|
||||
|
||||
-- local conditions = {
|
||||
-- hide_in_width = function()
|
||||
-- return vim.fn.winwidth(0) > 80
|
||||
-- end,
|
||||
-- }
|
||||
local conditions = {
|
||||
hide_in_width = function()
|
||||
return vim.fn.winwidth(0) > 80
|
||||
end,
|
||||
}
|
||||
|
||||
local mode_color = {
|
||||
n = colors.red,
|
||||
@@ -138,10 +138,10 @@ return {
|
||||
return { bg = mode_color[vim.fn.mode()], fg = colors.bg }
|
||||
end,
|
||||
}
|
||||
-- local filename = {
|
||||
-- "filename",
|
||||
-- color = { fg = colors.magenta, bg = "None", gui = "bold" },
|
||||
-- }
|
||||
local filename = {
|
||||
"filename",
|
||||
color = { fg = colors.magenta, bg = "None", gui = "bold" },
|
||||
}
|
||||
local branch = {
|
||||
"branch",
|
||||
icon = "",
|
||||
@@ -150,17 +150,17 @@ return {
|
||||
vim.cmd("Neogit")
|
||||
end,
|
||||
}
|
||||
-- local diagnostics = {
|
||||
-- "diagnostics",
|
||||
-- sources = { "nvim_diagnostic" },
|
||||
-- symbols = { error = " ", warn = " ", info = " " },
|
||||
-- diagnostics_color = {
|
||||
-- color_error = { fg = colors.red, bg = "None", gui = "bold" },
|
||||
-- color_warn = { fg = colors.yellow, bg = "None", gui = "bold" },
|
||||
-- color_info = { fg = colors.cyan, bg = "None", gui = "bold" },
|
||||
-- },
|
||||
-- color = { bg = mode, gui = "bold" },
|
||||
-- }
|
||||
local diagnostics = {
|
||||
"diagnostics",
|
||||
sources = { "nvim_diagnostic" },
|
||||
symbols = { error = " ", warn = " ", info = " " },
|
||||
diagnostics_color = {
|
||||
color_error = { fg = colors.red, bg = "None", gui = "bold" },
|
||||
color_warn = { fg = colors.yellow, bg = "None", gui = "bold" },
|
||||
color_info = { fg = colors.cyan, bg = "None", gui = "bold" },
|
||||
},
|
||||
color = { bg = mode, gui = "bold" },
|
||||
}
|
||||
local harpoon = {
|
||||
"harpoon2",
|
||||
icon = "",
|
||||
@@ -188,16 +188,16 @@ return {
|
||||
show_colors = true,
|
||||
color = { bg = "None", gui = "bold" },
|
||||
}
|
||||
-- local diff = {
|
||||
-- "diff",
|
||||
-- symbols = { added = " ", modified = " ", removed = " " },
|
||||
-- diff_color = {
|
||||
-- added = { fg = colors.green, bg = "None" },
|
||||
-- modified = { fg = colors.orange, bg = "None" },
|
||||
-- removed = { fg = colors.red, bg = "None" },
|
||||
-- },
|
||||
-- cond = conditions.hide_in_width,
|
||||
-- }
|
||||
local diff = {
|
||||
"diff",
|
||||
symbols = { added = " ", modified = " ", removed = " " },
|
||||
diff_color = {
|
||||
added = { fg = colors.green, bg = "None" },
|
||||
modified = { fg = colors.orange, bg = "None" },
|
||||
removed = { fg = colors.red, bg = "None" },
|
||||
},
|
||||
cond = conditions.hide_in_width,
|
||||
}
|
||||
local fileformat = {
|
||||
"fileformat",
|
||||
fmt = string.upper,
|
||||
@@ -284,12 +284,12 @@ return {
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { mode },
|
||||
-- lualine_b = { filename, branch, "lsp-status" },
|
||||
lualine_b = { branch, "lsp-status" },
|
||||
-- lualine_c = { diagnostics, sep, harpoon },
|
||||
lualine_c = { sep, harpoon },
|
||||
-- lualine_x = { copilot, diff, fileformat, lazy, mason },
|
||||
lualine_x = { copilot, fileformat, lazy, mason },
|
||||
lualine_b = { filename, branch, "lsp-status" },
|
||||
-- lualine_b = { branch, "lsp-status" },
|
||||
lualine_c = { diagnostics, sep, 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 },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user