fix(plugin): respect setup_commands option
This commit is contained in:
parent
b49175cd34
commit
eeff227715
2 changed files with 66 additions and 56 deletions
|
|
@ -93,10 +93,17 @@ function config.setup(user_config)
|
|||
_config = vim.tbl_deep_extend("force", default_config, user_config or {})
|
||||
end
|
||||
|
||||
---@return boolean
|
||||
---@private
|
||||
function config.should_setup_commands()
|
||||
return config.setup_commands
|
||||
end
|
||||
|
||||
setmetatable(config, {
|
||||
__index = function(_, key)
|
||||
return _config[key]
|
||||
end,
|
||||
})
|
||||
|
||||
---@return gopher.Config
|
||||
return config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue