fix(ci): lua style (#948)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user