diff --git a/scripts/nvim/init.lua b/scripts/nvim/init.lua index c9472a2..d711fae 100644 --- a/scripts/nvim/init.lua +++ b/scripts/nvim/init.lua @@ -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[':