Skip to content
Snippets Groups Projects
Unverified Commit 64e120fd authored by amtoine's avatar amtoine
Browse files

add missing type annotations

parent 3cc0b221
Branches
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ local sorters = require("telescope.sorters")
local M = {}
---@class ProjectFilesOptions
---@field prompt_title string?
---@field hidden boolean?
---@param opts ProjectFilesOptions
M.project_files = function(opts)
opts = opts or {}
opts.prompt_title = opts.prompt_title or "Find project files..."
......@@ -21,6 +26,10 @@ M.project_files = function(opts)
end
end
---@class MultiGrepOptions
---@field cwd string?
---@param opts MultiGrepOptions
M.multigrep = function(opts)
opts = opts or {}
opts.cwd = opts.cwd or vim.uv.cwd()
......
......@@ -27,6 +27,12 @@ local open_terminal = function(pos, size)
end
end
---@class FloatingTerminalOptions
---@field buf integer
---@field width integer?
---@field height integer?
---@param opts FloatingTerminalOptions
local open_floating_terminal = function(opts)
opts = opts or {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment