Safe loading mason.
This commit is contained in:
parent
0ad0eb46c7
commit
a6875cccd2
1 changed files with 9 additions and 1 deletions
|
@ -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[':
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue