mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
feat: use lazy.nvim
This commit is contained in:
parent
2664b49a62
commit
5c8c442da4
37 changed files with 892 additions and 809 deletions
|
|
@ -1,18 +1,21 @@
|
|||
local is_bootstrap = false
|
||||
local install_path = vim.fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||
is_bootstrap = true
|
||||
vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
|
||||
vim.cmd "packadd packer.nvim"
|
||||
end
|
||||
if is_bootstrap then
|
||||
print "=================================="
|
||||
print " Plugins are being installed"
|
||||
print " Wait until Packer completes,"
|
||||
print " then restart nvim"
|
||||
print "=================================="
|
||||
return
|
||||
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 "keymap"
|
||||
require "options"
|
||||
require("keymap")
|
||||
require("options")
|
||||
|
||||
require("lazy").setup("plugins", {
|
||||
install = { colorscheme = { "catppuccin", "one-nvim" } },
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue