81 lines
1.9 KiB
Lua
81 lines
1.9 KiB
Lua
require("lz.n").load({
|
|
{
|
|
"theme-loader",
|
|
event = "VimEnter",
|
|
load = function()
|
|
local settings = require("nix-info").settings
|
|
local theme_code = settings.themeSetup
|
|
|
|
local func, err = loadstring(theme_code)
|
|
if func then
|
|
func()
|
|
else
|
|
print("Error loading theme code: " .. err)
|
|
end
|
|
|
|
end,
|
|
},
|
|
{
|
|
"lualine.nvim",
|
|
event = "VimEnter",
|
|
after = function()
|
|
require("lualine").setup({
|
|
options = {
|
|
icons_enabled = true,
|
|
globalstatus = true,
|
|
component_separators = "",
|
|
section_separators = "",
|
|
},
|
|
sections = {
|
|
lualine_a = { "mode" },
|
|
lualine_b = { "branch", "diagnostics" },
|
|
lualine_c = { "filename" },
|
|
|
|
lualine_x = { "lsp_status" },
|
|
lualine_y = { "progress" },
|
|
lualine_z = { "location" },
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"zen-mode.nvim",
|
|
cmd = "ZenMode",
|
|
after = function()
|
|
require("zen-mode").setup({
|
|
window = {
|
|
options = {
|
|
linebreak = true,
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"which-key.nvim",
|
|
event = "VimEnter",
|
|
before = function()
|
|
require("lz.n").trigger_load("mini.nvim")
|
|
end,
|
|
after = function()
|
|
require("which-key").setup({
|
|
preset = "modern",
|
|
delay = 200,
|
|
icons = {
|
|
-- set icon mappings to true if you have a Nerd Font
|
|
mappings = true,
|
|
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
|
|
-- default which-key.nvim defined Nerd Font icons, otherwise define a string table
|
|
keys = {},
|
|
},
|
|
|
|
-- Document existing key chains
|
|
spec = {
|
|
{ "<leader>s", group = "[S]earch" },
|
|
{ "<leader>t", group = "[T]oggle" },
|
|
{ "<leader>h", group = "Git [H]unk", mode = { "n", "v" } },
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}) |