boop cache
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
local M = {}
|
||||
local M = {
|
||||
use_google_cache = nil,
|
||||
}
|
||||
|
||||
function M.map(mode, lhs, rhs, opts)
|
||||
local options = { noremap = true }
|
||||
@ -10,7 +12,10 @@ function M.map(mode, lhs, rhs, opts)
|
||||
end
|
||||
|
||||
function M.use_google()
|
||||
return M.file_exists(os.getenv("HOME") .. "/use_google")
|
||||
if M.use_google_cache == nil then
|
||||
M.use_google_cache = M.file_exists(os.getenv("HOME") .. "/use_google")
|
||||
end
|
||||
return M.use_google_cache
|
||||
end
|
||||
|
||||
function M.file_exists(name)
|
||||
|
Reference in New Issue
Block a user