Use lazy differently
This commit is contained in:
parent
4a79421eef
commit
45bc8660ff
3 changed files with 37 additions and 15 deletions
|
@ -1,3 +1,3 @@
|
|||
require "options"
|
||||
require "plugins"
|
||||
require "config.lazy"
|
||||
require "config"
|
||||
|
|
34
nvim/.config/nvim/lua/config/lazy.lua
Normal file
34
nvim/.config/nvim/lua/config/lazy.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
|
@ -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",
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue