Safe loading mason.

master
Tomasz Polgrabia 2025-02-01 12:50:09 +01:00
parent 0ad0eb46c7
commit a6875cccd2
1 changed files with 9 additions and 1 deletions

View File

@ -23,7 +23,15 @@ Plug 'mfussenegger/nvim-jdtls'
vim.call('plug#end')
require('mason').setup()
local ok, res = pcall(require, 'mason')
if not ok then
vim.notify('Couldn load mason', vim.log.levels.ERROR)
vim.notify(res, vim.log.levels.ERROR)
else
res.setup()
end
-- local executable = vim.fn[':