fix sql:open() (#5)

This commit is contained in:
Senghan Bright
2021-02-01 22:38:03 +01:00
committed by GitHub
parent 7afdd3c32c
commit 668a833a0e

View File

@@ -43,7 +43,7 @@ function M:bootstrap(opts)
-- create the db if it doesn't exist
local db_root = opts.docs_root or vim.fn.stdpath('data')
local db_filename = db_root .. "/file_frecency.sqlite3"
self.db = sql.open(db_filename)
self.db = sql:open(db_filename)
if not self.db then
print("error")
return