Compare commits
8 commits
master
...
plugins-to
Author | SHA1 | Date | |
---|---|---|---|
a13d09dc83 | |||
bf09e84515 | |||
937a4a4c9d | |||
d287f0885e | |||
7aa5218335 | |||
d2eb7896a9 | |||
fe365b7702 | |||
efe501ff74 |
3 changed files with 37 additions and 15 deletions
|
@ -1,3 +1,3 @@
|
||||||
require "options"
|
require "options"
|
||||||
require "plugins"
|
require "config.lazy"
|
||||||
require "config"
|
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"
|
return {
|
||||||
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({
|
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
|
@ -34,4 +22,4 @@ require("lazy").setup({
|
||||||
"tpope/vim-markdown",
|
"tpope/vim-markdown",
|
||||||
"tpope/vim-rails",
|
"tpope/vim-rails",
|
||||||
"vim-ruby/vim-ruby",
|
"vim-ruby/vim-ruby",
|
||||||
})
|
}
|
Loading…
Reference in a new issue