Skip to content

Commit 6c5952b

Browse files
committed
[packer.nvim] add commit option to each plugins
1 parent faad0aa commit 6c5952b

File tree

1 file changed

+66
-22
lines changed

1 file changed

+66
-22
lines changed

lua/packer_nvim.lua

Lines changed: 66 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,52 @@ vim.cmd([[
4343
return packer.startup {
4444
function()
4545
-- Packer can manage itself
46-
use 'wbthomason/packer.nvim'
46+
use {
47+
'wbthomason/packer.nvim',
48+
commit = '4dedd3b'
49+
}
4750

4851
-- Improve Start-UP time
4952
use { -- Speed up loading Lua modules in Neovim to improve startup time.
50-
'lewis6991/impatient.nvim'
53+
'lewis6991/impatient.nvim',
54+
commit = '2337df7'
5155
}
5256

5357
use { -- Easily speed up your neovim startup time!. A faster version of filetype.vim
54-
'nathom/filetype.nvim'
58+
'nathom/filetype.nvim',
59+
commit = '25b5f7e'
5560
}
5661

5762
use { -- colorscheme for (neo)vim written in lua specially made for roshnivim
5863
'shaeinst/roshnivim-cs',
59-
branch = 'v2',
64+
commit = '761cd55',
65+
branch = 'v2'
6066
}
6167

6268
use { -- A collection of common configurations for Neovim's built-in language server client
6369
'neovim/nvim-lspconfig',
70+
commit = 'f183d35',
6471
config = [[ require('plugins/nvim-lspconfig') ]]
6572
}
6673

6774
use { -- Companion plugin for nvim-lspconfig that allows you to seamlessly install LSP servers locally (inside :echo stdpath("data")).
6875
'williamboman/nvim-lsp-installer',
76+
commit = 'b1209e9',
6977
config = [[ require('plugins/nvim-lsp-installer') ]]
7078
}
7179

7280
use { -- vscode-like pictograms for neovim lsp completion items Topics
7381
'onsails/lspkind-nvim',
82+
commit = '93e98a0',
7483
config = [[ require('plugins/lspkind-nvim') ]]
7584
}
7685

7786
use { -- Nvim Treesitter configurations and abstraction layer
7887
'nvim-treesitter/nvim-treesitter',
88+
commit = 'f62fb16',
7989
requires = {
8090
'nvim-treesitter/playground', -- Treesitter playground integrated into Neovim
91+
commit = '7dbcd4d',
8192
opt = true
8293
},
8394
run = ':TSUpdate',
@@ -86,115 +97,142 @@ return packer.startup {
8697

8798
use { -- A completion plugin for neovim coded in Lua.
8899
'hrsh7th/nvim-cmp',
100+
commit = '27970d8',
89101
requires = {
90-
"hrsh7th/cmp-nvim-lsp", -- nvim-cmp source for neovim builtin LSP client
91-
{"hrsh7th/cmp-nvim-lua", ft = 'lua'}, -- nvim-cmp source for nvim lua
92-
"hrsh7th/cmp-buffer", -- nvim-cmp source for buffer words.
93-
"hrsh7th/cmp-path", -- nvim-cmp source for filesystem paths.
94-
-- "hrsh7th/cmp-calc", -- nvim-cmp source for math calculation.
95-
"saadparwaiz1/cmp_luasnip" -- luasnip completion source for nvim-cmp
102+
{"hrsh7th/cmp-nvim-lsp", commit="ebdfc20"}, -- nvim-cmp source for neovim builtin LSP client
103+
{"hrsh7th/cmp-nvim-lua", commit="d276254", ft = 'lua'}, -- nvim-cmp source for nvim lua
104+
{"hrsh7th/cmp-buffer", commit="d66c4c2"}, -- nvim-cmp source for buffer words.
105+
{"hrsh7th/cmp-path", commit="466b6b8"}, -- nvim-cmp source for filesystem paths.
106+
{"saadparwaiz1/cmp_luasnip", commit="b108297"} -- luasnip completion source for nvim-cmp
96107
},
97108
config = [[ require('plugins/nvim-cmp') ]]
98109
}
99110

100111
use { -- Snippet Engine for Neovim written in Lua.
101112
'L3MON4D3/LuaSnip',
113+
commit = '69cb81c',
102114
requires = {
103115
"rafamadriz/friendly-snippets", -- Snippets collection for a set of different programming languages for faster development.
116+
commit = 'e302658',
104117
},
105118
config = [[ require('plugins/LuaSnip') ]]
106119
}
107120

108121
use { -- Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
109122
'jose-elias-alvarez/null-ls.nvim',
123+
commit = '64d9e2b',
110124
config = [[ require('plugins/null-ls_nvim') ]]
111125
}
112126

113127
use { -- A super powerful autopairs for Neovim. It support multiple character.
114128
'windwp/nvim-autopairs',
129+
commit = '06535b1',
115130
config = [[ require('plugins/nvim-autopairs') ]]
116131
}
117132

118133
use { -- Find, Filter, Preview, Pick. All lua, all the time.
119134
'nvim-telescope/telescope.nvim',
135+
commit = '6e7ee38',
120136
requires = {
121-
{'nvim-lua/popup.nvim'},
122-
{'nvim-lua/plenary.nvim'},
123-
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}, -- FZF sorter for telescope written in c
124-
{'nvim-telescope/telescope-file-browser.nvim'}, -- File Browser extension for telescope.nvim
125-
{'nvim-telescope/telescope-media-files.nvim'}, -- Telescope extension to preview media files using Ueberzug.
137+
{'nvim-lua/popup.nvim', commit='b7404d3'},
138+
{'nvim-lua/plenary.nvim', commit='470d0e8'},
139+
{'nvim-telescope/telescope-fzf-native.nvim', commit='8ec164b', run = 'make'}, -- FZF sorter for telescope written in c
140+
{'nvim-telescope/telescope-file-browser.nvim', commit='c6f5104'}, -- File Browser extension for telescope.nvim
141+
{'nvim-telescope/telescope-media-files.nvim', commit='513e4ee'}, -- Telescope extension to preview media files using Ueberzug.
126142
},
127143
config = [[ require('plugins/telescope_nvim') ]]
128144
}
129145

130146
use { -- Use (neo)vim terminal in the floating/popup window.
131147
'voldikss/vim-floaterm',
148+
commit = '6244d17',
132149
config = [[ require('plugins/vim-floaterm') ]]
133150
}
134151

135152
use { -- lua `fork` of vim-web-devicons for neovim
136153
'kyazdani42/nvim-web-devicons',
154+
commit = '09e6231',
137155
config = [[ require('plugins/nvim-web-devicons') ]]
138156
}
139157

140158
use { -- Maximizes and restores the current window in Vim
141159
'szw/vim-maximizer',
160+
commit = '2e54952',
142161
config = [[ require('plugins/vim-maximizer') ]]
143162
}
144163

145164
use { -- Smart and powerful comment plugin for neovim. Supports commentstring, dot repeat, left-right/up-down motions, hooks, and more
146165
'numToStr/Comment.nvim',
166+
commit = '0aaea32',
147167
config = [[ require('plugins/Comment_nvim') ]]
148168
}
149169

150170
use { -- The fastest Neovim colorizer.
151171
'norcalli/nvim-colorizer.lua',
172+
commit = '36c610a',
152173
config = [[ require('plugins/nvim-colorizer_lua') ]]
153174
}
154175

155176
use {
156177
'lukas-reineke/indent-blankline.nvim',
178+
commit = 'cd5b800',
157179
config = [[ require('plugins/indent-blankline_nvim') ]]
158180
}
159181

160182
use { -- Git signs written in pure lua
161183
'lewis6991/gitsigns.nvim',
162-
requires = {'nvim-lua/plenary.nvim'},
184+
commit = '83ab3ca',
185+
requires = {
186+
'nvim-lua/plenary.nvim',
187+
commit="470d0e8"
188+
},
163189
config = [[ require('plugins/gitsigns_nvim') ]]
164190
}
165191

166192
use { -- A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
167193
'folke/trouble.nvim',
194+
commit = '691d490',
168195
config = [[ require('plugins/trouble_nvim') ]]
169196
}
170197

171198
use { -- A snazzy bufferline for Neovim
172199
'akinsho/nvim-bufferline.lua',
173-
requires = 'kyazdani42/nvim-web-devicons',
200+
commit = '874f869',
201+
requires = {
202+
'kyazdani42/nvim-web-devicons',
203+
commit="09e6231"
204+
},
174205
config = [[ require('plugins/nvim-bufferline_lua') ]]
175206
}
176207

177208
use { -- A File Explorer For Neovim Written In Lua
178209
'kyazdani42/nvim-tree.lua',
210+
commit = '618ea25',
179211
config = [[ require('plugins/nvim-tree_lua') ]]
180212
}
181213

182214
use { -- A minimal, stylish and customizable statusline for Neovim written in Lua
183215
'feline-nvim/feline.nvim',
216+
commit = '290bea8',
184217
-- requires = {
185218
-- 'nvim-lua/lsp-status.nvim',
186219
-- },
187220
config = [[ require('plugins/feline_nvim') ]]
188221
}
189222

190223
use { -- fast and highly customizable greeter for neovim.
191-
"goolord/alpha-nvim",
192-
requires = {'kyazdani42/nvim-web-devicons'},
224+
'goolord/alpha-nvim',
225+
commit = '534a86b',
226+
requires = {
227+
'kyazdani42/nvim-web-devicons',
228+
commit='09e6231'
229+
},
193230
config = [[ require('plugins/alpha-nvim') ]]
194231
}
195232

196233
use {
197234
'shaeinst/penvim', -- smart indent and project detector with project based config loader
235+
commit = '1e8c4c5',
198236
config = [[ require('plugins/penvim') ]]
199237
}
200238

@@ -203,12 +241,14 @@ return packer.startup {
203241
---- for flutter/dart
204242
use { -- Tools to help create flutter apps in neovim using the native lsp
205243
'akinsho/flutter-tools.nvim',
244+
commit = '53912f2',
206245
ft = {'dart'},
207246
requires = {
208-
{'nvim-lua/plenary.nvim'},
209-
{'Neevash/awesome-flutter-snippets'}, -- collection snippets and shortcuts for commonly used Flutter functions and classes
247+
{'nvim-lua/plenary.nvim', commit = '470d0e8'},
248+
{'Neevash/awesome-flutter-snippets', commit = 'ce19e28'}, -- collection snippets and shortcuts for commonly used Flutter functions and classes
210249
{
211250
'dart-lang/dart-vim-plugin', -- Syntax highlighting for Dart in Vim
251+
commit = '42e6f57',
212252
config = [[ require('plugins/dart-vim-plugin') ]]
213253
}
214254
},
@@ -218,8 +258,12 @@ return packer.startup {
218258
-- for Web-Development
219259
use { -- Use treesitter to auto close and auto rename html tag, work with html,tsx,vue,svelte,php.
220260
"windwp/nvim-ts-autotag",
261+
commit = '57035b5',
221262
ft = {'html', 'tsx', 'vue', 'svelte', 'php'},
222-
requires = {'nvim-treesitter/nvim-treesitter'},
263+
requires = {
264+
'nvim-treesitter/nvim-treesitter',
265+
commit = 'f62fb16',
266+
},
223267
config = [[ require('plugins/nvim-ts-autotag') ]]
224268
}
225269
-- ━━━━━━━━━━━━━━❰ end of DEVELOPMENT ❱━━━━━━━━━━━━━ --

0 commit comments

Comments
 (0)