lua: Add vim.opt and fix scopes of vim.o (#13479)

* lua: Add vim.opt

* fixup: cleaning

* fixup: comments

* ty clason

* fixup: comments

* this is the last commit. period.
This commit is contained in:
TJ DeVries
2021-05-28 08:24:48 -07:00
committed by GitHub
parent 192ea01edd
commit 43956dea55
7 changed files with 1354 additions and 178 deletions

View File

@@ -20,5 +20,12 @@ function F.npcall(fn, ...)
return F.ok_or_nil(pcall(fn, ...))
end
--- Wrap a function to return nil if it fails, otherwise the value
function F.nil_wrap(fn)
return function(...)
return F.npcall(fn, ...)
end
end
return F