Skip to content

Commit 8676f28

Browse files
author
Ali Shahid
committed
rename and improve commits loading
1 parent f2f379b commit 8676f28

File tree

2 files changed

+99
-103
lines changed

2 files changed

+99
-103
lines changed

lua/packer_nvim.lua

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -60,172 +60,172 @@ return packer.startup {
6060

6161
use { -- Packer can manage itself
6262
'wbthomason/packer.nvim',
63-
commit = commits.packer,
63+
commit = commits.packer_nvim,
6464
}
6565

6666
-- Improve Start-UP time
6767
use { -- Speed up loading Lua modules in Neovim to improve startup time.
6868
'lewis6991/impatient.nvim',
69-
commit = commits.impatient,
69+
commit = commits.impatient_nvim,
7070
}
7171

7272
use { -- Easily speed up your neovim startup time!. A faster version of filetype.vim
7373
'nathom/filetype.nvim',
74-
commit = commits.filetype,
74+
commit = commits.filetype_nvim,
7575
}
7676

7777
use { -- colorscheme for (neo)vim written in lua specially made for Abstract
7878
'Abstract-IDE/Abstract-cs',
79-
commit = commits.Abstract_cs,
79+
-- commit = commits.Abstract_cs,
8080
branch = 'v2',
8181
}
8282

8383
use { -- Companion plugin for nvim-lspconfig that allows you to seamlessly install LSP servers locally (inside :echo stdpath("data")).
8484
'williamboman/nvim-lsp-installer',
85-
commit = commits.lsp_installer,
85+
commit = commits.nvim_lsp_installer,
8686
config = [[ require('plugins/nvim-lsp-installer') ]]
8787
}
8888

8989
use { -- A collection of common configurations for Neovim's built-in language server client
9090
'neovim/nvim-lspconfig',
91-
commit = commits.lspconfig,
91+
commit = commits.nvim_lspconfig,
9292
-- [loading with after causing errors. for now, disable it]
9393
-- after = "nvim-lsp-installer", -- make sure setup for nvim-lsp-installer executes before the setup for lspconfig
9494
config = [[ require('plugins/nvim-lspconfig') ]]
9595
}
9696

9797
use { -- vscode-like pictograms for neovim lsp completion items Topics
9898
'onsails/lspkind-nvim',
99-
commit = commits.lspkind,
99+
commit = commits.lspkind_nvim,
100100
config = [[ require('plugins/lspkind-nvim') ]]
101101
}
102102

103103
use { -- Nvim Treesitter configurations and abstraction layer
104104
'nvim-treesitter/nvim-treesitter',
105-
commit = commits.treesitter,
105+
commit = commits.nvim_treesitter,
106106
run = ':TSUpdate',
107107
requires = {'nvim-treesitter/playground', commit=commits.playground, opt = true}, -- Treesitter playground integrated into Neovim
108108
config = [[ require('plugins/nvim-treesitter') ]]
109109
}
110110

111111
use { -- A completion plugin for neovim coded in Lua.
112112
'hrsh7th/nvim-cmp',
113-
commit = commits.cmp,
113+
commit = commits.nvim_cmp,
114114
requires = {
115-
{"hrsh7th/cmp-nvim-lsp", commit=commits.cmp_lsp}, -- nvim-cmp source for neovim builtin LSP client
115+
{"hrsh7th/cmp-nvim-lsp", commit=commits.cmp_nvim_lsp}, -- nvim-cmp source for neovim builtin LSP client
116116
{"hrsh7th/cmp-buffer", commit=commits.cmp_buffer}, -- nvim-cmp source for buffer words.
117117
{"hrsh7th/cmp-path", commit=commits.cmp_path}, -- nvim-cmp source for filesystem paths.
118118
{"saadparwaiz1/cmp_luasnip", commit=commits.cmp_luasnip},-- luasnip completion source for nvim-cmp
119-
{"hrsh7th/cmp-nvim-lsp-signature-help", commit=commits.cmp_lsp_signature_help}, -- nvim-cmp source for displaying function signatures with the current parameter emphasized:
120-
{"hrsh7th/cmp-nvim-lua", ft = 'lua', commit=commits.cmp_lua}, -- nvim-cmp source for nvim lua
119+
{"hrsh7th/cmp-nvim-lsp-signature-help", commit=commits.cmp_nvim_lsp_signature_help}, -- nvim-cmp source for displaying function signatures with the current parameter emphasized:
120+
{"hrsh7th/cmp-nvim-lua", ft = 'lua', commit=commits.cmp_nvim_lua}, -- nvim-cmp source for nvim lua
121121
},
122122
config = [[ require('plugins/nvim-cmp') ]]
123123
}
124124

125125
use { -- Snippet Engine for Neovim written in Lua.
126126
'L3MON4D3/LuaSnip',
127-
commit = commits.luasnip,
127+
commit = commits.LuaSnip,
128128
requires = {"rafamadriz/friendly-snippets", commit=commits.friendly_snippets}, -- Snippets collection for a set of different programming languages for faster development.
129129
config = [[ require('plugins/LuaSnip') ]]
130130
}
131131

132132
use { -- Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
133133
'jose-elias-alvarez/null-ls.nvim',
134-
commit = commits.null_ls,
134+
commit = commits.null_ls_nvim,
135135
config = [[ require('plugins/null-ls_nvim') ]]
136136
}
137137

138138
use { -- A super powerful autopairs for Neovim. It support multiple character.
139139
'windwp/nvim-autopairs',
140-
commit = commits.autopairs,
140+
commit = commits.nvim_autopairs,
141141
config = [[ require('plugins/nvim-autopairs') ]]
142142
}
143143

144144
use { -- Find, Filter, Preview, Pick. All lua, all the time.
145145
'nvim-telescope/telescope.nvim',
146-
commit = commits.telescope,
146+
commit = commits.telescope_nvim,
147147
requires = {
148-
{'nvim-lua/popup.nvim', commit=commits.popup},
149-
{'nvim-lua/plenary.nvim', commit=commits.plenary},
150-
{'nvim-telescope/telescope-fzf-native.nvim', commit=commits.telescope_fzf_native, run = 'make'}, -- FZF sorter for telescope written in c
151-
{'nvim-telescope/telescope-file-browser.nvim', commit=commits.telescope_file_browser}, -- File Browser extension for telescope.nvim
152-
{'nvim-telescope/telescope-media-files.nvim', commit=commits.telescope_media_files}, -- Telescope extension to preview media files using Ueberzug.
153-
{'nvim-telescope/telescope-ui-select.nvim', commit=commits.telescope_ui_select}, -- It sets vim.ui.select to telescope.
148+
{'nvim-lua/popup.nvim', commit=commits.popup_nvim},
149+
{'nvim-lua/plenary.nvim', commit=commits.plenary_nvim},
150+
{'nvim-telescope/telescope-fzf-native.nvim', commit=commits.telescope_fzf_native_nvim, run = 'make'}, -- FZF sorter for telescope written in c
151+
{'nvim-telescope/telescope-file-browser.nvim', commit=commits.telescope_file_browser_nvim}, -- File Browser extension for telescope.nvim
152+
{'nvim-telescope/telescope-media-files.nvim', commit=commits.telescope_media_files_nvim}, -- Telescope extension to preview media files using Ueberzug.
153+
{'nvim-telescope/telescope-ui-select.nvim', commit=commits.telescope_ui_select_nvim}, -- It sets vim.ui.select to telescope.
154154
},
155155
config = [[ require('plugins/telescope_nvim') ]]
156156
}
157157

158158
use { -- Use (neo)vim terminal in the floating/popup window.
159159
'voldikss/vim-floaterm',
160-
commit = commits.floaterm,
160+
commit = commits.vim_floaterm,
161161
config = [[ require('plugins/vim-floaterm') ]]
162162
}
163163

164164
use { -- lua `fork` of vim-web-devicons for neovim
165165
'kyazdani42/nvim-web-devicons',
166-
commit = commits.web_devicons,
166+
commit = commits.nvim_web_devicons,
167167
config = [[ require('plugins/nvim-web-devicons') ]]
168168
}
169169

170170
use { -- Maximizes and restores the current window in Vim
171171
'szw/vim-maximizer',
172-
commit = commits.maximizer,
172+
commit = commits.vim_maximizer,
173173
config = [[ require('plugins/vim-maximizer') ]]
174174
}
175175

176176
use { -- Smart and powerful comment plugin for neovim. Supports commentstring, dot repeat, left-right/up-down motions, hooks, and more
177177
'numToStr/Comment.nvim',
178-
commit = commits.Comment,
178+
commit = commits.Comment_nvim,
179179
config = [[ require('plugins/Comment_nvim') ]]
180180
}
181181

182182
use {
183183
'JoosepAlviste/nvim-ts-context-commentstring', -- Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
184-
commit = commits.ts_context_commentstring,
184+
commit = commits.nvim_ts_context_commentstring,
185185
config = [[ require('plugins/nvim-ts-context-commentstring') ]]
186186
}
187187

188188
use { -- The fastest Neovim colorizer.
189189
'norcalli/nvim-colorizer.lua',
190-
commit = commits.colorizer,
190+
commit = commits.nvim_colorizer_lua,
191191
config = [[ require('plugins/nvim-colorizer_lua') ]]
192192
}
193193

194194
use { -- Indent guides for Neovim
195195
'lukas-reineke/indent-blankline.nvim',
196-
commit = commits.indent_blankline,
196+
commit = commits.indent_blankline_nvim,
197197
config = [[ require('plugins/indent-blankline_nvim') ]]
198198
}
199199

200200
use { -- Git signs written in pure lua
201201
'lewis6991/gitsigns.nvim',
202-
commit = commits.gitsigns,
203-
requires = {'nvim-lua/plenary.nvim', commit=commits.plenary},
202+
commit = commits.gitsigns_nvim,
203+
requires = {'nvim-lua/plenary.nvim', commit=commits.plenary_nvim},
204204
config = [[ require('plugins/gitsigns_nvim') ]]
205205
}
206206

207207
use { -- A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
208208
'folke/trouble.nvim',
209-
commit = commits.trouble,
209+
commit = commits.trouble_nvim,
210210
config = [[ require('plugins/trouble_nvim') ]]
211211
}
212212

213213
use { -- A snazzy bufferline for Neovim
214214
'akinsho/nvim-bufferline.lua',
215-
commit = commits.bufferline_lua,
216-
requires = {'kyazdani42/nvim-web-devicons', commit=commits.web_devicons},
215+
commit = commits.nvim_bufferline_lua,
216+
requires = {'kyazdani42/nvim-web-devicons', commit=commits.nvim_web_devicons},
217217
config = [[ require('plugins/nvim-bufferline_lua') ]]
218218
}
219219

220220
use { -- A File Explorer For Neovim Written In Lua
221221
'kyazdani42/nvim-tree.lua',
222-
commit = commits.tree_lua,
222+
commit = commits.nvim_tree_lua,
223223
config = [[ require('plugins/nvim-tree_lua') ]]
224224
}
225225

226226
use { -- A minimal, stylish and customizable statusline for Neovim written in Lua
227227
'feline-nvim/feline.nvim',
228-
commit = commits.feline,
228+
commit = commits.feline_nvim,
229229
-- requires = {
230230
-- 'nvim-lua/lsp-status.nvim',
231231
-- },
@@ -234,8 +234,8 @@ return packer.startup {
234234

235235
use { -- fast and highly customizable greeter for neovim.
236236
"goolord/alpha-nvim",
237-
commit = commits.alpha,
238-
requires = {'kyazdani42/nvim-web-devicons', commit=commits.web_devicons},
237+
commit = commits.alpha_nvim,
238+
requires = {'kyazdani42/nvim-web-devicons', commit=commits.nvim_web_devicons},
239239
config = [[ require('plugins/alpha-nvim') ]]
240240
}
241241

@@ -253,26 +253,26 @@ return packer.startup {
253253

254254
use { -- A simple wrapper around :mksession
255255
'Shatur/neovim-session-manager',
256-
commit = commits.session_manager,
256+
commit = commits.neovim_session_manager,
257257
config = [[ require('plugins/neovim-session-manager') ]]
258258
}
259259

260260
use { -- VS Code-like renaming UI for Neovim, writen in Lua.
261261
'filipdutescu/renamer.nvim',
262-
commit = commits.renamer,
262+
commit = commits.renamer_nvim,
263263
branch = 'master',
264-
requires = {'nvim-lua/plenary.nvim', commit=commits.plenary},
264+
requires = {'nvim-lua/plenary.nvim', commit=commits.plenary_nvim},
265265
config = [[ require('plugins/renamer_nvim') ]]
266266
}
267267

268268
use { -- EditorConfig plugin for Neovim
269269
'gpanders/editorconfig.nvim',
270-
commit = commits.editorconfig,
270+
commit = commits.editorconfig_nvim,
271271
}
272272

273273
use { -- Neovim motions on speed!
274274
'phaazon/hop.nvim',
275-
commit = commits.hop,
275+
commit = commits.hop_nvim,
276276
config = [[ require('plugins/hop_nvim') ]]
277277
}
278278

@@ -281,11 +281,11 @@ return packer.startup {
281281
---- for flutter/dart
282282
use { -- Tools to help create flutter apps in neovim using the native lsp
283283
'akinsho/flutter-tools.nvim',
284-
commit = commits.flutter_tools,
284+
commit = commits.flutter_tools_nvim,
285285
ft = {'dart'},
286286
requires = {
287-
{'nvim-lua/plenary.nvim', commit=commits.plenary},
288-
{'Neevash/awesome-flutter-snippets', commit=commits.awesome_flutter_snipppets}, -- collection snippets and shortcuts for commonly used Flutter functions and classes
287+
{'nvim-lua/plenary.nvim', commit=commits.plenary_nvim},
288+
{'Neevash/awesome-flutter-snippets', commit=commits.awesome_flutter_snippets}, -- collection snippets and shortcuts for commonly used Flutter functions and classes
289289
{
290290
'dart-lang/dart-vim-plugin', -- Syntax highlighting for Dart in Vim
291291
commit = commits.dart_vim_plugin,
@@ -298,9 +298,9 @@ return packer.startup {
298298
-- for Web-Development
299299
use { -- Use treesitter to auto close and auto rename html tag, work with html,tsx,vue,svelte,php.
300300
"windwp/nvim-ts-autotag",
301-
commit = commits.ts_autotag,
301+
commit = commits.nvim_ts_autotag,
302302
ft = {'html', 'tsx', 'vue', 'svelte', 'php'},
303-
requires = {'nvim-treesitter/nvim-treesitter', commit=commits.treesitter},
303+
requires = {'nvim-treesitter/nvim-treesitter', commit=commits.nvim_treesitter},
304304

305305
config = [[ require('plugins/nvim-ts-autotag') ]]
306306
}

lua/plugins/commits.lua

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,55 @@
11

2-
--[==[
3-
collections of commits used to publish stable release
4-
--]==]
5-
6-
72
return {
8-
awesome_flutter_snipppets = "",
9-
ts_context_commentstring = "",
10-
cmp_lsp_signature_help = "",
11-
telescope_file_browser = "",
12-
telescope_media_files = "",
13-
telescope_fzf_native = "",
14-
telescope_ui_select = "",
15-
friendly_snippets = "",
16-
indent_blankline = "",
17-
session_manager = "",
18-
dart_vim_plugin = "",
19-
bufferline_lua = "",
20-
flutter_tools = "",
21-
lsp_installer = "",
22-
editorconfig = "",
23-
goto_preview = "",
24-
web_devicons = "",
25-
Abstract_cs = "",
26-
cmp_luasnip = "",
27-
ts_autotag = "",
28-
treesitter = "",
29-
playground = "",
30-
cmp_buffer = "",
31-
lspconfig = "",
32-
impatient = "",
33-
colorizer = "",
34-
autopairs = "",
35-
telescope = "",
36-
maximizer = "",
37-
floaterm = "",
38-
tree_lua = "",
39-
gitsigns = "",
40-
filetype = "",
41-
cmp_path = "",
42-
lspkind = "",
43-
cmp_lua = "",
44-
cmp_lsp = "",
45-
renamer = "",
46-
null_ls = "",
47-
plenary = "",
48-
luasnip = "",
49-
Comment = "",
50-
trouble = "",
51-
packer = "",
52-
feline = "",
53-
penvim = "",
54-
popup = "",
55-
alpha = "",
56-
cmp = "",
57-
hop = "",
3+
Abstract_cs = "",
4+
Comment_nvim = "",
5+
LuaSnip = "",
6+
alpha_nvim = "",
7+
awesome_flutter_snippets = "",
8+
cmp_buffer = "",
9+
cmp_luasnip = "",
10+
cmp_nvim_lsp = "",
11+
cmp_nvim_lsp_signature_help = "",
12+
cmp_nvim_lua = "",
13+
cmp_path = "",
14+
dart_vim_plugin = "",
15+
editorconfig_nvim = "",
16+
feline_nvim = "",
17+
filetype_nvim = "",
18+
flutter_tools_nvim = "",
19+
friendly_snippets = "",
20+
gitsigns_nvim = "",
21+
goto_preview = "",
22+
hop_nvim = "",
23+
indent_blankline_nvim = "",
24+
lspkind_nvim = "",
25+
neovim_session_manager = "",
26+
null_ls_nvim = "",
27+
nvim_autopairs = "",
28+
nvim_bufferline_lua = "",
29+
nvim_cmp = "",
30+
nvim_colorizer_lua = "",
31+
nvim_lsp_installer = "",
32+
nvim_lspconfig = "",
33+
nvim_tree_lua = "",
34+
nvim_treesitter = "",
35+
nvim_ts_autotag = "",
36+
nvim_ts_context_commentstring = "",
37+
nvim_web_devicons = "",
38+
packer_nvim = "",
39+
penvim = "",
40+
playground = "",
41+
plenary_nvim = "",
42+
popup_nvim = "",
43+
renamer_nvim = "",
44+
scope_nvim = "",
45+
telescope_file_browser_nvim = "",
46+
telescope_fzf_native_nvim = "",
47+
telescope_media_files_nvim = "",
48+
telescope_nvim = "",
49+
telescope_ui_select_nvim = "",
50+
trouble_nvim = "",
51+
vim_floaterm = "",
52+
vim_maximizer = "",
53+
impatient_nvim = "",
5854
}
5955

0 commit comments

Comments
 (0)