diff options
| author | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-10-20 15:11:39 +0200 |
|---|---|---|
| committer | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-10-20 15:11:39 +0200 |
| commit | 78111e1da6b36893e76ea217f0531ee1729c9718 (patch) | |
| tree | 74bf9815762cb42198c23a5392bd044a6039a0fc /lua/config | |
| parent | bf598bd1d51f0ad664d3ba67d7f2d1871aba7d10 (diff) | |
| download | nvim-78111e1da6b36893e76ea217f0531ee1729c9718.zip nvim-78111e1da6b36893e76ea217f0531ee1729c9718.tar.gz | |
feat(plugins): setup lazy.nvim
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/lazy.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua new file mode 100644 index 0000000..a2a92ab --- /dev/null +++ b/lua/config/lazy.lua @@ -0,0 +1,31 @@ +-- Bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +--setup lazy.nvim +require("lazy").setup({ + spec = { + -- import plugins from specific directory + { import = "plugins" }, + }, + -- setup correct colorscheme + install = { colorscheme = { "gruvbox"} }, + -- automatically check for plugin updates + checker = { enabled = true }, + rocks = { + enabled = false + }, +}) |
