Refactor: switch from packer to lazy.vim

- Packer is no longer maintained (as of August, 2023)
This commit is contained in:
2026-04-22 09:27:59 -05:00
parent b8c25c7bc1
commit 0c59342399
5 changed files with 37 additions and 35 deletions
+7
View File
@@ -1 +1,8 @@
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(lazypath)
require("cole") require("cole")
+13
View File
@@ -0,0 +1,13 @@
{
"LuaSnip": { "branch": "master", "commit": "a62e1083a3cfe8b6b206e7d3d33a51091df25357" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "77550f2f6cbf0959ef1583d845661af075f3442b" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "0a3b42c3e503df87aef6d6513e13148381495c3a" },
"mason.nvim": { "branch": "main", "commit": "12ddd182d9efbdc848b540f16484a583d52da0fb" },
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
"nvim-lspconfig": { "branch": "master", "commit": "e146efacbafed3789ac568abcc5a981c5decaa58" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }
}
+1 -1
View File
@@ -1,4 +1,4 @@
require("cole.remap") require("cole.remap")
require("cole.set") require("cole.set")
require("cole.packer") require("cole.lazy")
+16
View File
@@ -0,0 +1,16 @@
require("lazy").setup({ -- Fuzzy finder
{
'nvim-telescope/telescope.nvim',
tag = '0.1.5',
dependencies = {'nvim-lua/plenary.nvim'}
}, -- syntax highlighting
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate'
}, -- LSP support
{
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
dependencies = {{'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, {'neovim/nvim-lspconfig'},
{'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-nvim-lsp'}, {'L3MON4D3/LuaSnip'}}
}})
-34
View File
@@ -1,34 +0,0 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Fuzzy finder
use {
'nvim-telescope/telescope.nvim',
tag = '0.1.5',
-- or, branch = '0.1.x',
requires = {{'nvim-lua/plenary.nvim'}}
}
-- syntax highlighting
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate'
}
-- LSP support
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
requires = {{'williamboman/mason.nvim'}, {'williamboman/mason-lspconfig.nvim'}, {'neovim/nvim-lspconfig'},
{'hrsh7th/nvim-cmp'}, {'hrsh7th/cmp-nvim-lsp'}, {'L3MON4D3/LuaSnip'}}
}
use {"williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim"}
end)