Skip to content

Commit

Permalink
🐛 fix Emmylua completion
Browse files Browse the repository at this point in the history
This used to work, but maybe with new versions of sumneko_lua. It
stopped working.
  • Loading branch information
kkharji committed Sep 18, 2021
1 parent 92ebda8 commit edf642e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
7 changes: 6 additions & 1 deletion lua/sqlite/db.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ local u = require "sqlite.utils"
local require = u.require_on_index

local sqlite = {}
---@type sqlite_db

---@class sqlite_db @Main sqlite.lua object.
---@field uri string: database uri. it can be an environment variable or an absolute path. default ":memory:"
---@field opts sqlite_opts: see https://www.sqlite.org/pragma.html |sqlite_opts|
---@field conn sqlite_blob: sqlite connection c object.
---@field db sqlite_db: reference to fallback to when overwriting |sqlite_db| methods (extended only).
sqlite.db = {}
sqlite.db.__index = sqlite.db
sqlite.db.__version = "v1.1.0"
Expand Down
11 changes: 0 additions & 11 deletions lua/sqlite/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
---@brief ]]
---@tag sqlite.readme

---@class sqlite_db @Main sqlite.lua object.
---@field uri string: database uri. it can be an environment variable or an absolute path. default ":memory:"
---@field opts sqlite_opts: see https://www.sqlite.org/pragma.html |sqlite_opts|
---@field conn sqlite_blob: sqlite connection c object.
---@field db sqlite_db: reference to fallback to when overwriting |sqlite_db| methods (extended only).

---@class sqlite_tbl @Main sql table class
---@field db sqlite_db: sqlite.lua database object.
---@field name string: table name.
---@field mtime number: db last modified time.

---@class sqlite_schema_key @Sqlite schema key fileds. {name} is the only required field.
---@field cid number: column index.
---@field name string: column key.
Expand Down
5 changes: 4 additions & 1 deletion lua/sqlite/tbl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ local h = require "sqlite.helpers"

local sqlite = {}

---@type sqlite_tbl
---@class sqlite_tbl @Main sql table class
---@field db sqlite_db: sqlite.lua database object.
---@field name string: table name.
---@field mtime number: db last modified time.
sqlite.tbl = {}
sqlite.tbl.__index = sqlite.tbl

Expand Down

0 comments on commit edf642e

Please sign in to comment.