Neovim/lua/core/bootstrap.lua

119 lines
4.0 KiB
Lua
Raw Normal View History

2023-11-17 11:24:21 +00:00
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- bootstrap lazy.nvim
-- stylua: ignore
2023-11-27 22:37:34 +00:00
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git",
"--branch=stable",
2023-11-17 11:24:21 +00:00
lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
2023-11-22 17:58:50 +00:00
{ "LazyVim/LazyVim" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins
2023-11-17 11:24:21 +00:00
{ import = "plugins" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
2024-05-17 08:44:36 +00:00
-- If you know what you're doing, you can set this to `true`
-- to have all your custom plugins lazy-loaded by default.
2023-11-17 11:24:21 +00:00
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
2023-11-22 17:58:50 +00:00
-- version = "*", -- try installing the latest stable version for plugins that support semver
keymaps = true,
2023-11-17 11:24:21 +00:00
},
2023-11-22 17:58:50 +00:00
-- install = { colorscheme = { "tokyonight" } },
checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
2023-11-17 11:24:21 +00:00
},
icons = {
2023-11-27 22:37:34 +00:00
ft = "",
lazy = "󰂠 ",
loaded = "",
not_loaded = "",
2023-11-17 11:24:21 +00:00
misc = {
dots = "󰇘",
},
dap = {
Stopped = { "󰁕 ", "DiagnosticWarn", "DapStoppedLine" },
Breakpoint = "",
BreakpointCondition = "",
BreakpointRejected = { "", "DiagnosticError" },
LogPoint = ".>",
},
diagnostics = {
Error = "",
Warn = "",
2023-11-22 17:58:50 +00:00
Hint = "",
2023-11-17 11:24:21 +00:00
Info = "",
},
git = {
2023-11-27 22:37:34 +00:00
added = "+",
modified = "~",
removed = "-",
2023-11-17 11:24:21 +00:00
},
kinds = {
Array = "",
Boolean = "󰨙 ",
Class = "",
Codeium = "󰘦 ",
Color = "",
Control = "",
Collapsed = "",
Constant = "󰏿 ",
Constructor = "",
Copilot = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
Function = "󰊕 ",
Interface = "",
Key = "",
Keyword = "",
Method = "󰊕 ",
Module = "",
Namespace = "󰦮 ",
Null = "",
Number = "󰎠 ",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
Snippet = "",
String = "",
Struct = "󰆼 ",
TabNine = "󰏚 ",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "󰀫 ",
},
},
})