Skip to content

Commit b2e7003

Browse files
committed
packer.nvim has been replaced by lazy.nvim
1 parent e8b97a8 commit b2e7003

File tree

4 files changed

+51
-47
lines changed

4 files changed

+51
-47
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- settings for plugins and list plugins.
2-
require("user.packer")
2+
require("user.plugins")
33
-- settings for everforest colors.
44
require("everforest").setup {
55
background = "hard",

lazy-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"LuaSnip": { "branch": "master", "commit": "b152822e1a4bafb6bdf11a16cc26525cbd95ee00" },
3+
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
4+
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
5+
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
6+
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
7+
"everforest-nvim": { "branch": "main", "commit": "5e0e32a569fb464911342f0d421721cc1c94cf25" },
8+
"friendly-snippets": { "branch": "main", "commit": "d5f74ce4dfdd82848f3f4eac65fe6e29ac5df4c2" },
9+
"lazy.nvim": { "branch": "main", "commit": "3f13f080434ac942b150679223d54f5ca91e0d52" },
10+
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
11+
"nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
12+
"nvim-cmp": { "branch": "main", "commit": "8f3c541407e691af6163e2447f3af1bd6e17f9a3" },
13+
"packer.nvim": { "branch": "master", "commit": "ea0cc3c59f67c440c5ff0bbe4fb9420f4350b9a3" }
14+
}

lua/user/packer.lua

Lines changed: 0 additions & 46 deletions
This file was deleted.

lua/user/plugins.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- check and install lazy if unavailable.
2+
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
3+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
4+
vim.fn.system({'git', 'clone', '--depth=1', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath})
5+
end
6+
vim.opt.rtp:prepend(lazypath)
7+
8+
require("lazy").setup({
9+
-- Plugin for packer starter.
10+
'wbthomason/packer.nvim',
11+
-- Plugin for everforest colorscheme.
12+
'OurCodeBase/everforest-nvim',
13+
-- Plugin for lualine for ui.
14+
'nvim-lualine/lualine.nvim',
15+
-- Plugin for auto pairs.
16+
{
17+
"windwp/nvim-autopairs", event = "InsertEnter",
18+
config = function()
19+
require("nvim-autopairs").setup {}
20+
end
21+
},
22+
-- Plugin for nvim-completion.
23+
'hrsh7th/nvim-cmp',
24+
-- Plugin for buffer completion.
25+
'hrsh7th/cmp-buffer',
26+
-- Plugin for path completion.
27+
'hrsh7th/cmp-path',
28+
-- Plugin for cmdline completion.
29+
'hrsh7th/cmp-cmdline',
30+
-- Plugin for snippets.
31+
'L3MON4D3/LuaSnip',
32+
'saadparwaiz1/cmp_luasnip',
33+
-- Plugin for snippet collection.
34+
'OurCodeBase/friendly-snippets',
35+
})
36+

0 commit comments

Comments
 (0)