better google specific loading

This commit is contained in:
Christian Nieves
2022-12-02 15:03:38 -06:00
parent 2ee005922e
commit 26017e78bd
5 changed files with 149 additions and 143 deletions

View File

@ -8,6 +8,10 @@ function M.map(mode, lhs, rhs, opts)
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
function M.use_google()
return M.file_exists(os.getenv("HOME").."/use_google")
end
function M.file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end