lint: rename shadowed variable
This commit is contained in:
parent
2f6ed70161
commit
6f9e1057c5
1 changed files with 3 additions and 3 deletions
|
|
@ -1161,16 +1161,16 @@ M.setup = function(opts)
|
|||
|
||||
local method = float and "open_float" or "open"
|
||||
local path = args.fargs[1]
|
||||
local opts = {}
|
||||
local open_opts = {}
|
||||
if trash then
|
||||
local url = M.get_url_for_path(path, false)
|
||||
local _, new_path = util.parse_url(url)
|
||||
path = "oil-trash://" .. new_path
|
||||
end
|
||||
if preview then
|
||||
opts.preview = {}
|
||||
open_opts.preview = {}
|
||||
end
|
||||
M[method](path, opts)
|
||||
M[method](path, open_opts)
|
||||
end, { desc = "Open oil file browser on a directory", nargs = "*", complete = "dir" })
|
||||
local aug = vim.api.nvim_create_augroup("Oil", {})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue