File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ local opts = {
206
206
207
207
``` lua
208
208
{
209
- " AstroNvim/astrolsp " ,
210
- dependencies = { " neovim/nvim-lspconfig " },
209
+ " neovim/nvim-lspconfig " ,
210
+ dependencies = { " AstroNvim/astrolsp " , opts = {} },
211
211
opts = {}
212
212
}
213
213
```
@@ -216,14 +216,10 @@ local opts = {
216
216
217
217
``` lua
218
218
{
219
- " AstroNvim/astrolsp " ,
219
+ " williamboman/mason-lspconfig.nvim " ,
220
220
dependencies = {
221
- " neovim/nvim-lspconfig" ,
222
- {
223
- " williamboman/mason-lspconfig.nvim" ,
224
- dependencies = { " williamboman/mason.nvim" },
225
- opts = {}
226
- }
221
+ " williamboman/mason.nvim" ,
222
+ { " neovim/nvim-lspconfig" , dependencies = { " AstroNvim/astrolsp" , opts = {} } },
227
223
},
228
224
opts = {}
229
225
}
@@ -237,9 +233,9 @@ local opts = {
237
233
dependencies = {
238
234
{ " AstroNvim/astrolsp" , opts = {} },
239
235
},
240
- opts = {
241
- on_attach = function ( client , bufnr ) require (" astrolsp" ).on_attach ( client , bufnr ) end
242
- },
236
+ opts = function ( _ , opts )
237
+ opts . on_attach = require (" astrolsp" ).on_attach
238
+ end
243
239
}
244
240
```
245
241
You can’t perform that action at this time.
0 commit comments