From e0eec76dad852814e5972aa66ec2dc98d03525a8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 5 Dec 2025 15:32:28 +0100 Subject: fix(lua): fix some emmyluals warnings --- lua/nvim-treesitter/config.lua | 2 +- lua/nvim-treesitter/install.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/config.lua b/lua/nvim-treesitter/config.lua index 8150ad8a8..f76897bc4 100644 --- a/lua/nvim-treesitter/config.lua +++ b/lua/nvim-treesitter/config.lua @@ -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. diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 94d21d46a..1020e7da9 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -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 -- cgit v1.2.3-70-g09d2