Fix variable scope in mason configuration
This commit is contained in:
parent
38aadc3eaa
commit
3f8b9e8c83
|
@ -1,10 +1,10 @@
|
||||||
local M = {}
|
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 =
|
M.lspconfig_setup =
|
||||||
function() require('mason-lspconfig').setup(opts.lspconfig) end
|
function() require('mason-lspconfig').setup(Opts.lspconfig) end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in a new issue