fix(lua): fix some emmyluals warnings

This commit is contained in:
Christian Clason 2025-12-05 15:32:28 +01:00 committed by Christian Clason
parent 75797cdd8a
commit e0eec76dad
6 changed files with 37 additions and 13 deletions

View file

@ -7,7 +7,7 @@ M.tiers = { 'stable', 'unstable', 'unmaintained', 'unsupported' }
---@type TSConfig
local config = {
install_dir = vim.fs.joinpath(vim.fn.stdpath('data'), 'site'),
install_dir = vim.fs.joinpath(vim.fn.stdpath('data') --[[@as string]], 'site'),
}
---Setup call for users to override configuration configurations.

View file

@ -487,7 +487,7 @@ end
local function install(languages, options)
options = options or {}
local cache_dir = fs.normalize(fn.stdpath('cache'))
local cache_dir = fs.normalize(fn.stdpath('cache') --[[@as string]])
if not uv.fs_stat(cache_dir) then
fn.mkdir(cache_dir, 'p')
end