Skip to content

Commit b1d0fab

Browse files
committed
fix: broken types and typehints
- recreate mistakenly deleted types - remove typehint file - use vim.uv instead of vim.loop
1 parent eba0ba5 commit b1d0fab

File tree

3 files changed

+21
-75
lines changed

3 files changed

+21
-75
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
---@class MatchEntry
3+
---@field value OrgHeadlineEntry | OrgFileEntry
4+
---@field ordinal string
5+
---@field filename string
6+
---@field lnum number
7+
---@field display function
8+
---@field location string,
9+
---@field line string,
10+
---@field tags string,
11+
12+
---@class OrgHeadlineEntry
13+
---@field file OrgApiFile
14+
---@field filename string
15+
---@field headline OrgApiHeadline
16+
17+
---@class OrgFileEntry
18+
---@field file OrgApiFile
19+
---@field filename string
20+
---@field title string?

lua/telescope-orgmode/org.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
require('telescope-orgmode.typehints')
2-
3-
local OrgApiHeadline = require('orgmode.api.headline')
4-
local OrgApiFile = require('orgmode.api.file')
51
local OrgApi = require('orgmode.api')
62

73
local M = {}
84

95
function M.load_files(opts)
106
---@type { file: OrgApiFile, filename: string, last_used: number }[]
117
local file_results = vim.tbl_map(function(file)
12-
local file_stat = vim.loop.fs_stat(file.filename) or 0
8+
local file_stat = vim.uv.fs_stat(file.filename) or 0
139
return { file = file, filename = file.filename, last_used = file_stat.mtime.sec }
1410
end, OrgApi.load())
1511

lua/telescope-orgmode/typehints.lua

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)