Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace packer with lazy #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"LuaSnip": { "branch": "master", "commit": "878ace11983444d865a72e1759dbcc331d1ace4c" },
"bufferline.nvim": { "branch": "main", "commit": "6ecd37e0fa8b156099daedd2191130e083fb1490" },
"catppuccin": { "branch": "main", "commit": "7a4bcdadafc59a5bedbd866c643fa486d8cca4a1" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
"git-blame.nvim": { "branch": "master", "commit": "39df33dad2cbf4eb9d17264bcda0c12e670ef1c2" },
"gitsigns.nvim": { "branch": "main", "commit": "b14b9fba7d085ed8c11392aa51e575de84822bb1" },
"lazy.nvim": { "branch": "main", "commit": "59335c5b9d116f5d3948f833288a89e2a829a005" },
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
"markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" },
"nvim-autopairs": { "branch": "master", "commit": "de4f7138a68d5d5063170f2182fd27faf06b0b54" },
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-lspconfig": { "branch": "master", "commit": "ac478757efcde1ac346f7044ab774e7cbb482533" },
"nvim-tree.lua": { "branch": "master", "commit": "7dcda5d3b6d2fce7b7baa471b7ad6525383e27bb" },
"nvim-treesitter": { "branch": "master", "commit": "d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1" },
"nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
"nvim-web-devicons": { "branch": "master", "commit": "45d0237c427baba8cd05e0ab26d30e2ee58c2c82" },
"plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
"telescope.nvim": { "branch": "master", "commit": "54930e1abfc94409e1bb9266e752ef8379008592" }
}
96 changes: 45 additions & 51 deletions nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,61 +1,55 @@
local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
return false
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

local packer_bootstrap = ensure_packer()
vim.opt.rtp:prepend(lazypath)

return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/nvim-cmp'
use 'L3MON4D3/LuaSnip'
use 'neovim/nvim-lspconfig'
use 'nvimtools/none-ls.nvim'
use 'windwp/nvim-ts-autotag'
use 'windwp/nvim-autopairs'
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
use 'nvim-lualine/lualine.nvim'
use 'nvim-lua/plenary.nvim'
use {
'nvim-telescope/telescope.nvim',
require("lazy").setup({
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/nvim-cmp',
'L3MON4D3/LuaSnip',
'neovim/nvim-lspconfig',
'nvim-tools/none-ls.nvim',
'windwp/nvim-ts-autotag',
'windwp/nvim-autopairs',
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
'nvim-lualine/lualine.nvim',
'nvim-lua/plenary.nvim',
{
'nvim-telescope/telescope.nvim',
tag = '0.1.3',
requires = { {'nvim-lua/plenary.nvim'} }
}
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
use 'norcalli/nvim-colorizer.lua'
use 'lewis6991/gitsigns.nvim'
use {
dependencies = { 'nvim-lua/plenary.nvim' }
},
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
'norcalli/nvim-colorizer.lua',
'lewis6991/gitsigns.nvim',
{
'iamcco/markdown-preview.nvim',
run = 'cd app && yarn install',
setup = function() vim.g.mkdp_filetypes = { "markdown" } end,
ft = { "markdown" }
}
use 'JoosepAlviste/nvim-ts-context-commentstring'
use {
'numToStr/Comment.nvim',
requires = { 'JoosepAlviste/nvim-ts-context-commentstring' }
}
use 'nvim-tree/nvim-web-devicons'
use 'nvim-tree/nvim-tree.lua'
use 'f-person/git-blame.nvim'
use { 'catppuccin/nvim', as = 'catppuccin' }
use {
config = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
ft = "markdown"
},
'numToStr/Comment.nvim',
'nvim-tree/nvim-web-devicons',
'nvim-tree/nvim-tree.lua',
'f-person/git-blame.nvim',
{ 'catppuccin/nvim', name = 'catppuccin', priority = 1000 },
{
'akinsho/bufferline.nvim',
version = '*',
requires = { 'nvim-tree/nvim-web-devicons' }
dependencies = { 'nvim-tree/nvim-web-devicons' }
}

-- automatically set up your configuration after cloning packer.nvim
if packer_bootstrap then
require('packer').sync()
end
end)
})