Modified nvim config, moved lazy into it's own file so init.lua is just 4 requries

This commit is contained in:
Kyren223
2024-06-28 23:26:54 +03:00
parent b24eddefb5
commit 72035aa419
2 changed files with 15 additions and 15 deletions

View File

@@ -1,19 +1,5 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("plugin-manager")
require("options")
require("keymaps")
require("autocmds")
require("lazy").setup("plugins")

View File

@@ -0,0 +1,14 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")