Squashed 'users/daniel/configs/system/nvim/nvim/' content from commit f10b473
git-subtree-dir: users/daniel/configs/system/nvim/nvim git-subtree-split: f10b4730176b567e15911b3c1a7c5a31c82c8b8e
This commit is contained in:
20
lua/plugins/configs/mason.lua
Normal file
20
lua/plugins/configs/mason.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return function(_, opts)
|
||||
require("mason").setup(opts)
|
||||
|
||||
-- TODO: AstroNvim v4: change these auto command names to not conflict with core Mason commands
|
||||
local cmd = vim.api.nvim_create_user_command
|
||||
cmd("MasonUpdate", function(options) require("astronvim.utils.mason").update(options.fargs) end, {
|
||||
nargs = "*",
|
||||
desc = "Update Mason Package",
|
||||
complete = "custom,v:lua.mason_completion.available_package_completion",
|
||||
})
|
||||
cmd(
|
||||
"MasonUpdateAll",
|
||||
function() require("astronvim.utils.mason").update_all() end,
|
||||
{ desc = "Update Mason Packages" }
|
||||
)
|
||||
|
||||
for _, plugin in ipairs { "mason-lspconfig", "mason-null-ls", "mason-nvim-dap" } do
|
||||
pcall(require, plugin)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user