mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
fix(lua): fix some emmyluals warnings
This commit is contained in:
parent
75797cdd8a
commit
e0eec76dad
6 changed files with 37 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue