mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-10 07:10:44 +00:00
mason: add warning message for removed option "ensure_installed"
This commit is contained in:
parent
b7a163e232
commit
0e61fb7656
@ -84,6 +84,22 @@ return {
|
||||
opts = function()
|
||||
return require "nvchad.configs.mason"
|
||||
end,
|
||||
config = function(_, opts)
|
||||
if opts.ensure_installed then
|
||||
vim.api.nvim_echo({
|
||||
{ "\n ensure_installed has been removed! use M.mason.pkgs table in your chadrc.\n", "WarningMsg" },
|
||||
{ " https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua#L85 \n\n", "FloatBorder" },
|
||||
{
|
||||
" MasonInstallAll will automatically install all mason packages of tools configured in your plugins. \n",
|
||||
"healthSuccess",
|
||||
},
|
||||
{ " Currently supported plugins are : lspconfig, nvim-lint, conform. \n", "Added" },
|
||||
{ " So dont add them in your chadrc as MasonInstallAll automatically installs them! \n", "Changed" },
|
||||
}, false, {})
|
||||
end
|
||||
|
||||
require("mason").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user