pojokcodeid.nvim-lazy/lua/config/lazy.lua

55 lines
1.4 KiB
Lua
Raw Normal View History

2023-01-15 00:17:41 +07:00
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- bootstrap lazy.nvim
-- stylua: ignore
2024-03-20 04:47:13 +07:00
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
lazypath })
2023-01-15 00:17:41 +07:00
end
2024-04-14 23:40:59 +07:00
local icons = require("user.icons").ui
2023-01-15 00:17:41 +07:00
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
2023-01-24 19:53:48 +07:00
vim.g.mapleader = " "
vim.g.maplocalleader = " "
2023-03-16 17:56:13 +07:00
vim.diagnostic.config({ virtual_lines = false })
2023-01-15 00:17:41 +07:00
require("lazy").setup({
spec = {
2023-02-19 13:21:14 +07:00
{ import = "plugins" },
{ import = "custom.plugins" },
2023-01-15 00:17:41 +07:00
},
defaults = {
lazy = true, -- every plugin is lazy-loaded by default
version = "*", -- try installing the latest stable version for plugins that support semver
},
2024-03-20 04:47:13 +07:00
ui = {
2024-04-21 09:10:08 +07:00
backdrop = 100,
2024-03-20 04:47:13 +07:00
border = "rounded",
browser = "chrome",
throttle = 40,
custom_keys = { ["<localleader>l"] = false },
icons = {
2024-04-14 23:40:59 +07:00
ft = icons.ft,
lazy = icons.Bell .. " ",
loaded = icons.CheckCircle,
not_loaded = icons.not_loaded,
2024-03-20 04:47:13 +07:00
},
},
2023-01-24 19:53:48 +07:00
change_detection = { enabled = false, notify = false },
2023-01-15 00:17:41 +07:00
checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
"matchit",
"matchparen",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
"lazyredraw",
},
},
},
})