fix(nvim): setup Mason *prior* to lspconfig if Mason
cmds invoked
This commit is contained in:
parent
05fd071b42
commit
a851329f67
@ -127,7 +127,20 @@ return {
|
|||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
"Decodetalkers/csharpls-extended-lsp.nvim",
|
"Decodetalkers/csharpls-extended-lsp.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
{ "williamboman/mason.nvim", cmd = { "Mason" } },
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
cmd = {
|
||||||
|
"Mason",
|
||||||
|
"MasonLog",
|
||||||
|
"MasonUpdate",
|
||||||
|
"MasonInstall",
|
||||||
|
"MasonUninstall",
|
||||||
|
"MasonUninstallAll"
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
max_concurrent_installers = 12
|
||||||
|
}
|
||||||
|
},
|
||||||
"simrat39/rust-tools.nvim",
|
"simrat39/rust-tools.nvim",
|
||||||
"Hoffs/omnisharp-extended-lsp.nvim",
|
"Hoffs/omnisharp-extended-lsp.nvim",
|
||||||
"b0o/schemastore.nvim",
|
"b0o/schemastore.nvim",
|
||||||
@ -191,10 +204,6 @@ return {
|
|||||||
},
|
},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup({
|
|
||||||
max_concurrent_installers = 12,
|
|
||||||
})
|
|
||||||
|
|
||||||
local mason_lspconfig = require("mason-lspconfig")
|
local mason_lspconfig = require("mason-lspconfig")
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user