feat(utils): add type annotations and inline documentation to various utility modules

This commit is contained in:
2024-08-31 03:02:33 -04:00
parent 5ef3bc7445
commit a23fc9c643
9 changed files with 173 additions and 42 deletions
+4 -4
View File
@@ -5,14 +5,14 @@
local M = {}
-- Path to the cache script
local config_dir = vim.fn.stdpath("config")
---@diagnostic disable-next-line: param-type-mismatch
local cache_script = vim.fs.joinpath(config_dir, "/scripts/update_cache.sh")
local config_dir = vim.fn.stdpath("config") --[[@as string]]
local cache_script = vim.fs.joinpath(config_dir, "scripts", "update_cache.sh")
-- Flag to check if the script has already been run
local script_run_once = false
-- Function to run the cache update script using vim.system
--- Function to run the cache script
---@return nil
function M.setup_script()
if not script_run_once then
-- Run the cache script