1
Fork 0
satellite/home/features/neovim/config/lua/my/lazy.lua

57 lines
1.3 KiB
Lua
Raw Normal View History

2023-01-10 02:38:06 +01:00
local M = {}
2023-12-02 06:04:57 +01:00
local function importFrom(p)
return { import = p }
end
2023-01-10 02:38:06 +01:00
function M.setup()
2023-12-21 16:21:14 +01:00
require("lazy").setup({
2024-10-13 02:34:34 +02:00
require("my.themes"),
{
dir = "/home/moon/projects/sibilantmoon/vim",
ft = "sibilantmoon",
name = "sibilantmoon",
},
unpack(require("nix").lazy),
2023-12-21 16:21:14 +01:00
}, {
defaults = { lazy = true },
install = {
-- install missing plugins on startup. this doesn't increase startup time.
missing = true,
-- try to load one of these colorschemes when starting an installation during startup
colorscheme = { "rose-pine", "catpuccin" },
},
change_detection = {
enabled = false,
notify = false,
},
dev = {
-- Fallback to git when local plugin doesn't exist
fallback = true,
2023-12-21 16:21:14 +01:00
-- Directory where I store my local plugin projects
path = vim.g.nix_projects_dir,
2024-05-28 02:39:42 +02:00
patterns = { "prescientmoon" },
2023-12-21 16:21:14 +01:00
},
performance = {
rtp = {
paths = { vim.g.nix_extra_runtime },
disabled_plugins = {
"gzip",
"matchit",
"matchparen",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
2023-09-04 04:58:39 +02:00
},
2023-01-10 02:38:06 +01:00
},
2023-12-21 16:21:14 +01:00
},
})
2023-01-10 02:38:06 +01:00
end
vim.keymap.set("n", "<leader>L", "<cmd>Lazy<cr>", { desc = "[L]azy ui" })
return M