feat(lazy): allow for hot loading plugin specs

This commit is contained in:
2024-04-21 03:20:28 +02:00
parent 2e36ef05d9
commit ac1e40bfee
31 changed files with 683 additions and 831 deletions
+40 -36
View File
@@ -1,41 +1,45 @@
-- https://github.com/nvim-lualine/lualine.nvim
local function setup()
local custom_moonfly = require("lualine.themes.moonfly")
custom_moonfly.normal.c.bg = require("moonfly").palette.bg
---@type LazyPluginSpec
return {
"nvim-lualine/lualine.nvim",
lazy = true,
event = "VimEnter",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
local custom_moonfly = require("lualine.themes.moonfly")
custom_moonfly.normal.c.bg = require("moonfly").palette.bg
require("lualine").setup({
options = {
icons_enabled = true,
theme = custom_moonfly,
component_separators = { left = "", right = "", },
section_separators = { left = "", right = "", },
always_divide_middle = true,
globalstatus = true,
},
sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {
{ "filename", path = 1, },
"diff",
{ "diagnostics", sources = { "nvim_lsp", }, },
{
require("grapple").statusline,
cond = require("grapple").exists,
require("lualine").setup({
options = {
icons_enabled = true,
theme = custom_moonfly,
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
always_divide_middle = true,
globalstatus = true,
},
sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {
{ "filename", path = 1 },
{ "diff" },
{ "diagnostics", sources = { "nvim_lsp" } },
{ require("grapple").statusline, cond = require("grapple").exists },
},
lualine_x = {
"bo:filetype",
"encoding",
"bo:fileformat",
"progress",
"location",
},
lualine_y = {},
lualine_z = {},
},
lualine_x = {
"bo:filetype",
"encoding",
"bo:fileformat",
"progress",
"location",
},
lualine_y = {},
lualine_z = {},
},
})
end
return setup
})
end,
}