Add: first import
This commit is contained in:
commit
82641f61be
23 changed files with 800 additions and 0 deletions
19
lua/pm.lua
Normal file
19
lua/pm.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- Chemin où lazy.nvim sera installé
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
|
||||
-- Vérifie si lazy.nvim est déjà installé, sinon le clone automatiquement
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
print("Clonage de lazy.nvim...")
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- Utilise la branche stable
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({ import = "plugins" })
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue