Check whether option exists (#301)
This commit is contained in:
@@ -45,6 +45,10 @@ end
|
|||||||
---@param key string
|
---@param key string
|
||||||
---@param value any
|
---@param value any
|
||||||
window.option = function(self, key, value)
|
window.option = function(self, key, value)
|
||||||
|
if vim.fn.exists('+' .. key) == 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if value == nil then
|
if value == nil then
|
||||||
return self.opt[key]
|
return self.opt[key]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user