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
+1 -1
View File
@@ -1,4 +1,4 @@
require("cole.remap")
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)