Moving to individual plugin files for lazy
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
30
lua/taken/lazy.lua
Normal file
30
lua/taken/lazy.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
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)
|
||||
|
||||
local lazy = require("lazy")
|
||||
|
||||
local plugins = {
|
||||
{ import = "taken.plugins" },
|
||||
{ import = "taken.plugins.lsp" }
|
||||
}
|
||||
|
||||
local opts = {
|
||||
dev = {
|
||||
path = "~/git/nvim",
|
||||
},
|
||||
checker = {
|
||||
enabled = true,
|
||||
},
|
||||
}
|
||||
|
||||
lazy.setup(plugins, opts)
|
||||
Reference in New Issue
Block a user