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
|
-- Initialize Lazy package manager
|
||||||
require("lazy_init")
|
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
|
-- Initialize the sticky terminal window at the bottom
|
||||||
require("terminal").setup()
|
require("terminal").setup()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,19 @@
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable", -- latest stable release
|
"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
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