fix(nvim): setup Mason *prior* to lspconfig if Mason cmds invoked

This commit is contained in:
Price Hiller 2023-12-26 16:57:49 -06:00
parent 05fd071b42
commit a851329f67
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -127,7 +127,20 @@ return {
"folke/neodev.nvim",
"Decodetalkers/csharpls-extended-lsp.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",
"Hoffs/omnisharp-extended-lsp.nvim",
"b0o/schemastore.nvim",
@ -191,10 +204,6 @@ return {
},
event = { "BufReadPre", "BufNewFile" },
config = function()
require("mason").setup({
max_concurrent_installers = 12,
})
local mason_lspconfig = require("mason-lspconfig")
local lspconfig = require("lspconfig")