fix(ci): lua style (#948)

This commit is contained in:
yetone
2024-12-13 23:24:29 +08:00
committed by GitHub
parent 4d1447b62f
commit 9e0b5bf8f1
3 changed files with 8 additions and 24 deletions

View File

@@ -17,22 +17,16 @@ local RepoMap = {}
---@return AvanteRepoMap|nil
function RepoMap._init_repo_map_lib()
if repo_map_lib ~= nil then
return repo_map_lib
end
if repo_map_lib ~= nil then return repo_map_lib end
local ok, core = pcall(require, "avante_repo_map")
if not ok then
return nil
end
if not ok then return nil end
repo_map_lib = core
return repo_map_lib
end
function RepoMap.setup()
vim.defer_fn(RepoMap._init_repo_map_lib, 1000)
end
function RepoMap.setup() vim.defer_fn(RepoMap._init_repo_map_lib, 1000) end
function RepoMap.get_ts_lang(filepath)
local filetype = RepoMap.get_filetype(filepath)