Fix variable scope in mason configuration

This commit is contained in:
Marko Korhonen 2022-09-03 16:19:47 +03:00
parent 38aadc3eaa
commit 3f8b9e8c83
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -1,10 +1,10 @@
local M = {}
local opts = {mason = {}, lspconfig = {automatic_installation = true}}
Opts = {mason = {}, lspconfig = {automatic_installation = true}}
M.setup = function() require('mason').setup(opts.mason) end
M.setup = function() require('mason').setup(Opts.mason) end
M.lspconfig_setup =
function() require('mason-lspconfig').setup(opts.lspconfig) end
function() require('mason-lspconfig').setup(Opts.lspconfig) end
return M