We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8868b34 commit 5893fefCopy full SHA for 5893fef
1 file changed
lua/cmake-tools/config.lua
@@ -33,8 +33,7 @@ local Config = {
33
34
function Config:new(const)
35
local obj = {}
36
- setmetatable(obj, self)
37
- self.__index = self
+ setmetatable(obj, { __index = self }) -- when obj cannot find key in its table, it will try to find it from its __index value
38
39
obj:update_build_dir(const.cmake_build_directory, const.cmake_build_directory)
40
0 commit comments