Skip to content

Commit b1fdf1c

Browse files
author
Ali Shahid
committed
[packer_nvim] update
1 parent 9f79677 commit b1fdf1c

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

lua/packer_nvim.lua

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,15 @@ return packer.startup {
7171
branch = 'v2',
7272
}
7373

74-
use { -- Companion plugin for nvim-lspconfig that allows you to seamlessly install LSP servers locally (inside :echo stdpath("data")).
75-
'williamboman/nvim-lsp-installer',
76-
commit = commits.nvim_lsp_installer,
77-
config = [[ require('plugins/nvim-lsp-installer') ]]
78-
}
79-
8074
use { -- A collection of common configurations for Neovim's built-in language server client
8175
'neovim/nvim-lspconfig',
8276
commit = commits.nvim_lspconfig,
83-
-- [loading with after causing errors. for now, disable it]
84-
-- after = "nvim-lsp-installer", -- make sure setup for nvim-lsp-installer executes before the setup for lspconfig
77+
requires = {
78+
{ -- Companion plugin for nvim-lspconfig that allows you to seamlessly install LSP servers locally (inside :echo stdpath("data")).
79+
'williamboman/nvim-lsp-installer',
80+
commit = commits.nvim_lsp_installer,
81+
}
82+
},
8583
config = [[ require('plugins/nvim-lspconfig') ]]
8684
}
8785

@@ -103,21 +101,22 @@ return packer.startup {
103101
'hrsh7th/nvim-cmp',
104102
commit = commits.nvim_cmp,
105103
requires = {
104+
{ -- Snippet Engine for Neovim written in Lua.
105+
'L3MON4D3/LuaSnip',
106+
commit = commits.LuaSnip,
107+
requires = {"rafamadriz/friendly-snippets", commit=commits.friendly_snippets}, -- Snippets collection for a set of different programming languages for faster development.
108+
},
106109
{"hrsh7th/cmp-nvim-lsp", commit=commits.cmp_nvim_lsp}, -- nvim-cmp source for neovim builtin LSP client
107110
{"hrsh7th/cmp-buffer", commit=commits.cmp_buffer}, -- nvim-cmp source for buffer words.
108111
{"hrsh7th/cmp-path", commit=commits.cmp_path}, -- nvim-cmp source for filesystem paths.
109112
{"saadparwaiz1/cmp_luasnip", commit=commits.cmp_luasnip},-- luasnip completion source for nvim-cmp
110113
{"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:
111114
{"hrsh7th/cmp-nvim-lua", ft = 'lua', commit=commits.cmp_nvim_lua}, -- nvim-cmp source for nvim lua
112115
},
113-
config = [[ require('plugins/nvim-cmp') ]]
114-
}
115-
116-
use { -- Snippet Engine for Neovim written in Lua.
117-
'L3MON4D3/LuaSnip',
118-
commit = commits.LuaSnip,
119-
requires = {"rafamadriz/friendly-snippets", commit=commits.friendly_snippets}, -- Snippets collection for a set of different programming languages for faster development.
120-
config = [[ require('plugins/LuaSnip') ]]
116+
config = [[
117+
require('plugins/nvim-cmp')
118+
require('plugins/LuaSnip')
119+
]]
121120
}
122121

123122
use { -- Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
@@ -132,6 +131,12 @@ return packer.startup {
132131
config = [[ require('plugins/nvim-autopairs') ]]
133132
}
134133

134+
use { -- Add/change/delete surrounding delimiter pairs with ease.
135+
'kylechui/nvim-surround',
136+
commit = commits.nvim_surround,
137+
config = [[ require('plugins/nvim-surround') ]]
138+
}
139+
135140
use { -- Find, Filter, Preview, Pick. All lua, all the time.
136141
'nvim-telescope/telescope.nvim',
137142
commit = commits.telescope_nvim,
@@ -231,7 +236,7 @@ return packer.startup {
231236
}
232237

233238
use { -- smart indent and project detector with project based config loader
234-
'shaeinst/penvim',
239+
'Abstract-IDE/penvim',
235240
commit = commits.penvim,
236241
config = [[ require('plugins/penvim') ]]
237242
}
@@ -292,6 +297,7 @@ return packer.startup {
292297
commit = commits.nvim_ts_autotag,
293298
ft = {'html', 'tsx', 'vue', 'svelte', 'php'},
294299
requires = {'nvim-treesitter/nvim-treesitter', commit=commits.nvim_treesitter},
300+
295301
config = [[ require('plugins/nvim-ts-autotag') ]]
296302
}
297303
-- ━━━━━━━━━━━━━━❰ end of DEVELOPMENT ❱━━━━━━━━━━━━━ --

0 commit comments

Comments
 (0)