Refactor init.lua and move the initialization of lazy plugins into the
lazy_init file
This commit is contained in:
parent
1d2e173db6
commit
7a81af9ab4
2 changed files with 15 additions and 11 deletions
|
|
@ -24,9 +24,6 @@ vim.opt = require("vim_opt")
|
|||
-- Initialize Lazy package manager
|
||||
require("lazy_init")
|
||||
|
||||
-- Initialize plugins, add a plugin by creating a new file in the plugins dir
|
||||
require("lazy").setup("plugs")
|
||||
|
||||
-- Initialize the sticky terminal window at the bottom
|
||||
require("terminal").setup()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Initialize plugins, add a plugin by creating a new file in the plugins dir
|
||||
require("lazy").setup("plugs", {
|
||||
rocks = {
|
||||
hererocks = true,
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue