add helper file to deal with aliases
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
local logger = require('dep.log')
|
||||
local git = require('dep.git')
|
||||
local packager = require('dep.package')
|
||||
local h = require('dep.helpers')
|
||||
|
||||
-- all functions for convenience
|
||||
local M = {}
|
||||
@ -45,7 +46,7 @@ end
|
||||
|
||||
--- clean out old packages
|
||||
function M.clean()
|
||||
vim.loop.fs_scandir(
|
||||
h.uv.fs_scandir(
|
||||
packager.get_base_dir(),
|
||||
vim.schedule_wrap(function(err, handle)
|
||||
if err then
|
||||
@ -54,7 +55,7 @@ function M.clean()
|
||||
local queue = {}
|
||||
|
||||
while handle do
|
||||
local name = vim.loop.fs_scandir_next(handle)
|
||||
local name = h.uv.fs_scandir_next(handle)
|
||||
if name then
|
||||
queue[name] = packager.get_base_dir()..name
|
||||
else
|
||||
@ -221,7 +222,7 @@ return function(opts)
|
||||
vim.opt_local.readonly = true
|
||||
|
||||
-- make the log auto update while it's open
|
||||
local w = vim.uv.new_fs_event()
|
||||
local w = h.uv.new_fs_event()
|
||||
local function watch_file(fname)
|
||||
local fullpath = vim.api.nvim_call_function(
|
||||
'fnamemodify', { fname, ':p' })
|
||||
|
Reference in New Issue
Block a user