mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: disable lualine if crunner open
This commit is contained in:
parent
23cd80d925
commit
3c07e3d75e
2 changed files with 102 additions and 101 deletions
|
@ -37,10 +37,10 @@
|
||||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||||
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "73fb37ed77b18ac357ca8e6e35835a8db6602332" },
|
"nvim-treesitter": { "branch": "master", "commit": "30de5e7e9486fb1b1b8c2a1e71052b13f94f1cb0" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "62db4b3054ec6847e5cb189b4dea452ce0c7ad7f" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "62db4b3054ec6847e5cb189b4dea452ce0c7ad7f" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cbab9ad88036915beebd13b47e100743ff2ed2d5" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
|
||||||
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
|
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
|
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||||
|
|
|
@ -1,104 +1,105 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = { "InsertEnter", "BufRead", "BufNewFile" },
|
event = { "InsertEnter", "BufRead", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
local component = require("user.utils.lualine_component")
|
local component = require "user.utils.lualine_component"
|
||||||
local treesitter = component.treesitter
|
local treesitter = component.treesitter
|
||||||
local lsp_info = component.lsp_info
|
local lsp_info = component.lsp_info
|
||||||
local diagnostics = component.diagnostics
|
local diagnostics = component.diagnostics
|
||||||
local diff = component.diff
|
local diff = component.diff
|
||||||
local spaces = component.spaces
|
local spaces = component.spaces
|
||||||
local mode = component.mode
|
local mode = component.mode
|
||||||
local get_branch = component.get_branch
|
local get_branch = component.get_branch
|
||||||
local lsp_progress = {}
|
local lsp_progress = {}
|
||||||
local data_ok, lspprogress = pcall(require, "lsp-progress")
|
local data_ok, lspprogress = pcall(require, "lsp-progress")
|
||||||
if data_ok then
|
if data_ok then
|
||||||
lsp_progress = lspprogress.progress
|
lsp_progress = lspprogress.progress
|
||||||
end
|
end
|
||||||
local colors = component.colors
|
local colors = component.colors
|
||||||
|
|
||||||
-- check config for theme
|
-- check config for theme
|
||||||
local set_theme = "auto"
|
local set_theme = "auto"
|
||||||
local bubbles_theme
|
local bubbles_theme
|
||||||
local color = vim.g.pcode_colorscheme
|
local color = vim.g.pcode_colorscheme
|
||||||
switch(color, {
|
switch(color, {
|
||||||
["tokyonight"] = function()
|
["tokyonight"] = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
["tokyonight-night"] = function()
|
["tokyonight-night"] = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
["tokyonight-storm"] = function()
|
["tokyonight-storm"] = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
["tokyonight-day"] = function()
|
["tokyonight-day"] = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
["tokyonight-moon"] = function()
|
["tokyonight-moon"] = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
["dracula"] = function()
|
["dracula"] = function()
|
||||||
local clr = require("dracula").colors()
|
local clr = require("dracula").colors()
|
||||||
colors.blue = clr.green
|
colors.blue = clr.green
|
||||||
colors.black = clr.black
|
colors.black = clr.black
|
||||||
colors.cyan = clr.yellow
|
colors.cyan = clr.yellow
|
||||||
set_theme = "bubbles_theme"
|
set_theme = "bubbles_theme"
|
||||||
end,
|
end,
|
||||||
default = function()
|
default = function()
|
||||||
set_theme = "auto"
|
set_theme = "auto"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
bubbles_theme = component.bubbles_theme(colors)
|
bubbles_theme = component.bubbles_theme(colors)
|
||||||
if set_theme == "auto" then
|
if set_theme == "auto" then
|
||||||
bubbles_theme = vim.fn.fnamemodify("auto", ":t")
|
bubbles_theme = vim.fn.fnamemodify("auto", ":t")
|
||||||
end
|
end
|
||||||
|
|
||||||
require("lualine").setup({
|
require("lualine").setup {
|
||||||
options = {
|
options = {
|
||||||
theme = bubbles_theme,
|
theme = bubbles_theme,
|
||||||
component_separators = { left = "", right = "" },
|
component_separators = { left = "", right = "" },
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
"TelescopePrompt",
|
"TelescopePrompt",
|
||||||
"packer",
|
"packer",
|
||||||
"alpha",
|
"alpha",
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"NvimTree",
|
"NvimTree",
|
||||||
"Outline",
|
"Outline",
|
||||||
"DressingInput",
|
"DressingInput",
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
"startuptime",
|
"startuptime",
|
||||||
},
|
"crunner",
|
||||||
always_divide_middle = true,
|
},
|
||||||
},
|
always_divide_middle = true,
|
||||||
sections = {
|
},
|
||||||
lualine_a = {
|
sections = {
|
||||||
mode,
|
lualine_a = {
|
||||||
},
|
mode,
|
||||||
lualine_b = { get_branch },
|
},
|
||||||
lualine_c = { diff, lsp_info, lsp_progress },
|
lualine_b = { get_branch },
|
||||||
lualine_x = { diagnostics, spaces, treesitter, "filetype" },
|
lualine_c = { diff, lsp_info, lsp_progress },
|
||||||
lualine_y = { "progress" },
|
lualine_x = { diagnostics, spaces, treesitter, "filetype" },
|
||||||
lualine_z = {
|
lualine_y = { "progress" },
|
||||||
{ "location", separator = { right = " " }, padding = 1 },
|
lualine_z = {
|
||||||
},
|
{ "location", separator = { right = " " }, padding = 1 },
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
},
|
||||||
lualine_a = { "filename" },
|
inactive_sections = {
|
||||||
lualine_b = {},
|
lualine_a = { "filename" },
|
||||||
lualine_c = {},
|
lualine_b = {},
|
||||||
lualine_x = {},
|
lualine_c = {},
|
||||||
lualine_y = {},
|
lualine_x = {},
|
||||||
lualine_z = { "location" },
|
lualine_y = {},
|
||||||
},
|
lualine_z = { "location" },
|
||||||
tabline = {},
|
},
|
||||||
extensions = {},
|
tabline = {},
|
||||||
})
|
extensions = {},
|
||||||
end,
|
}
|
||||||
},
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue