Bettter use of Lazy #2

Closed
atomaka wants to merge 8 commits from plugins-to-files into master
3 changed files with 37 additions and 15 deletions

View file

@ -1,3 +1,3 @@
require "options"
require "plugins"
require "config.lazy"
require "config"

View file

@ -0,0 +1,34 @@
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",
lazypath
})
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
spec = {
{import = "plugins"},
},
defaults = {
lazy = false,
version = false,
},
checker = {enabled = false},
performance = {
rtp = {
disabled_plugins = {
"gzip",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})

View file

@ -1,16 +1,4 @@
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,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
return {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"famiu/bufdelete.nvim",
@ -34,4 +22,4 @@ require("lazy").setup({
"tpope/vim-markdown",
"tpope/vim-rails",
"vim-ruby/vim-ruby",
})
}