lints
This commit is contained in:
parent
371941b3b2
commit
2ceb049b5b
@ -129,7 +129,7 @@ local function do_copy(source, destination)
|
||||
luv.fs_mkdir(destination, source_stats.mode)
|
||||
|
||||
while true do
|
||||
local name, t = luv.fs_scandir_next(handle)
|
||||
local name, _ = luv.fs_scandir_next(handle)
|
||||
if not name then break end
|
||||
|
||||
local new_name = source..'/'..name
|
||||
@ -173,15 +173,15 @@ local function do_paste(node, action_type, action_fn)
|
||||
local dest_stats = luv.fs_stat(dest)
|
||||
local should_process = true
|
||||
if dest_stats then
|
||||
local ans = vim.fn.input(dest..' already exists, overwrite ? y/n: ')
|
||||
ans = vim.fn.input(dest..' already exists, overwrite ? y/n: ')
|
||||
clear_prompt()
|
||||
should_process = ans:match('^y')
|
||||
end
|
||||
|
||||
if should_process then
|
||||
local success, msg = action_fn(entry.absolute_path, dest)
|
||||
local success, errmsg = action_fn(entry.absolute_path, dest)
|
||||
if not success then
|
||||
api.nvim_err_writeln('Could not '..action_type..' '..entry.absolute_path..' - '..msg)
|
||||
api.nvim_err_writeln('Could not '..action_type..' '..entry.absolute_path..' - '..errmsg)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -129,7 +129,7 @@ function M.refresh_entries(entries, cwd)
|
||||
local change_prev
|
||||
for _, e in ipairs(all) do
|
||||
for _, name in ipairs(e.entries) do
|
||||
chang_prev = true
|
||||
change_prev = true
|
||||
if not named_entries[name] then
|
||||
local n = e.fn(cwd, name)
|
||||
if e.check(n.link_to, n.absolute_path) then
|
||||
@ -141,10 +141,10 @@ function M.refresh_entries(entries, cwd)
|
||||
entries_idx[name] = idx
|
||||
cached_entries[idx] = name
|
||||
else
|
||||
chang_prev = false
|
||||
change_prev = false
|
||||
end
|
||||
end
|
||||
if chang_prev then prev = name end
|
||||
if change_prev then prev = name end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -92,7 +92,7 @@ local get_padding = function(depth)
|
||||
end
|
||||
|
||||
if vim.g.lua_tree_indent_markers == 1 then
|
||||
get_padding = function(depth, idx, tree, node, markers)
|
||||
get_padding = function(depth, idx, tree, _, markers)
|
||||
local padding = ""
|
||||
if depth ~= 0 then
|
||||
local rdepth = depth/2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user